MCPcopy Create free account
hub / github.com/anomalyco/opencode / provider

Function provider

packages/opencode/test/cli/run/session-replay.test.ts:105–160  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

103}
104
105const provider = (name: string): RunProvider => ({
106 id: "openai",
107 name: "OpenAI",
108 source: "api",
109 env: [],
110 options: {},
111 models: {
112 "gpt-5": {
113 id: "gpt-5",
114 providerID: "openai",
115 api: {
116 id: "openai",
117 url: "https://openai.test",
118 npm: "@ai-sdk/openai",
119 },
120 name,
121 capabilities: {
122 temperature: true,
123 reasoning: true,
124 attachment: true,
125 toolcall: true,
126 input: {
127 text: true,
128 audio: false,
129 image: false,
130 video: false,
131 pdf: false,
132 },
133 output: {
134 text: true,
135 audio: false,
136 image: false,
137 video: false,
138 pdf: false,
139 },
140 interleaved: false,
141 },
142 cost: {
143 input: 0,
144 output: 0,
145 cache: {
146 read: 0,
147 write: 0,
148 },
149 },
150 limit: {
151 context: 128000,
152 output: 8192,
153 },
154 status: "active",
155 options: {},
156 headers: {},
157 release_date: "2026-01-01",
158 },
159 },
160})
161
162function runningToolMessage(id: string): SessionMessages[number] {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected