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
guchenhe committed Jan 2, 2024
2 parents d558a8d + 9344091 commit bc57ea5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ def get_customizable_model_schema(self, model: str, credentials: dict) -> AIMode

if model_type == ModelType.LLM:
if credentials['mode'] == 'chat':
entity.model_properties['mode'] = LLMMode.CHAT
entity.model_properties[ModelPropertyKey.MODE] = LLMMode.CHAT
elif credentials['mode'] == 'completion':
entity.model_properties['mode'] = LLMMode.COMPLETION
entity.model_properties[ModelPropertyKey.MODE] = LLMMode.COMPLETION
else:
raise ValueError(f"Unknown completion type {credentials['completion_type']}")

Expand Down

0 comments on commit bc57ea5

Please sign in to comment.