Files
dify/api/core
GareArc 9869263653 fix: extract model_provider from model_config in prompt generation trace
The model_provider field in prompt generation traces was being incorrectly
extracted by parsing the model name (e.g., 'deepseek-chat'), which resulted
in an empty string when the model name didn't contain a '/' character.

Now extracts the provider directly from the model_config parameter, with
a fallback to the old parsing logic for backward compatibility.

Changes:
- Update _emit_prompt_generation_trace to accept model_config parameter
- Extract provider from model_config.get('provider') when available
- Update all 6 call sites to pass model_config
- Maintain backward compatibility with fallback logic
2026-02-04 21:46:01 -08:00
..
2025-09-18 12:49:10 +08:00
2025-10-10 23:41:16 +08:00
2025-10-21 11:26:58 +08:00
2026-01-08 13:17:30 +08:00