chore: config base url
This commit is contained in:
@@ -2,6 +2,7 @@ import MindIELogo from '@/assets/logo/ascend.png';
|
||||
import SGLangLogo from '@/assets/logo/sglang.png';
|
||||
import vLLMLogo from '@/assets/logo/vllm.png';
|
||||
import icons from '@/components/icon-font/icons';
|
||||
import { GPUSTACK_API_BASE_URL } from '@/config/settings';
|
||||
import { backendOptionsMap } from '@/pages/llmodels/config/backend-parameters';
|
||||
import jsYaml from 'js-yaml';
|
||||
import { trim } from 'lodash';
|
||||
@@ -173,7 +174,7 @@ export const yamlTemplate = `# backend configuration template
|
||||
backend_name: my-backend-custom
|
||||
description: this is my-backend
|
||||
default_version: v0.5.1
|
||||
health_check_path: /v1/models
|
||||
health_check_path: /${GPUSTACK_API_BASE_URL}/models
|
||||
default_backend_param:
|
||||
- --host
|
||||
default_run_command: myBackend serve {{model_path}} --port {{port}}
|
||||
|
||||
@@ -2,6 +2,7 @@ import ListInput from '@/components/list-input';
|
||||
import SealInput from '@/components/seal-form/seal-input';
|
||||
import SealTextArea from '@/components/seal-form/seal-textarea';
|
||||
import { PageAction } from '@/config';
|
||||
import { GPUSTACK_API_BASE_URL } from '@/config/settings';
|
||||
import { PageActionType } from '@/config/types';
|
||||
import useAppUtils from '@/hooks/use-app-utils';
|
||||
import { useIntl } from '@umijs/max';
|
||||
@@ -47,7 +48,7 @@ const BasicForm: React.FC<AddModalProps> = ({ action, currentData }) => {
|
||||
trim
|
||||
placeholder={intl.formatMessage(
|
||||
{ id: 'common.help.default' },
|
||||
{ content: '/v1/models' }
|
||||
{ content: `/${GPUSTACK_API_BASE_URL}/models` }
|
||||
)}
|
||||
label={intl.formatMessage({ id: 'backend.form.healthCheckPath' })}
|
||||
></SealInput.Input>
|
||||
|
||||
Reference in New Issue
Block a user