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

RuntimeError: Failed to create chat completion after 10 retries #506

Open
Alexia0806 opened this issue Dec 19, 2024 · 3 comments
Open

RuntimeError: Failed to create chat completion after 10 retries #506

Alexia0806 opened this issue Dec 19, 2024 · 3 comments
Labels
question Further information is requested

Comments

@Alexia0806
Copy link

I'm encountering an issue where the program fails to create a chat completion after 10 retries. The error occurs when attempting to create an embedding using APIBackend().create_embedding(). Below is the error traceback:
Image

Could anyone help me understand the root cause of this issue and suggest potential fixes? I have already tried restarting the system and re-running the process,the API is also running normally, but the issue persists.

@Alexia0806 Alexia0806 added the question Further information is requested label Dec 19, 2024
@TPLin22
Copy link
Collaborator

TPLin22 commented Dec 20, 2024

Hello,
can you provide more error information? For example, the message above the "warning" at the top of your screenshot.

@Alexia0806
Copy link
Author

Hello,

Thank you for your comment! I appreciate your suggestion. I’ll check the message above the "warning" and share the details here shortly. Please let me know if there’s anything else specific that could help clarify the issue.

Hello, can you provide more error information? For example, the message above the "warning" at the top of your screenshot.

Image Image

@TPLin22
Copy link
Collaborator

TPLin22 commented Dec 22, 2024

Hello,

Thank you for your comment! I appreciate your suggestion. I’ll check the message above the "warning" and share the details here shortly. Please let me know if there’s anything else specific that could help clarify the issue.

Based on your screenshot, the issue seems to be related to the configuration of the embedding model. The error occurs in the part of the program that calls the embedding model, whereas most of the other parts call the chat model.
By default, it is set to text-embedding-3-small, but the error message suggests that the model is not configured correctly. You can check the documentation at https://rdagent.readthedocs.io/en/latest/installation_and_configuration.html to compare your configuration with the documentation to see if there's an issue. If the issue persists, feel free to reply here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants