/
Alex_Ural
/
opencode
Обзор
Документация
Войти
/
Alex_Ural
/
opencode
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
packages/core/src/github-copilot/chat/openai-compatible-chat-options.ts
28 строк
750 B
Dax
core: expose v2 model listing API (#25821)
13 май 2026, 17:43
Не верифицирован
13 май 2026, 17:43
8345152
Код
Авторство
О чём код?
import { z } from "zod/v4" export type OpenAICompatibleChatModelId = string export const openaiCompatibleProviderOptions = z.object({ /** * A unique identifier representing your end-user, which can help the provider to * monitor and detect abuse. */ user: z.string().optional(), /** * Reasoning effort for reasoning models. Defaults to `medium`. */ reasoningEffort: z.string().optional(), /** * Controls the verbosity of the generated text. Defaults to `medium`. */ textVerbosity: z.string().optional(), /** * Copilot thinking_budget used for Anthropic models. */ thinking_budget: z.number().optional(), }) export type OpenAICompatibleProviderOptions = z.infer<typeof openaiCompatibleProviderOptions>