MCPcopy Index your code
hub / github.com/anomalyco/opencode / createGpt5Model

Function createGpt5Model

packages/opencode/test/provider/transform.test.ts:281–305  ·  view source on GitHub ↗
(apiId: string)

Source from the content-addressed store, hash-verified

279 const sessionID = "test-session-123"
280
281 const createGpt5Model = (apiId: string) =>
282 ({
283 id: `openai/${apiId}`,
284 providerID: "openai",
285 api: {
286 id: apiId,
287 url: "https://api.openai.com",
288 npm: "@ai-sdk/openai",
289 },
290 name: apiId,
291 capabilities: {
292 temperature: true,
293 reasoning: true,
294 attachment: true,
295 toolcall: true,
296 input: { text: true, audio: false, image: true, video: false, pdf: false },
297 output: { text: true, audio: false, image: false, video: false, pdf: false },
298 interleaved: false,
299 },
300 cost: { input: 0.03, output: 0.06, cache: { read: 0.001, write: 0.002 } },
301 limit: { context: 128000, output: 4096 },
302 status: "active",
303 options: {},
304 headers: {},
305 }) as any
306
307 test("gpt-5.2 should have textVerbosity set to low", () => {
308 const model = createGpt5Model("gpt-5.2")

Callers 1

transform.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected