Skip to content

Commit

Permalink
chore: spelling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ourongxing committed Nov 7, 2023
1 parent b9331fa commit 114f67f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/Chat/SettingAction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export default function SettingAction() {
},
{
value: "gpt-4-preview",
label: "gpt-4(preivew)"
label: "gpt-4(preview)"
}
]}
/>
Expand Down
4 changes: 2 additions & 2 deletions src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const models = {
"8k": "gpt-4",
"32k": "gpt-4-32k"
},
"gpt-4-preivew": {
"gpt-4-preview": {
"128k": "gpt-4-1106-preview"
}
} satisfies {
Expand Down Expand Up @@ -194,7 +194,7 @@ function Store() {
case "gpt-4":
return models["gpt-4"][tk < 7 ? "8k" : "32k"]
default:
return models["gpt-4-preivew"]["128k"]
return models["gpt-4-preview"]["128k"]
}
})

Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface ChatMessage {
}

export type Role = "system" | "user" | "assistant" | "error"
export type SimpleModel = "gpt-3.5" | "gpt-4" | "gpt-4-preivew"
export type SimpleModel = "gpt-3.5" | "gpt-4" | "gpt-4-preview"
export type Model =
| "gpt-3.5-turbo-1106"
| "gpt-4-1106-preview"
Expand Down

0 comments on commit 114f67f

Please sign in to comment.