Skip to content

Commit

Permalink
fix: fix verify credentials for debug-tool-call
Browse files Browse the repository at this point in the history
  • Loading branch information
LinkW77 authored and taskingaijc committed Sep 11, 2024
1 parent db96caa commit b52d614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inference/app/routes/verify/route.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ async def api_verify_credentials(
proxy=data.proxy,
custom_headers=data.custom_headers,
)
if response.message.content is None:
if not response.message.content and not response.message.function_calls:
raise_http_error(ErrorCode.CREDENTIALS_VALIDATION_ERROR, error_message)
elif model_type == ModelType.TEXT_EMBEDDING:
from ..text_embedding.route import embed_text
Expand Down

0 comments on commit b52d614

Please sign in to comment.