Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
1c552ff2
Unverified
Commit
1c552ff2
authored
Aug 19, 2023
by
takatost
Committed by
GitHub
Aug 19, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: azure embedding model credentials include base_model_name is invalid for openai sdk (#917)
parent
5163dd38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
azure_openai_embedding.py
...odel_providers/models/embedding/azure_openai_embedding.py
+2
-1
No files found.
api/core/model_providers/models/embedding/azure_openai_embedding.py
View file @
1c552ff2
...
@@ -26,7 +26,8 @@ class AzureOpenAIEmbedding(BaseEmbedding):
...
@@ -26,7 +26,8 @@ class AzureOpenAIEmbedding(BaseEmbedding):
openai_api_version
=
AZURE_OPENAI_API_VERSION
,
openai_api_version
=
AZURE_OPENAI_API_VERSION
,
chunk_size
=
16
,
chunk_size
=
16
,
max_retries
=
1
,
max_retries
=
1
,
**
self
.
credentials
openai_api_key
=
self
.
credentials
.
get
(
'openai_api_key'
),
openai_api_base
=
self
.
credentials
.
get
(
'openai_api_base'
)
)
)
super
()
.
__init__
(
model_provider
,
client
,
name
)
super
()
.
__init__
(
model_provider
,
client
,
name
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment