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
435f804c
Unverified
Commit
435f804c
authored
Sep 18, 2023
by
takatost
Committed by
GitHub
Sep 18, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: gpt-3.5-turbo-instruct context size to 8192 (#1196)
parent
ae3f1ac0
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 @
435f804c
...
@@ -32,7 +32,7 @@ MODEL_MAX_TOKENS = {
...
@@ -32,7 +32,7 @@ MODEL_MAX_TOKENS = {
'gpt-4'
:
8192
,
'gpt-4'
:
8192
,
'gpt-4-32k'
:
32768
,
'gpt-4-32k'
:
32768
,
'gpt-3.5-turbo'
:
4096
,
'gpt-3.5-turbo'
:
4096
,
'gpt-3.5-turbo-instruct'
:
4096
,
'gpt-3.5-turbo-instruct'
:
8192
,
'gpt-3.5-turbo-16k'
:
16384
,
'gpt-3.5-turbo-16k'
:
16384
,
'text-davinci-003'
:
4097
,
'text-davinci-003'
:
4097
,
}
}
...
...
api/core/model_providers/providers/openai_provider.py
View file @
435f804c
...
@@ -132,7 +132,7 @@ class OpenAIProvider(BaseModelProvider):
...
@@ -132,7 +132,7 @@ class OpenAIProvider(BaseModelProvider):
'gpt-4'
:
8192
,
'gpt-4'
:
8192
,
'gpt-4-32k'
:
32768
,
'gpt-4-32k'
:
32768
,
'gpt-3.5-turbo'
:
4096
,
'gpt-3.5-turbo'
:
4096
,
'gpt-3.5-turbo-instruct'
:
4096
,
'gpt-3.5-turbo-instruct'
:
8192
,
'gpt-3.5-turbo-16k'
:
16384
,
'gpt-3.5-turbo-16k'
:
16384
,
'text-davinci-003'
:
4097
,
'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