Skip to content

Commit abad519

Browse files
authored
Update api/apps/llm_app.py
1 parent 964e462 commit abad519

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/apps/llm_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def set_api_key():
107107
except Exception as e:
108108
msg += f"\nFail to access model({model_name}) using this api key." + str(e)
109109

110-
if embd_passed or chat_passed or rerank_passed:
110+
if any([embd_passed, chat_passed, rerank_passed]):
111111
msg = ''
112112
break
113113

0 commit comments

Comments
 (0)