mirror of
https://github.com/anomalyco/opencode.git
synced 2026-06-01 19:05:38 +00:00
refactor(core): move models.dev into core (#27347)
This commit is contained in:
9
packages/core/test/plugin/fixtures/provider-factory.ts
Normal file
9
packages/core/test/plugin/fixtures/provider-factory.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export function createFixtureProvider(options: Record<string, unknown>) {
|
||||
const captured = Object.fromEntries(Object.entries(options))
|
||||
return Object.assign((modelID: string) => ({ modelID, options: captured }), {
|
||||
options: captured,
|
||||
languageModel(modelID: string) {
|
||||
return { modelID, options: captured }
|
||||
},
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user