Skip to content

Commit 097cabb

Browse files
committed
feat: Support Azure embedding model
1 parent 003f3d1 commit 097cabb

File tree

1 file changed

+4
-0
lines changed
  • apps/setting/models_provider/impl/azure_model_provider/model

1 file changed

+4
-0
lines changed

apps/setting/models_provider/impl/azure_model_provider/model/embedding.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,7 @@ def new_instance(model_type, model_name, model_credential: Dict[str, object], **
2323
openai_api_version=model_credential.get('api_version'),
2424
openai_api_type="azure",
2525
)
26+
27+
28+
def is_cache_model(self):
29+
return True

0 commit comments

Comments
 (0)