Skip to content

Commit

Permalink
modify model_type names
Browse files Browse the repository at this point in the history
  • Loading branch information
qbc2016 committed Mar 13, 2024
1 parent f5cc618 commit a5b9648
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/agentscope/models/dashscope_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def __call__(
class DashScopeImageSynthesisWrapper(DashScopeWrapper):
"""The model wrapper for DashScope Image Synthesis API."""

model_type: str = "dashscope_imagesynthesis"
model_type: str = "dashscope_image_synthesis"

def _register_default_metrics(self) -> None:
# Set monitor accordingly
Expand Down Expand Up @@ -333,7 +333,7 @@ def __call__(
class DashScopeTextEmbeddingWrapper(DashScopeWrapper):
"""The model wrapper for DashScope Text Embedding API."""

model_type: str = "dashscope_textembedding"
model_type: str = "dashscope_embedding"

def _register_default_metrics(self) -> None:
# Set monitor accordingly
Expand Down

0 comments on commit a5b9648

Please sign in to comment.