/
Alex_Ural
/
opencode
Обзор
Документация
Войти
/
Alex_Ural
/
opencode
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
packages/core/src/github-copilot/responses/openai-config.ts
18 строк
597 B
Dax
core: expose v2 model listing API (#25821)
13 май 2026, 17:43
Не верифицирован
13 май 2026, 17:43
8345152
Код
Авторство
О чём код?
import type { FetchFunction } from "@ai-sdk/provider-utils" export type OpenAIConfig = { provider: string url: (options: { modelId: string; path: string }) => string headers: () => Record<string, string | undefined> fetch?: FetchFunction generateId?: () => string /** * File ID prefixes used to identify file IDs in Responses API. * When undefined, all file data is treated as base64 content. * * Examples: * - OpenAI: ['file-'] for IDs like 'file-abc123' * - Azure OpenAI: ['assistant-'] for IDs like 'assistant-abc123' */ fileIdPrefixes?: readonly string[] }