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

fix: make gemini fail more less #811

Merged
merged 1 commit into from
Mar 8, 2024
Merged

Conversation

Abirdcfly
Copy link
Collaborator

@Abirdcfly Abirdcfly commented Mar 8, 2024

What type of PR is this?

/kind flake

What this PR does / why we need it

  1. Trigger a fast reconcile by returning an error when the state of the llm is not ready, instead of waiting 1 hour for a reconcile as if the state of the llm was ready.
  2. Use different apikey in 3 tests at the same time, used to reduce the level of concurrency.
  3. 3 retries after chat error

Which issue(s) this PR fixes

Fixes #

Special notes for your reviewer

In testing, there are still 2 relatively rare error cases (excluding errors returned by the LLM itself) that need to be fixed with subsequent pull requests

  1. apiserver panic just log 2024-03-08T06:18:53.745667941Z stderr F 2024/03/08 06:18:53 googleapi: Error 503:
  2. {"error":"run node chain-node: llmchain run error: Post \"https://generativelanguage.googleapis.com/v1/models/gemini-pro:generateContent?%24alt=json%3Benum-encoding%3Dint\u0026key=xxxxxxx\": context deadline exceeded"}

@Abirdcfly Abirdcfly force-pushed the fixissue branch 11 times, most recently from dc217ac to b443e5f Compare March 8, 2024 08:06
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
@Abirdcfly Abirdcfly marked this pull request as ready for review March 8, 2024 08:31
@bjwswang bjwswang merged commit a28f49a into kubeagi:main Mar 8, 2024
11 checks passed
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