add Azure OpenAI Responses provider with deployment-aware model mapping
This commit is contained in:
committed by
Mario Zechner
parent
951fb953ed
commit
856012296b
9
packages/ai/test/azure-utils.ts
Normal file
9
packages/ai/test/azure-utils.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* Utility functions for Azure OpenAI tests
|
||||
*/
|
||||
|
||||
export function hasAzureOpenAICredentials(): boolean {
|
||||
const hasKey = !!process.env.AZURE_OPENAI_API_KEY;
|
||||
const hasEndpoint = !!(process.env.AZURE_OPENAI_ENDPOINT || process.env.AZURE_OPENAI_RESOURCE_NAME);
|
||||
return hasKey && hasEndpoint;
|
||||
}
|
||||
Reference in New Issue
Block a user