From bca06e7dabbda7de81ebced5589cbff6399a34f1 Mon Sep 17 00:00:00 2001 From: Jihyun Kang Date: Tue, 7 Jan 2025 17:42:09 +0900 Subject: [PATCH] add: temporally add environment variable for talkativot UI when creating a service via model card --- react/src/components/ModelTryContent.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/react/src/components/ModelTryContent.tsx b/react/src/components/ModelTryContent.tsx index 1aab0ac0a..d975324ae 100644 --- a/react/src/components/ModelTryContent.tsx +++ b/react/src/components/ModelTryContent.tsx @@ -257,7 +257,10 @@ const ModelTryContent: React.FC = ({ tags: undefined, version: undefined, }, - environment: '', + // FIXME: temporarily hard-coded environment variable + environment: modelName?.includes('Talkativot UI') + ? '[{"tokenLimit":1024,"vision":false,"apiEndpoint":"https://llama_kor_bllossom.asia03.app.backend.ai","id":"Llama-3.2-Korean-Bllossom-3B","name":"Llama-3.2-Korean-Bllossom-3B"},{"tokenLimit":2048,"vision":false,"apiEndpoint":"https://gemma2_9b.asia03.app.backend.ai/","id":"gemma-2-9b-it","name":"gemma-2-9b-it"},{"tokenLimit":4096,"vision":true,"apiEndpoint":"https://llama-vision.asia03.app.backend.ai/","id":"Llama-3.2-11B-Vision-Instruct","name":"Llama-3.2-11B-Vision-Instruct"}]' + : '', version: '', }, // FIXME: temporally hard-coded runtime variant