mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 10:40:43 +00:00
fix: restore model-level base url contract (#70340)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
d36bf1b6891ead1fb8c34604c0f0ec784a6c8e295293208af115a289c815aea4 config-baseline.json
|
||||
e5e5d4cdfe6c084493a3aca0baa23fd993a9e47a6be4410c9d8ebd75310da9a1 config-baseline.core.json
|
||||
81a8a7de5d4bf02cf3e697a641fe89844f98ed58d47890f12800181fde5a97b1 config-baseline.json
|
||||
dab963eda8866b8bffd5c9032f92f0f6b08ed54dda837f1f5c513fca5d2c78e9 config-baseline.core.json
|
||||
35d132fe176bd2bf9f0e46b29de91baba63ec4db3317cc5b294a982b46d16ba9 config-baseline.channel.json
|
||||
71b5ff17041bc48a62300ad9f44fa8bb14d9dcd7f4c3549c0576d3059ce6ff36 config-baseline.plugin.json
|
||||
|
||||
@@ -2734,6 +2734,10 @@ export const GENERATED_BASE_CONFIG_SCHEMA: BaseConfigSchemaResponse = {
|
||||
"azure-openai-responses",
|
||||
],
|
||||
},
|
||||
baseUrl: {
|
||||
type: "string",
|
||||
minLength: 1,
|
||||
},
|
||||
reasoning: {
|
||||
type: "boolean",
|
||||
},
|
||||
@@ -27672,6 +27676,9 @@ export const GENERATED_BASE_CONFIG_SCHEMA: BaseConfigSchemaResponse = {
|
||||
sensitive: true,
|
||||
tags: ["security", "auth"],
|
||||
},
|
||||
"models.providers.*.models[].baseUrl": {
|
||||
tags: ["models", "url-secret"],
|
||||
},
|
||||
"agents.list[].memorySearch.remote.baseUrl": {
|
||||
tags: ["advanced", "url-secret"],
|
||||
},
|
||||
|
||||
@@ -54,6 +54,7 @@ export type ModelDefinitionConfig = {
|
||||
id: string;
|
||||
name: string;
|
||||
api?: ModelApi;
|
||||
baseUrl?: string;
|
||||
reasoning: boolean;
|
||||
input: Array<"text" | "image">;
|
||||
cost: {
|
||||
|
||||
@@ -308,6 +308,7 @@ export const ModelDefinitionSchema = z
|
||||
id: z.string().min(1),
|
||||
name: z.string().min(1),
|
||||
api: ModelApiSchema.optional(),
|
||||
baseUrl: z.string().min(1).optional(),
|
||||
reasoning: z.boolean().optional(),
|
||||
input: z.array(z.union([z.literal("text"), z.literal("image")])).optional(),
|
||||
cost: z
|
||||
|
||||
Reference in New Issue
Block a user