Helicone Community Page

Updated 11 months ago

Azure Proxy Integration with Langchain JS

Hey guys, for some reason I continously get this error for azure proxy integration with langchain js, anyone have any idea what im missing?

error: {"attemptNumber":1,"code":"404","error":{"code":"404","message":"Resource not found"}, ...

Plain Text
const model = new ChatOpenAI({
  azureOpenAIApiKey: "[AZURE_OPENAI_API_KEY]",
  azureOpenAIApiDeploymentName: "openai/deployments/gpt-35-turbo",
  azureOpenAIApiVersion: "2023-03-15-preview",
  azureOpenAIBasePath: "https://oai.hconeai.com",
  configuration: {
    organization: "[organization_name]",
    baseOptions: {
      headers: {
        "Helicone-Auth": `Bearer ${heliconeApiKey}`,
        "Helicone-OpenAI-Api-Base":
          "https://[YOUR_AZURE_DOMAIN].openai.azure.com",
      },
    },
  },
});


I have organization name, heliconeApiKey and AzureDomain in there, anything else im mising?
J
C
O
5 comments
I just tested this with our Azure deployment with the latest LangChain
and it seems to work fine
Your configuration looks correct from a quick look. This 404 is due to it unable to find the Azure resource. Likely the url being built is not correct. Could you DM me more information about the configuration so I can test? Thanks.
thanks for checking justin
i just sent you a dm @Cole
Add a reply
Sign up and join the conversation on Discord