Model Parameter temperature should be greater than or equal to 0.1. #4251

Closed
opened 2026-02-21 18:05:23 -05:00 by yindo · 1 comment
Owner

Originally created by @lingfengchencn on GitHub (Jun 25, 2024).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.6.11

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

For old apps, which may be from the 0.5 era, switching to GPT-4o will result in _position.yaml not being available and an error.
However, it is normal in the debug & preview interface, and will only appear in the "run" interface.
But the app can work fine.

error info:

test-dify-api-1  | 2024-06-25 06:02:56.749 DEBUG [Thread-14168 (_generate_worker)] [_trace.py:45] - receive_response_body.complete
test-dify-api-1  | 2024-06-25 06:02:56.750 DEBUG [Thread-14168 (_generate_worker)] [_trace.py:45] - response_closed.started
test-dify-api-1  | 2024-06-25 06:02:56.750 DEBUG [Thread-14168 (_generate_worker)] [_trace.py:45] - response_closed.complete
test-dify-api-1  | 2024-06-25 06:02:56.751 DEBUG [Thread-14168 (_generate_worker)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/llm/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.752 DEBUG [Thread-14168 (_generate_worker)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/llm/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.803 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/llm/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.804 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/text_embedding/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.804 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/speech2text/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/speech2text/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.804 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/tts/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/tts/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.804 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/nvidia_nim/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/nvidia_nim/llm/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.804 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/togetherai/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/togetherai/llm/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.805 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/openrouter/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/openrouter/llm/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.805 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/ollama/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/ollama/llm/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.805 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/ollama/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/ollama/text_embedding/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.805 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/replicate/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/replicate/llm/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.805 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/replicate/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/replicate/text_embedding/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.805 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/huggingface_hub/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/huggingface_hub/llm/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.805 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/huggingface_hub/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/huggingface_hub/text_embedding/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.806 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/xinference/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/xinference/llm/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.806 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/xinference/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/xinference/text_embedding/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.806 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/xinference/rerank/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/xinference/rerank/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.806 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/xinference/speech2text/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/xinference/speech2text/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.806 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/triton_inference_server/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/triton_inference_server/llm/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.806 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/openllm/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/openllm/llm/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.807 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/openllm/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/openllm/text_embedding/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.807 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/localai/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/localai/llm/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.807 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/localai/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/localai/text_embedding/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.807 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/localai/rerank/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/localai/rerank/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.807 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/localai/speech2text/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/localai/speech2text/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.807 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/volcengine_maas/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/volcengine_maas/llm/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.808 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/volcengine_maas/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/volcengine_maas/text_embedding/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.808 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/openai_api_compatible/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/openai_api_compatible/llm/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.808 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/openai_api_compatible/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/openai_api_compatible/text_embedding/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.824 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/llm/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.824 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/text_embedding/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.824 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/speech2text/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/speech2text/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.824 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/tts/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/tts/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.824 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/nvidia_nim/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/nvidia_nim/llm/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.824 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/togetherai/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/togetherai/llm/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.825 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/openrouter/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/openrouter/llm/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.825 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/ollama/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/ollama/llm/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.825 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/ollama/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/ollama/text_embedding/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.825 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/replicate/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/replicate/llm/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.825 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/replicate/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/replicate/text_embedding/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.825 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/huggingface_hub/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/huggingface_hub/llm/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.825 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/huggingface_hub/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/huggingface_hub/text_embedding/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.825 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/xinference/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/xinference/llm/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.826 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/xinference/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/xinference/text_embedding/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.826 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/xinference/rerank/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/xinference/rerank/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.826 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/xinference/speech2text/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/xinference/speech2text/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.826 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/triton_inference_server/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/triton_inference_server/llm/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.826 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/openllm/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/openllm/llm/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.826 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/openllm/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/openllm/text_embedding/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.827 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/localai/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/localai/llm/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.827 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/localai/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/localai/text_embedding/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.827 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/localai/rerank/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/localai/rerank/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.827 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/localai/speech2text/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/localai/speech2text/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.827 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/volcengine_maas/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/volcengine_maas/llm/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.827 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/volcengine_maas/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/volcengine_maas/text_embedding/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.827 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/openai_api_compatible/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/openai_api_compatible/llm/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.827 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/openai_api_compatible/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/openai_api_compatible/text_embedding/_position.yaml: file not found
test-dify-api-1  | 2024-06-25 06:02:56.840 ERROR [Thread-14169 (process_request_thread)] [llm_generator.py:92] - Model Parameter temperature should be greater than or equal to 0.1.
test-dify-api-1  | Traceback (most recent call last):
test-dify-api-1  |   File "/app/api/core/llm_generator/llm_generator.py", line 79, in generate_suggested_questions_after_answer
test-dify-api-1  |     response = model_instance.invoke_llm(
test-dify-api-1  |   File "/app/api/core/model_manager.py", line 123, in invoke_llm
test-dify-api-1  |     return self._round_robin_invoke(
test-dify-api-1  |   File "/app/api/core/model_manager.py", line 303, in _round_robin_invoke
test-dify-api-1  |     return function(*args, **kwargs)
test-dify-api-1  |   File "/app/api/core/model_runtime/model_providers/__base/large_language_model.py", line 66, in invoke
test-dify-api-1  |     model_parameters = self._validate_and_filter_model_parameters(model, model_parameters, credentials)
test-dify-api-1  |   File "/app/api/core/model_runtime/model_providers/__base/large_language_model.py", line 810, in _validate_and_filter_model_parameters
test-dify-api-1  |     raise ValueError(
test-dify-api-1  | ValueError: Model Parameter temperature should be greater than or equal to 0.1.

✔️ Expected Behavior

no "file not found"
no ERROR

Actual Behavior

ValueError: Model Parameter temperature should be greater than or equal to ### 0.1.

Originally created by @lingfengchencn on GitHub (Jun 25, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.6.11 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce For old apps, which may be from the 0.5 era, switching to GPT-4o will result in _position.yaml not being available and an error. However, it is normal in the debug & preview interface, and will only appear in the "run" interface. But the app can work fine. error info: ``` test-dify-api-1 | 2024-06-25 06:02:56.749 DEBUG [Thread-14168 (_generate_worker)] [_trace.py:45] - receive_response_body.complete test-dify-api-1 | 2024-06-25 06:02:56.750 DEBUG [Thread-14168 (_generate_worker)] [_trace.py:45] - response_closed.started test-dify-api-1 | 2024-06-25 06:02:56.750 DEBUG [Thread-14168 (_generate_worker)] [_trace.py:45] - response_closed.complete test-dify-api-1 | 2024-06-25 06:02:56.751 DEBUG [Thread-14168 (_generate_worker)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/llm/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.752 DEBUG [Thread-14168 (_generate_worker)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/llm/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.803 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/llm/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.804 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/text_embedding/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.804 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/speech2text/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/speech2text/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.804 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/tts/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/tts/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.804 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/nvidia_nim/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/nvidia_nim/llm/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.804 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/togetherai/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/togetherai/llm/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.805 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/openrouter/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/openrouter/llm/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.805 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/ollama/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/ollama/llm/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.805 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/ollama/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/ollama/text_embedding/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.805 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/replicate/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/replicate/llm/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.805 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/replicate/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/replicate/text_embedding/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.805 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/huggingface_hub/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/huggingface_hub/llm/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.805 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/huggingface_hub/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/huggingface_hub/text_embedding/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.806 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/xinference/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/xinference/llm/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.806 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/xinference/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/xinference/text_embedding/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.806 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/xinference/rerank/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/xinference/rerank/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.806 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/xinference/speech2text/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/xinference/speech2text/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.806 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/triton_inference_server/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/triton_inference_server/llm/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.806 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/openllm/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/openllm/llm/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.807 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/openllm/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/openllm/text_embedding/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.807 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/localai/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/localai/llm/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.807 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/localai/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/localai/text_embedding/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.807 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/localai/rerank/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/localai/rerank/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.807 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/localai/speech2text/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/localai/speech2text/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.807 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/volcengine_maas/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/volcengine_maas/llm/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.808 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/volcengine_maas/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/volcengine_maas/text_embedding/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.808 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/openai_api_compatible/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/openai_api_compatible/llm/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.808 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/openai_api_compatible/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/openai_api_compatible/text_embedding/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.824 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/llm/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.824 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/text_embedding/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.824 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/speech2text/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/speech2text/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.824 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/tts/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/azure_openai/tts/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.824 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/nvidia_nim/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/nvidia_nim/llm/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.824 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/togetherai/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/togetherai/llm/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.825 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/openrouter/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/openrouter/llm/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.825 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/ollama/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/ollama/llm/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.825 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/ollama/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/ollama/text_embedding/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.825 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/replicate/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/replicate/llm/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.825 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/replicate/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/replicate/text_embedding/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.825 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/huggingface_hub/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/huggingface_hub/llm/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.825 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/huggingface_hub/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/huggingface_hub/text_embedding/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.825 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/xinference/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/xinference/llm/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.826 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/xinference/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/xinference/text_embedding/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.826 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/xinference/rerank/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/xinference/rerank/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.826 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/xinference/speech2text/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/xinference/speech2text/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.826 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/triton_inference_server/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/triton_inference_server/llm/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.826 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/openllm/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/openllm/llm/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.826 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/openllm/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/openllm/text_embedding/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.827 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/localai/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/localai/llm/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.827 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/localai/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/localai/text_embedding/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.827 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/localai/rerank/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/localai/rerank/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.827 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/localai/speech2text/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/localai/speech2text/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.827 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/volcengine_maas/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/volcengine_maas/llm/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.827 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/volcengine_maas/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/volcengine_maas/text_embedding/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.827 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/openai_api_compatible/llm/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/openai_api_compatible/llm/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.827 DEBUG [Thread-14169 (process_request_thread)] [yaml_utils.py:28] - Failed to load YAML file /app/api/core/model_runtime/model_providers/openai_api_compatible/text_embedding/_position.yaml: Failed to load YAML file /app/api/core/model_runtime/model_providers/openai_api_compatible/text_embedding/_position.yaml: file not found test-dify-api-1 | 2024-06-25 06:02:56.840 ERROR [Thread-14169 (process_request_thread)] [llm_generator.py:92] - Model Parameter temperature should be greater than or equal to 0.1. test-dify-api-1 | Traceback (most recent call last): test-dify-api-1 | File "/app/api/core/llm_generator/llm_generator.py", line 79, in generate_suggested_questions_after_answer test-dify-api-1 | response = model_instance.invoke_llm( test-dify-api-1 | File "/app/api/core/model_manager.py", line 123, in invoke_llm test-dify-api-1 | return self._round_robin_invoke( test-dify-api-1 | File "/app/api/core/model_manager.py", line 303, in _round_robin_invoke test-dify-api-1 | return function(*args, **kwargs) test-dify-api-1 | File "/app/api/core/model_runtime/model_providers/__base/large_language_model.py", line 66, in invoke test-dify-api-1 | model_parameters = self._validate_and_filter_model_parameters(model, model_parameters, credentials) test-dify-api-1 | File "/app/api/core/model_runtime/model_providers/__base/large_language_model.py", line 810, in _validate_and_filter_model_parameters test-dify-api-1 | raise ValueError( test-dify-api-1 | ValueError: Model Parameter temperature should be greater than or equal to 0.1. ``` ### ✔️ Expected Behavior no "file not found" no ERROR ### ❌ Actual Behavior ValueError: Model Parameter temperature should be greater than or equal to ### 0.1.
yindo closed this issue 2026-02-21 18:05:23 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Jun 25, 2024):

To resolve the "file not found" error for _position.yaml and the ValueError indicating that the "Model Parameter temperature should be greater than or equal to 0.1" when switching old apps to GPT-4o in your self-hosted Dify version 0.6.11 running on Docker, you should ensure the following:

  1. File Not Found Error for _position.yaml:

    • Ensure that the _position.yaml file exists in the correct directory: api/core/model_runtime/model_providers/openai/llm/.
    • The content of _position.yaml should include the list of models as shown in the document:
      - gpt-4
      - gpt-4o
      - gpt-4o-2024-05-13
      - gpt-4-turbo
      - gpt-4-turbo-2024-04-09
      - gpt-4-turbo-preview
      - gpt-4-32k
      - gpt-4-1106-preview
      - gpt-4-0125-preview
      - gpt-4-vision-preview
      - gpt-3.5-turbo
      - gpt-3.5-turbo-16k
      - gpt-3.5-turbo-16k-0613
      - gpt-3.5-turbo-0125
      - gpt-3.5-turbo-1106
      - gpt-3.5-turbo-0613
      - gpt-3.5-turbo-instruct
      - text-davinci-003
      
  2. ValueError for Model Parameter Temperature:

    • Ensure that the temperature parameter for the model is set to a value greater than or equal to 0.1. This can be done in the configuration file or the code where the model is being initialized. For example:
      model_parameters = {
          "temperature": 0.1,  # Ensure this value is >= 0.1
          # other parameters
      }
      

By ensuring the _position.yaml file is correctly placed and contains the necessary model entries, and by setting the temperature parameter to a valid value, you should be able to resolve these errors [1].

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Jun 25, 2024): <!-- Answer --> To resolve the "file not found" error for `_position.yaml` and the `ValueError` indicating that the "Model Parameter temperature should be greater than or equal to 0.1" when switching old apps to GPT-4o in your self-hosted Dify version 0.6.11 running on Docker, you should ensure the following: 1. **File Not Found Error for `_position.yaml`**: - Ensure that the `_position.yaml` file exists in the correct directory: `api/core/model_runtime/model_providers/openai/llm/`. - The content of `_position.yaml` should include the list of models as shown in the document: ```yaml - gpt-4 - gpt-4o - gpt-4o-2024-05-13 - gpt-4-turbo - gpt-4-turbo-2024-04-09 - gpt-4-turbo-preview - gpt-4-32k - gpt-4-1106-preview - gpt-4-0125-preview - gpt-4-vision-preview - gpt-3.5-turbo - gpt-3.5-turbo-16k - gpt-3.5-turbo-16k-0613 - gpt-3.5-turbo-0125 - gpt-3.5-turbo-1106 - gpt-3.5-turbo-0613 - gpt-3.5-turbo-instruct - text-davinci-003 ``` 2. **ValueError for Model Parameter Temperature**: - Ensure that the temperature parameter for the model is set to a value greater than or equal to 0.1. This can be done in the configuration file or the code where the model is being initialized. For example: ```python model_parameters = { "temperature": 0.1, # Ensure this value is >= 0.1 # other parameters } ``` By ensuring the `_position.yaml` file is correctly placed and contains the necessary model entries, and by setting the temperature parameter to a valid value, you should be able to resolve these errors <sup>[[1]](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/model_providers/openai/llm/_position.yaml)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#4251