🐛 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:
Wuesteon 2025-12-03 02:20:09 +01:00
parent 86da45a0c8
commit 8cdb950cad
3 changed files with 343 additions and 219 deletions

View file

@ -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",

View file

@ -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';