Skip to content

Commit

Permalink
Merge branch 'feat/model-runtime' into deploy/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
zxhlyh committed Dec 28, 2023
2 parents 2644503 + c27c4db commit 7118f31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/core/model_runtime/model_providers/tongyi/llm/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def _to_credential_kwargs(self, credentials: dict) -> dict:
:return:
"""
credentials_kwargs = {
"api_key": credentials['tongyi_api_key'],
"api_key": credentials['dashscope_api_key'],
}

return credentials_kwargs
Expand Down
2 changes: 1 addition & 1 deletion api/core/model_runtime/model_providers/tongyi/tongyi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ configurate_methods:
- predefined-model
provider_credential_schema:
credential_form_schemas:
- variable: tongyi_api_key
- variable: dashscope_api_key
label:
en_US: APIKey
type: secret-input
Expand Down

0 comments on commit 7118f31

Please sign in to comment.