Skip to content

Commit 05c8b26

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agentrun/model/model_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def model_info(self, config: Optional[Config] = None) -> BaseInfo:
386386
credential = Credential.get_by_name(
387387
self.credential_name, config=cfg
388388
)
389-
api_key = credential.credential_secret
389+
api_key = credential.credential_secret or ""
390390

391391
default_model = (
392392
self.provider_settings.model_names[0]

0 commit comments

Comments
 (0)