Skip to content

Commit be7573c

Browse files
OhYeeCopilot
andauthored
Update agentrun/model/__model_service_async_template.py
Co-authored-by: Copilot <[email protected]> Signed-off-by: OhYee <[email protected]>
1 parent 05c8b26 commit be7573c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agentrun/model/__model_service_async_template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def model_info(self, config: Optional[Config] = None) -> BaseInfo:
215215
credential = Credential.get_by_name(
216216
self.credential_name, config=cfg
217217
)
218-
api_key = credential.credential_secret
218+
api_key = credential.credential_secret or ""
219219

220220
default_model = (
221221
self.provider_settings.model_names[0]

0 commit comments

Comments
 (0)