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

Add better messages for failing calls to AI assistance #970

Open
hguerrero opened this issue Nov 1, 2023 · 7 comments
Open

Add better messages for failing calls to AI assistance #970

hguerrero opened this issue Nov 1, 2023 · 7 comments
Labels
keep-open Explicitily keep open

Comments

@hguerrero
Copy link
Member

hguerrero commented Nov 1, 2023

Reason/Context

When trying the AI assistance, there might be errors that are just sending a generic message. No way for the user to understand where to start digging to fix it.

Description

The message shown when there is an error while calling the AI assistance is too generic.

Implementation ideas

The REST API call to OpenAI for example, returns some more context on what was failing. It would be interesting in checking if there is a way to capture the output and share it with the user.

@yada
Copy link
Member

yada commented Nov 1, 2023

Not sure it will help the end users as he can not change or modify the prompt. Currently he can just retry. The idea behind the AI-copilot is to have a very easy and straightforward experience (currently exemple generation) without writing anything. But it required a clean and curated specification/contract. In which case have you noticed an issue for which the error message can be useful?

@hguerrero
Copy link
Member Author

hguerrero commented Nov 1, 2023

@yada, not on the prompt, but on the actual call. I got an HTTP 429 error with a clear message on checking my available quota. As we are using the user's API Key for the calls, it should be easy to add more context on why the request to the API failed.

I was only able to check what the issue was after checking the logs.

@yada
Copy link
Member

yada commented Nov 1, 2023

Thanks @hguerrero, yep make sense for this one agree. Let's dig further how this can be improve +1

Copy link

This issue has been automatically marked as stale because it has not had recent activity 😴

It will be closed in 30 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.

There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. Microcks is a Cloud Native Computing Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.

Thank you for your patience ❤️

@github-actions github-actions bot added the stale State due to inactivity label Jan 10, 2024
@hguerrero
Copy link
Member Author

keep open

@github-actions github-actions bot removed the stale State due to inactivity label Jan 21, 2024
@lbroudoux lbroudoux added the keep-open Explicitily keep open label Jan 22, 2024
@lbroudoux
Copy link
Member

It would be nice to list here the different cases we'd need to handle. I've noticed that 429: resource quotas exhausted may be one of them 😉

@oliviernguyenquoc
Copy link

It would be nice to list here the different cases we'd need to handle. I've noticed that 429: resource quotas exhausted may be one of them 😉

Just for info(to help), here a different one:
401 Unauthorized: "{ "error": { "message": "Incorrect API key provided: sk-**********. You can find your API key at https://platform.openai.com/account/api-keys.", "type":

I missed something in my config.

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

No branches or pull requests

4 participants