mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 20:21:09 +02:00
🐛 fix(mana-games): use openai package for Azure OpenAI client
Replace @azure/openai with openai package - AzureOpenAI class is exported from the official openai SDK, not @azure/openai v2.
This commit is contained in:
parent
86da45a0c8
commit
8cdb950cad
3 changed files with 343 additions and 219 deletions
|
|
@ -10,7 +10,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@anthropic-ai/sdk": "^0.65.0",
|
||||
"@azure/openai": "^2.0.0",
|
||||
"openai": "^4.76.0",
|
||||
"@google/genai": "^1.14.0",
|
||||
"@nestjs/common": "^10.4.15",
|
||||
"@nestjs/config": "^3.3.0",
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import { ConfigService } from '@nestjs/config';
|
|||
import { GenerateGameDto, GenerateGameResponseDto } from './dto/generate-game.dto';
|
||||
import { GoogleGenAI } from '@google/genai';
|
||||
import Anthropic from '@anthropic-ai/sdk';
|
||||
import { AzureOpenAI } from '@azure/openai';
|
||||
import { AzureOpenAI } from 'openai';
|
||||
|
||||
type AIProvider = 'google' | 'anthropic' | 'azure';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue