You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to its integration of llama-index, it can no longer utilize the official API support for the OpenAI library, yet models not affiliated with OpenAI, like deepseek, are still usable.
This was an oversight on my part during development. To address this, you can try the following steps and provide feedback on whether this resolves the issue:
Add the required package:
pdm add llama-index-llms-openai-like
Modify the import statement in repo_agent/chat_engine.py:
fromllama_index.llms.openaiimportOpenAI
Change it to:
fromllama_index.llms.openai_likeimportOpenAILike
Update the LLM initialization code in the same file. Replace this:
Due to its integration of llama-index, it can no longer utilize the official API support for the OpenAI library, yet models not affiliated with OpenAI, like deepseek, are still usable.
Otherwise, the following error will occur
AI: Error occurred: Unknown model 'deepseek-chat'. Please provide a valid OpenAI model name in: o1-preview, o1-preview-2024-09-12, o1-mini, o1-mini-2024-09-12, gpt-4, gpt-4-32k, gpt-4-1106-preview, gpt-4-0125-preview, gpt-4-turbo-preview, gpt-4-vision-preview, gpt-4-1106-vision-preview, gpt-4-turbo-2024-04-09, gpt-4-turbo, gpt-4o, gpt-4o-2024-05-13, gpt-4o-2024-08-06, gpt-4o-2024-11-20, chatgpt-4o-latest, gpt-4o-mini, gpt-4o-mini-2024-07-18, gpt-4-0613, gpt-4-32k-0613, gpt-4-0314, gpt-4-32k-0314, gpt-3.5-turbo, gpt-3.5-turbo-16k, gpt-3.5-turbo-0125, gpt-3.5-turbo-1106, gpt-3.5-turbo-0613, gpt-3.5-turbo-16k-0613, gpt-3.5-turbo-0301, text-davinci-003, text-davinci-002, gpt-3.5-turbo-instruct, text-ada-001, text-babbage-001, text-curie-001, ada, babbage, curie, davinci, gpt-35-turbo-16k, gpt-35-turbo, gpt-35-turbo-0125, gpt-35-turbo-1106, gpt-35-turbo-0613, gpt-35-turbo-16k-0613
The text was updated successfully, but these errors were encountered: