Skip to content

Skip OpenAI API health checking is using OpenAI or Azure API #200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vgerasymenko
Copy link
Contributor

For now if using OpenAI or Azure API with credentials specified in credentials.yaml passed via SKYNET_CREDENTIALS_PATH env variable - is_ready() will always return False and monitor_candidate_jobs() in modules\ttt\summaries\jobs.py will freeze forever in next cycle:

    while not await is_openai_api_ready():
        await asyncio.sleep(TIME_BETWEEN_JOBS_CHECK)

I've added condition which will return True in such case. This could be non-optimal (or incorrect) solution because using OpenAI/Azure API does not necessary means what local LLMs won't be used. May be (device == 'cpu') condition should be used instead, which more likely means that local LLMs are not supposed to be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant