refactor(core): move models.dev into core (#27347)
This commit is contained in:
parent
9818c9e8d0
commit
16c457e712
68 changed files with 345 additions and 153 deletions
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 }
|
||||
},
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue