mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-04 06:12:10 +03:00
fix(copilot): stabilize responses configuration (#2579)
Integrated into release/v3.8.2
This commit is contained in:
@@ -128,6 +128,18 @@ export default function CopilotToolCard({
|
||||
maxOutputTokens,
|
||||
}));
|
||||
|
||||
const responseModels = [...selectedModels].map((modelId) => ({
|
||||
id: modelId,
|
||||
name: modelId,
|
||||
url: `${baseUrl}/v1/responses#models.ai.azure.com`,
|
||||
supportsReasoningEffort: ["none", "low", "medium", "high", "xhigh"],
|
||||
zeroDataRetentionEnabled: true,
|
||||
toolCalling,
|
||||
vision,
|
||||
maxInputTokens,
|
||||
maxOutputTokens,
|
||||
}));
|
||||
|
||||
const config = {
|
||||
name: "OmniRoute",
|
||||
vendor: "azure",
|
||||
@@ -135,7 +147,14 @@ export default function CopilotToolCard({
|
||||
models,
|
||||
};
|
||||
|
||||
return JSON.stringify(config, null, 2);
|
||||
const responsesConfig = {
|
||||
name: "OmniRoute-responses",
|
||||
vendor: "azure",
|
||||
apiKey: `\${input:chat.lm.secret.omniroute}`,
|
||||
models: responseModels,
|
||||
};
|
||||
|
||||
return [config, responsesConfig].map((entry) => JSON.stringify(entry, null, 2)).join(",\n");
|
||||
};
|
||||
|
||||
const handleCopy = async (text: string, field: string) => {
|
||||
|
||||
Reference in New Issue
Block a user