feat: add azure openai provider (#960)

This commit is contained in:
Alice Hau
2025-01-31 09:30:36 -05:00
committed by GitHub
parent 092d8711a9
commit 5f6c85d7bd
10 changed files with 274 additions and 93 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ const addAgent = async (provider: string, model: string) => {
export const initializeSystem = async (provider: string, model: string) => {
try {
console.log('initializing agent with provider', provider, 'model', model);
await addAgent(provider.toLowerCase(), model);
await addAgent(provider.toLowerCase().replace(/ /g, '_'), model);
loadAndAddStoredExtensions().catch((error) => {
console.error('Failed to load and add stored extension configs:', error);