From 998d75b21014a0ce5a639d5d85245bce86e335f8 Mon Sep 17 00:00:00 2001 From: levanion Date: Thu, 7 Mar 2024 13:01:12 +0400 Subject: [PATCH 1/2] feat: new models --- apps/server/typings/model.py | 1 + apps/server/utils/model.py | 54 ++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) diff --git a/apps/server/typings/model.py b/apps/server/typings/model.py index 7eb73626f..935640b86 100644 --- a/apps/server/typings/model.py +++ b/apps/server/typings/model.py @@ -8,6 +8,7 @@ class ModelProviders(Enum): OPEN_AI = "OpenAI" HUGGING_FACE = "Hugging Face" REPLICATE = "Replicate" + CLAUDE = "Claude" def __str__(self) -> str: return self.value diff --git a/apps/server/utils/model.py b/apps/server/utils/model.py index 4acc4a40f..1a31024b0 100644 --- a/apps/server/utils/model.py +++ b/apps/server/utils/model.py @@ -30,6 +30,22 @@ "fine_tuning": True, "is_voice": True, }, + { + "id": "171e01f0-ca4a-41fb-b00d-3c49b0b7f579", + "provider": ModelProviders.OPEN_AI, + "name": "GPT-3.5 0125", + "value": "gpt-3.5-turbo-0125", + "fine_tuning": False, + "is_voice": True, + }, + { + "id": "d7531988-ed64-4801-b8f6-60cbf778897a", + "provider": ModelProviders.OPEN_AI, + "name": "GPT-3.5 1106", + "value": "gpt-3.5-turbo-1106", + "fine_tuning": False, + "is_voice": True, + }, { "id": "f4fc991a-8ef8-4ae7-a395-a22057f33d4a", "provider": ModelProviders.OPEN_AI, @@ -46,6 +62,30 @@ "fine_tuning": False, "is_voice": True, }, + { + "id": "1191a1ca-d716-41c1-997c-30eaa5dbb7b4", + "provider": ModelProviders.OPEN_AI, + "name": "GPT-4 0125", + "value": "gpt-4-0125-preview", + "fine_tuning": False, + "is_voice": True, + }, + { + "id": "3300eec2-1426-49ce-a2af-bb3a371b8fd4", + "provider": ModelProviders.OPEN_AI, + "name": "GPT-4 1106", + "value": "gpt-4-1106-preview", + "fine_tuning": False, + "is_voice": True, + }, + { + "id": "09cdc79f-3e8d-49f8-a4d2-544656a23b74", + "provider": ModelProviders.OPEN_AI, + "name": "GPT-4 32k", + "value": "gpt-4-32k", + "fine_tuning": False, + "is_voice": True, + }, { "id": "308346e9-80d1-44c9-b2e1-5c261a0c5931", "provider": ModelProviders.HUGGING_FACE, @@ -74,6 +114,20 @@ "value": "meta/llama-2-70b-chat:latest", "fine_tuning": False, }, + { + "id": "56b4eaae-f74e-4fd7-9b4b-ffd7d1e8d90b", + "provider": ModelProviders.CLAUDE, + "name": "Claude 3 Opus", + "value": "claude-3-opus-20240229", + "fine_tuning": False, + }, + { + "id": "1ed94d6a-a0a4-4256-8239-57fe35773a1a", + "provider": ModelProviders.CLAUDE, + "name": "Claude 3 Sonnet", + "value": "claude-3-sonnet-20240229", + "fine_tuning": False, + }, ] From 3aa4f889e024b7b6bc2fbc050c7e73a06e1f15c7 Mon Sep 17 00:00:00 2001 From: levanion Date: Thu, 7 Mar 2024 13:01:22 +0400 Subject: [PATCH 2/2] fix: claude logo --- apps/ui/src/assets/models/claude-ai-icon.webp | Bin 0 -> 2558 bytes apps/ui/src/pages/Models/constants.ts | 5 +++++ 2 files changed, 5 insertions(+) create mode 100644 apps/ui/src/assets/models/claude-ai-icon.webp diff --git a/apps/ui/src/assets/models/claude-ai-icon.webp b/apps/ui/src/assets/models/claude-ai-icon.webp new file mode 100644 index 0000000000000000000000000000000000000000..6b8f6ae3028059b769ab5e72b3b7fcf98a2fae22 GIT binary patch literal 2558 zcmV<|BMM6+kP&iEK2><{u|G|F{Z=kl3q&9e;dJBXoYTJlSwFvID zr=qrz+*r1~`VlxqZ5uHGb9?-cKd}n{{{Ih6I-9QH{p0?TRf;Ig+F|B&G%|VDrEOideuF(GSSOfLaW=dgNg0UNd#Q zkrC1E)#@_jW+7qh2K>g8+kQp=pGh8 zS?Ckt2zx>tAy4+Bv>*!8tS}@rNeBjuqB;P*g;C|52aBU`p*mnU7>U?<<<%nTyYDsh zrICuA-!-TupKIt#JsDNFw27KP2R3RCY%QE}kFTJ9!`|X)H5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Cd7R)cijNW`3_D_Trz4_Lqihw0YArngW8I3(8+-mXx@d+GP5#!! zo>9NLkxLJ&4>DAdn{V9*8ScpQx5dX+7|8RtX{Hs}Gw&xSYQ8yHF@skRxAZW)oP>f~ zdRV+r!G?r+JGn8vynKh#%-=d;OkUXA&j`)8=%x`y6y}?&{X&v?FMj$!l@{X5-!`ci z=7+xjj_;Gu6h99_tF`n1hjrWVS7Y-H5$lG`yd9kuqZ5o-dgz{LV8bjuR8NbrU^d^f zr^mp7*?bGGnqZI?o{stEYOk2>;Zx7wy6P2XJq)q*(0q~Lj@W$5zP7+>EIk~Mhz|G8 z(yI?@<{Of{t>LR^Ej@r?-A2qCZ~peo8wG55^S8y@Bfx?;fBUbupOb3)M>f7nAf6xn z@!fxX_a9dsG4wQ-KO;T6%b$UsnxCGYs-x#eOV660Jw2-}J^6;7tfVI`=t)G6WZ=gR z(f}Vjq#izYNG-hWl=kqpQ-U{MnN-l*4vF4&NF(~x^}qmcJERVM>ULlc-wVD~c0lw` zN+bM}=*g=(fS$b8$85oe&c_twspD7%eCP(hu{xzi--+%#vs1+GI>DoNJw=OMfiGlJ zh`KUafUdw7*3%&W`y!o2hB$Pbp@SYdqc_dYA?~i&*}Iwodia)~r{EpAIef+a4*xZG zK?c}#fm^R1Zj`K=y51*v$CFZYQSrt&?qpHeMQ#mz@7dHI`Y UvHE@c{P7txK3|@1zsRoy06VHDEC2ui literal 0 HcmV?d00001 diff --git a/apps/ui/src/pages/Models/constants.ts b/apps/ui/src/pages/Models/constants.ts index 49ca21801..f5afa5da2 100644 --- a/apps/ui/src/pages/Models/constants.ts +++ b/apps/ui/src/pages/Models/constants.ts @@ -1,6 +1,7 @@ import GPTLogo from 'assets/models/openai.jpg' import HuggingFaceLogo from 'assets/models/hugging-face.png' import ReplicateLogo from 'assets/models/replicate.png' +import ClaudeLogo from 'assets/models/claude-ai-icon.webp' export const MODEL_PROVIDER_LOGOS = [ { @@ -15,4 +16,8 @@ export const MODEL_PROVIDER_LOGOS = [ logoSrc: ReplicateLogo, provider: 'Replicate', }, + { + logoSrc: ClaudeLogo, + provider: 'Claude', + }, ]