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
9822f687
Unverified
Commit
9822f687
authored
Oct 13, 2023
by
takatost
Committed by
GitHub
Oct 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: max tokens of OpenAI gpt-3.5-turbo-instruct to 4097 (#1338)
parent
b9d83c04
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
openai_model.py
api/core/model_providers/models/llm/openai_model.py
+1
-1
openai_provider.py
api/core/model_providers/providers/openai_provider.py
+1
-1
No files found.
api/core/model_providers/models/llm/openai_model.py
View file @
9822f687
...
...
@@ -33,7 +33,7 @@ MODEL_MAX_TOKENS = {
'gpt-4'
:
8192
,
'gpt-4-32k'
:
32768
,
'gpt-3.5-turbo'
:
4096
,
'gpt-3.5-turbo-instruct'
:
8192
,
'gpt-3.5-turbo-instruct'
:
4097
,
'gpt-3.5-turbo-16k'
:
16384
,
'text-davinci-003'
:
4097
,
}
...
...
api/core/model_providers/providers/openai_provider.py
View file @
9822f687
...
...
@@ -144,7 +144,7 @@ class OpenAIProvider(BaseModelProvider):
'gpt-4'
:
8192
,
'gpt-4-32k'
:
32768
,
'gpt-3.5-turbo'
:
4096
,
'gpt-3.5-turbo-instruct'
:
8192
,
'gpt-3.5-turbo-instruct'
:
4097
,
'gpt-3.5-turbo-16k'
:
16384
,
'text-davinci-003'
:
4097
,
}
...
...
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