Move ai folder to lib/ (#542)

This commit is contained in:
Jared Palmer 2024-11-15 12:33:12 -05:00 committed by GitHub
parent 914238be80
commit b8643353c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 8 additions and 8 deletions

View file

@ -1,11 +0,0 @@
import { openai } from '@ai-sdk/openai';
import { experimental_wrapLanguageModel as wrapLanguageModel } from 'ai';
import { customMiddleware } from './custom-middleware';
export const customModel = (apiIdentifier: string) => {
return wrapLanguageModel({
model: openai(apiIdentifier),
middleware: customMiddleware,
});
};