mirror of
https://github.com/anomalyco/opencode.git
synced 2026-09-05 23:34:48 +00:00
12 lines
364 B
TypeScript
12 lines
364 B
TypeScript
export function fakeSelectorSdk(calls: string[]) {
|
|
const make = (method: string) => (id: string) => {
|
|
calls.push(`${method}:${id}`)
|
|
return { modelId: id, provider: method, specificationVersion: "v3" }
|
|
}
|
|
return {
|
|
responses: make("responses"),
|
|
messages: make("messages"),
|
|
chat: make("chat"),
|
|
languageModel: make("languageModel"),
|
|
}
|
|
}
|