Merge pull request #23 from Swiftyos/add-gpt-4-turbo

feat(providers): add gpt-4-turbo provider
This commit is contained in:
ItzCrazyKns 2024-04-29 15:27:33 +05:30 committed by GitHub
commit ab6cda690f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -22,6 +22,11 @@ export const getAvailableProviders = async () => {
modelName: 'gpt-4', modelName: 'gpt-4',
temperature: 0.7, temperature: 0.7,
}), }),
'gpt-4-turbo': new ChatOpenAI({
openAIApiKey,
modelName: 'gpt-4-turbo',
temperature: 0.7,
}),
embeddings: new OpenAIEmbeddings({ embeddings: new OpenAIEmbeddings({
openAIApiKey, openAIApiKey,
modelName: 'text-embedding-3-large', modelName: 'text-embedding-3-large',