Skip to content
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

Raise a more clear issue when api key is not defined #81

Open
Necr0x0Der opened this issue Jan 14, 2025 · 2 comments
Open

Raise a more clear issue when api key is not defined #81

Necr0x0Der opened this issue Jan 14, 2025 · 2 comments
Assignees

Comments

@Necr0x0Der
Copy link
Contributor

When API key is not defined, there is the error name 'client' is not defined, which is not clear. When the chatgpt agent is used, this issue is raised, but it is not clear that client is not defined because it was impossible to create it because of authentication issues.

@Necr0x0Der
Copy link
Contributor Author

@besSveta , I noticed that ChatGPT agent returns a error, when API key is not provided. But it seems that Anthropic agent just hands forever instead of returning an error. There are two options - either connect to Anthropic with some timeout, or check explicitly if there is an API key provided.

@Necr0x0Der
Copy link
Contributor Author

I didn't check what happens for OpenRouter.

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

No branches or pull requests

2 participants