langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
47.61k stars 6.78k forks source link

Model Down! I Repeat Model Down!! #9191

Open Iamtheoldman opened 4 hours ago

Iamtheoldman commented 4 hours ago

Self Checks

Dify version

v0.9.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Git clone https://github.com/langgenius/dify.git

cd docker cp .env.example .env docker compose up -d

✔️ Expected Behavior

To be able to change out the model from GPT-3.5-Turbo to anything else image below

Screenshot 2024-10-10 at 2 51 12 PM

❌ Actual Behavior

what is going on is you cant edit it or add any type of models

Screenshot 2024-10-10 at 2 49 31 PM
dosubot[bot] commented 4 hours ago

I found a similar issue that might be related to your problem. In a closed issue, users reported being unable to switch models due to the validateModelProviderFn function not updating the providerName correctly. Debugging this function and the validateModelProvider function might help identify the problem. The providerName is updated using the PreferredProviderTypeUpdateApi class, so checking these areas in the code could provide a solution [1].

To change the model from GPT-3.5-Turbo to another model in Dify Studio, you should go to the Settings > Model Provider page. Here, you can add and configure the necessary models. Ensure you have the API key for the model provider you wish to use. Once configured, you can select the default model for your application [2].

To continue talking to Dosu, mention @dosu.