mirror of
https://github.com/logancyang/obsidian-copilot.git
synced 2026-07-22 07:50:24 +00:00
Add support for GPT-4o (#446)
This commit is contained in:
parent
61f7bb67bf
commit
17308013e8
2 changed files with 7 additions and 0 deletions
|
|
@ -168,6 +168,9 @@ const ChatIcons: React.FC<ChatIconsProps> = ({
|
|||
<option value={ChatModelDisplayNames.GPT_4}>
|
||||
{ChatModelDisplayNames.GPT_4}
|
||||
</option>
|
||||
<option value={ChatModelDisplayNames.GPT_4o}>
|
||||
{ChatModelDisplayNames.GPT_4o}
|
||||
</option>
|
||||
<option value={ChatModelDisplayNames.GPT_4_TURBO}>
|
||||
{ChatModelDisplayNames.GPT_4_TURBO}
|
||||
</option>
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ export enum ChatModels {
|
|||
GPT_35_TURBO = "gpt-3.5-turbo",
|
||||
GPT_35_TURBO_16K = "gpt-3.5-turbo-16k",
|
||||
GPT_4 = "gpt-4",
|
||||
GPT_4o = "gpt-4o",
|
||||
GPT_4_TURBO = "gpt-4-turbo-preview",
|
||||
GPT_4_32K = "gpt-4-32k",
|
||||
GEMINI_PRO = "gemini-pro",
|
||||
|
|
@ -20,6 +21,7 @@ export enum ChatModelDisplayNames {
|
|||
GPT_35_TURBO = "GPT-3.5",
|
||||
GPT_35_TURBO_16K = "GPT-3.5 16K",
|
||||
GPT_4 = "GPT-4",
|
||||
GPT_4o = "GPT-4o",
|
||||
GPT_4_TURBO = "GPT-4 TURBO",
|
||||
GPT_4_32K = "GPT-4 32K",
|
||||
AZURE_OPENAI = "AZURE OPENAI",
|
||||
|
|
@ -34,6 +36,7 @@ export const OPENAI_MODELS = new Set([
|
|||
ChatModelDisplayNames.GPT_35_TURBO,
|
||||
ChatModelDisplayNames.GPT_35_TURBO_16K,
|
||||
ChatModelDisplayNames.GPT_4,
|
||||
ChatModelDisplayNames.GPT_4o,
|
||||
ChatModelDisplayNames.GPT_4_TURBO,
|
||||
ChatModelDisplayNames.GPT_4_32K,
|
||||
ChatModelDisplayNames.LM_STUDIO,
|
||||
|
|
@ -57,6 +60,7 @@ export const DISPLAY_NAME_TO_MODEL: Record<string, string> = {
|
|||
[ChatModelDisplayNames.GPT_35_TURBO]: ChatModels.GPT_35_TURBO,
|
||||
[ChatModelDisplayNames.GPT_35_TURBO_16K]: ChatModels.GPT_35_TURBO_16K,
|
||||
[ChatModelDisplayNames.GPT_4]: ChatModels.GPT_4,
|
||||
[ChatModelDisplayNames.GPT_4o]: ChatModels.GPT_4o,
|
||||
[ChatModelDisplayNames.GPT_4_TURBO]: ChatModels.GPT_4_TURBO,
|
||||
[ChatModelDisplayNames.GPT_4_32K]: ChatModels.GPT_4_32K,
|
||||
[ChatModelDisplayNames.AZURE_OPENAI]: "azure_openai",
|
||||
|
|
|
|||
Loading…
Reference in a new issue