chore: apply PR 1495 and update changelog

This commit is contained in:
diegosouzapw
2026-04-21 21:12:29 -03:00
parent 98c5b250b9
commit a7b6dfb06e
204 changed files with 2515 additions and 1652 deletions

View File

@@ -0,0 +1,11 @@
export const SUPPORTED_BATCH_ENDPOINTS = [
"/v1/responses",
"/v1/chat/completions",
"/v1/embeddings",
"/v1/completions",
"/v1/moderations",
"/v1/images/generations",
"/v1/videos/generations",
] as const;
export type SupportedBatchEndpoint = (typeof SUPPORTED_BATCH_ENDPOINTS)[number];

View File

@@ -15,6 +15,7 @@ const CLI_TOOLS: Record<string, any> = {
healthcheckTimeoutMs: 4000,
paths: {
settings: ".claude/settings.json",
auth: ".claude/.credentials.json",
},
},
codex: {

View File

@@ -1,4 +1,5 @@
import { z } from "zod";
import { SUPPORTED_BATCH_ENDPOINTS } from "@/shared/constants/batchEndpoints";
import { HIDEABLE_SIDEBAR_ITEM_IDS } from "@/shared/constants/sidebarVisibility";
import { isForbiddenUpstreamHeaderName } from "@/shared/constants/upstreamHeaders";
@@ -1799,16 +1800,7 @@ export const versionManagerInstallSchema = versionManagerToolSchema.extend({
export const v1BatchCreateSchema = z.object({
input_file_id: z.string().min(1),
endpoint: z.enum([
"/v1/responses",
"/v1/chat/completions",
"/v1/embeddings",
"/v1/completions",
"/v1/moderations",
"/v1/images/generations",
"/v1/images/edits",
"/v1/videos",
]),
endpoint: z.enum(SUPPORTED_BATCH_ENDPOINTS),
completion_window: z.enum(["24h"]),
metadata: z
.record(z.string().max(64), z.string().max(512))