janhq / jan

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer. Multiple engine support (llama.cpp, TensorRT-LLM)
https://jan.ai/
GNU Affero General Public License v3.0
22.51k stars 1.3k forks source link

bug: Thread - Chat with OpenAI GPT without any API key, Jan should return a clear and informative error message #2644

Closed Van-QA closed 5 months ago

Van-QA commented 5 months ago

Description: When not provided OpenAPI GPT key, Jan does not return a clear and informative error message. Instead, it is displaying a generic error message that does not provide enough information for the user to understand and resolve the issue.

Steps to Reproduce:

  1. Send a request to the Open AI GPT API without a key

Expected Behavior: When not using any OpenAPI GPT key, Jan should return a clear and informative error message that indicates the key is invalid. The message should include instructions on how to obtain a valid key and where to find help.

Screenshots: image

Additional Information: This message is not helpful for users who are trying to use the Jan API. It does not provide any information about why the request failed or how to resolve the issue. Providing a more informative error message will improve the user experience and reduce the amount of time it takes for users to resolve issues with their API keys.

Environment details All env, Latest Jan nightly Jan v0.4.10-365 Working fine for Groq

Van-QA commented 5 months ago

Tested and there are some edge case: image

@namchuai

Van-QA commented 5 months ago

looking good on Jan v0.4.10-371 ✅