fix: use model provided by user in prompt generator (#22541) (#22542)

Co-authored-by: stream <stream@dify.ai>
This commit is contained in:
Stream 2025-07-17 14:19:52 +08:00 committed by GitHub
parent 93c27b134d
commit 4b2baeea65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -148,9 +148,11 @@ class LLMGenerator:
model_manager = ModelManager()
model_instance = model_manager.get_default_model_instance(
model_instance = model_manager.get_model_instance(
tenant_id=tenant_id,
model_type=ModelType.LLM,
provider=model_config.get("provider", ""),
model=model_config.get("name", ""),
)
try: