export const getAzureOpenAIApi = () => {
const openai = new OpenAI({
apiKey: "API_KEY",
baseURL:
https://oai.hconeai.com/openai/deployments/{DEPLOYMENT}/chat/completions?api-version=2023-08-01-preview
,
defaultHeaders: {
"Helicone-Auth":
Bearer KEY
,
"Helicone-OpenAI-API-Base": "
https://{myazure}.openai.azure.com",
"Helicone-OpenAI-Cache": "true",
"api-key": "api_key",
},
defaultQuery: { "api-version": "2023-05-15" },
});