mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-06-29 23:41:12 +08:00
Fix: model provider (#15634)
### What problem does this PR solve? Not display `success` when check not passed. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@@ -417,7 +417,8 @@ async def verify_api_key(provider_name: str, api_key: str, base_url: str=None, r
|
||||
msg = ""
|
||||
break
|
||||
|
||||
return any([embd_passed, chat_passed, rerank_passed]), msg or "success"
|
||||
success = any([embd_passed, chat_passed, rerank_passed])
|
||||
return success, "success" if success else msg
|
||||
|
||||
|
||||
def show_provider_instance(tenant_id: str, provider_name: str, instance_name: str):
|
||||
|
||||
Reference in New Issue
Block a user