feat: add AI descriptions and platform submission checks
This commit is contained in:
@@ -16,6 +16,7 @@ export function ModelSettingsPanel() {
|
||||
const [draft, setDraft] = useState({
|
||||
base_url: "",
|
||||
model: "",
|
||||
description_model: "",
|
||||
protocol: "chat_completions",
|
||||
enabled: false,
|
||||
});
|
||||
@@ -27,6 +28,7 @@ export function ModelSettingsPanel() {
|
||||
setDraft({
|
||||
base_url: value.base_url,
|
||||
model: value.model,
|
||||
description_model: value.description_model ?? "",
|
||||
protocol: value.protocol,
|
||||
enabled: value.enabled,
|
||||
});
|
||||
@@ -117,6 +119,17 @@ export function ModelSettingsPanel() {
|
||||
placeholder="供应商提供的模型名称"
|
||||
/>
|
||||
</label>
|
||||
<label>
|
||||
Description 模型标识
|
||||
<Input
|
||||
aria-label="Description 模型标识"
|
||||
value={draft.description_model}
|
||||
onChange={(description_model) =>
|
||||
setDraft({ ...draft, description_model })
|
||||
}
|
||||
placeholder="用于 Alpha 三段式描述的模型名称"
|
||||
/>
|
||||
</label>
|
||||
<label>
|
||||
API Key
|
||||
<Input
|
||||
@@ -149,7 +162,9 @@ export function ModelSettingsPanel() {
|
||||
</div>
|
||||
<p className="muted">
|
||||
填写服务端可访问的 API 根地址,按供应商要求包含 /v1;无需填写
|
||||
/chat/completions 或 /responses。密钥加密保存在后端。
|
||||
/chat/completions 或 /responses。密钥加密保存在后端。 Description
|
||||
模型与研究助手共享 Base URL、API Key
|
||||
和接口协议;留空时不启用描述生成。
|
||||
</p>
|
||||
<Checkbox
|
||||
checked={draft.enabled}
|
||||
|
||||
@@ -4,6 +4,7 @@ import type { Job, Research } from "../types";
|
||||
export type ModelSettings = {
|
||||
base_url: string;
|
||||
model: string;
|
||||
description_model: string;
|
||||
protocol: "chat_completions" | "responses";
|
||||
configured: boolean;
|
||||
enabled: boolean;
|
||||
|
||||
Reference in New Issue
Block a user