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

开通了openai账号的api,放入langchain-chatchat运行后,在model.py中添加了openai-api,但是在可以选择llm模型时不显示openai-api的接口是什么原因 #3609

Closed
liaoqingjian opened this issue Apr 2, 2024 · 2 comments
Assignees
Labels
bug Something isn't working stale

Comments

@liaoqingjian
Copy link

90
91

@liaoqingjian liaoqingjian added the bug Something isn't working label Apr 2, 2024
Copy link

dosubot bot commented Apr 2, 2024

Hey there @liaoqingjian! Great to see you diving into new integrations with Langchain-Chatchat. How's everything going?

Based on the context provided, it seems like you've correctly added 'openai-api' to the LLM_MODELS list in the model.py file. However, the OpenAI API not appearing in the dropdown menu for selecting LLM models within the Langchain-Chatchat application's web interface could be due to several reasons.

One possible reason is that you might have edited the wrong file or the correct changes haven't been applied where the application actually loads its configuration. The provided context is from a file named configs/model_config.py.example, which suggests it's an example configuration file, not the actual configuration file the application uses at runtime.

To resolve the issue, you should ensure that you have copied model_config.py.example to model_config.py (or the appropriate configuration file name expected by the application, which might be simply model_config.py or similar, based on the application's documentation or codebase structure). Then, make your changes, including adding 'openai-api' to the LLM_MODELS list, in the actual configuration file used by the application (model_config.py or whatever the correct file name is). Ensure that any changes made to the configuration file are saved and that the application is reloaded or restarted afterward to apply the changes. If the application provides any logs or debugging information, check those logs for any errors or warnings that might indicate issues with loading the configuration or recognizing the 'openai-api' entry.

If after following these steps the issue persists, it might be necessary to consult the application's documentation or support resources for more specific guidance, as the problem could be related to other aspects of the application's setup or environment.

For more information, you can refer to the following sources:

I hope this helps! If you have any other questions or need further clarification, feel free to ask.

Sources

About Dosu

This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

@zRzRzRzRzRzRzR zRzRzRzRzRzRzR self-assigned this Apr 2, 2024
Copy link

github-actions bot commented May 2, 2024

这个问题已经被标记为 stale ,因为它已经超过 30 天没有任何活动。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

2 participants