Download packages/core/src/github-copilot/chat/openai-compatible-chat-options.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 750 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/core/src/github-copilot/chat/openai-compatible-chat-options.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/core/src/github-copilot/chat/openai-compatible-chat-options.ts
-
curl -L -o openai-compatible-chat-options.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/core/src/github-copilot/chat/openai-compatible-chat-options.ts
750 Bytes
| 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> | |