Skip to content

feat: warn when expected API key is missing #252

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

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

kaihendry
Copy link
Contributor

@kaihendry kaihendry commented Apr 16, 2024

I'm not sure why you set it as "<unset>" here, can you please explain?

@ibuildthecloud
Copy link
Contributor

There are providers, mostly local providers (LocalAI, ollama, LMStudio, etc), that don't require a key but there are code paths in gptscript, or maybe the openai client we use, that require the key to be set. Thus the fake value.

We are going to extend the credential framework to handle these magic env vars, so the UX will be much more explicit and better. In the short term I'm fine with the log message.

@ibuildthecloud ibuildthecloud merged commit e224772 into gptscript-ai:main Apr 16, 2024
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.

2 participants