feat: Support Azure embedding model
This commit is contained in:
parent
003f3d13e0
commit
097cabbf5b
@ -23,3 +23,7 @@ class AzureOpenAIEmbeddingModel(MaxKBBaseModel, AzureOpenAIEmbeddings):
|
|||||||
openai_api_version=model_credential.get('api_version'),
|
openai_api_version=model_credential.get('api_version'),
|
||||||
openai_api_type="azure",
|
openai_api_type="azure",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def is_cache_model(self):
|
||||||
|
return True
|
||||||
Loading…
Reference in New Issue
Block a user