Skip to content

Commit

Permalink
Merge pull request #448 from morgan9e/upstream
Browse files Browse the repository at this point in the history
Added gpt-4-turbo-2024-04-09
  • Loading branch information
Niek authored Apr 29, 2024
2 parents c52ccee + 290a98f commit 2a98867
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/lib/providers/openai/models.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export const chatModels : Record<string, ModelDetail> = {
'gpt-3.5-turbo-16k-0613': { ...gpt3516k },
'gpt-4': { ...gpt4 },
'gpt-4-turbo-preview': { ...gpt4128kpreview },
'gpt-4-turbo-2024-04-09': { ...gpt4128kpreview },
'gpt-4-0314': { ...gpt4 },
'gpt-4-0613': { ...gpt4 },
'gpt-4-1106-preview': { ...gpt4128kpreview },
Expand Down
2 changes: 1 addition & 1 deletion src/lib/providers/openai/request.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const chatRequest = async (
throw err
},
async onopen (response) {
if (response.ok && response.headers.get('content-type') === EventStreamContentType) {
if (response.ok && response.headers.get('content-type').startsWith(EventStreamContentType)) {
// everything's good
} else {
// client-side errors are usually non-retriable:
Expand Down

0 comments on commit 2a98867

Please sign in to comment.