Merge pull request #2817 from ryanwclark1/gpt4turbopreview

Update: gpt-4-turbo-preview pricing and context.  Included in docs.
This commit is contained in:
Krish Dholakia 2024-04-16 07:35:52 -07:00 committed by GitHub
commit 523b94acfd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View file

@ -163,6 +163,7 @@ os.environ["OPENAI_API_BASE"] = "openaiai-api-base" # OPTIONAL
| Model Name | Function Call |
|-----------------------|-----------------------------------------------------------------|
| gpt-4-turbo-preview | `response = completion(model="gpt-4-0125-preview", messages=messages)` |
| gpt-4-0125-preview | `response = completion(model="gpt-4-0125-preview", messages=messages)` |
| gpt-4-1106-preview | `response = completion(model="gpt-4-1106-preview", messages=messages)` |
| gpt-3.5-turbo-1106 | `response = completion(model="gpt-3.5-turbo-1106", messages=messages)` |

View file

@ -11,7 +11,7 @@
},
"gpt-4-turbo-preview": {
"max_tokens": 4096,
"max_input_tokens": 8192,
"max_input_tokens": 128000,
"max_output_tokens": 4096,
"input_cost_per_token": 0.00001,
"output_cost_per_token": 0.00003,