Hi! I was able to get it to work with the original configuration
Can you try?
new ChatOpenAI({
temperature: 0.2,
...config.azureOpenAI,
...options,
azureOpenAIBasePath: "https://oai.hconeai.com",
configuration: {
defaultHeaders: {
"Helicone-OpenAI-Api-Base": "https://[YOUR INSTANCE].openai.azure.com",
"Helicone-Auth": `Bearer ${config.helicone.key}`,
...(llmArgs.userId
? {
"Helicone-User-ID": llmArgs.userId
}
: {}),
"Helicone-Property-Environment": process.env.NODE_ENV || "development",
...headers
}
}
})
You might need to remove
azureOpenAIApiInstanceName
from your
azureOpenAI
object