Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CI / CI OK (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
24 lines
802 B
TypeScript
24 lines
802 B
TypeScript
/**
|
|
* 影子流量对比模块常量
|
|
* 场景 / 供应商选项集中维护,避免在 schema 与列配置中散落字面量
|
|
*/
|
|
|
|
/** 场景选项(与后端 xk_ai_shadow_compare.scene 取值对齐) */
|
|
export const SHADOW_SCENE_OPTIONS = [
|
|
{ label: '病历', value: 'medical_record' },
|
|
{ label: '处方', value: 'prescription' },
|
|
];
|
|
|
|
/** 供应商选项(主链路 / 影子链路共用) */
|
|
export const SHADOW_PROVIDER_OPTIONS = [
|
|
{ label: 'DeepSeek', value: 'deepseek' },
|
|
{ label: '讯飞星火', value: 'spark' },
|
|
{ label: 'Go Agent', value: 'agent' },
|
|
];
|
|
|
|
/** 场景 code 转中文展示名(列表列用) */
|
|
export function shadowSceneLabel(scene: string): string {
|
|
const hit = SHADOW_SCENE_OPTIONS.find((o) => o.value === scene);
|
|
return hit ? hit.label : scene || '-';
|
|
}
|