Skip to content

Commit

Permalink
add: temporally add environment variable for talkativot UI when creat…
Browse files Browse the repository at this point in the history
…ing a service via model card
  • Loading branch information
lizable committed Jan 10, 2025
1 parent 79d032e commit 20f30e9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 18 deletions.
5 changes: 4 additions & 1 deletion react/src/components/ModelTryContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,10 @@ const ModelTryContent: React.FC<ModelTryContentProps> = ({
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
Expand Down
21 changes: 4 additions & 17 deletions resources/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1690,15 +1690,10 @@
"category": "Category",
"CloneToFolder": "Clone to a folder",
"FolderAlreadyExists": "A folder with this name already exists.",
"FinetuneModel": "Finetune Model"
},
"tourguide": {
"NeoSessionLauncher": {
"ValidationErrorTitle": "Input field validation errors",
"ValidationErrorText": "If you don't enter a value in a required field or enter an invalid value, an error message displays in that field.",
"FixErrorAndTryAgainText": "If there is an error field, the Launch session button is disabled. Please correct the error and try again.",
"FixErrorFieldbyModifyButton": "For that error field, you can go directly to the Edit button in the top right corner to edit it."
}
"FinetuneModel": "Finetune Model",
"Experience": "Experience",
"ModelCard": "Model Card",
"ImportFromHuggingFace": "Import From Hugging Face"
},
"sourceCodeViewer": {
"Copy": "Copy",
Expand Down Expand Up @@ -1753,14 +1748,6 @@
"Notification": "Notification",
"Running": "Running..."
},
"tourGuide": {
"neoSessionLauncher": {
"FixErrorAndTryAgainText": "If there is an error field, the Launch session button is disabled. Please correct the error and try again.",
"FixErrorFieldByModifyButton": "For that error field, you can go directly to the Edit button in the top right corner to edit it.",
"ValidationErrorText": "If you don't enter a value in a required field or enter an invalid value, an error message displays in that field.",
"ValidationErrorTitle": "Input field validation errors"
}
},
"errorBoundary": {
"DisplayOnlyDevEnv": "This error block is displayed only in WebUI development environment.",
"ExpiredLoginSessionReLogin": "Login",
Expand Down

0 comments on commit 20f30e9

Please sign in to comment.