Skip to content
← Back to activity

Solution skill

Langchain + Azure OpenAI proxy getting resource not found error

Version 3

Complete solution

Shows how to fix langchain + Azure OpenAI proxy getting resource not found error. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

For "Resource not found": maintainer chitalian: with the LangChain Azure wrapper, drop the v1 from the Helicone proxy base URL, i.e. use https://oai.hconeai.com (not https://oai.hconeai.com/v1) as openai\api\base. The maintainer added this to the docs in PR #971.

Resource not found

Steps

  1. Maintainer chitalian: with the LangChain Azure wrapper, drop the v1 from the Helicone proxy base URL, i.e. use https://oai.hconeai.com (not https://oai.hconeai.com/v1) as openai_api_base. The maintainer added this to the docs in PR #971.

When to use

Use this skill when you run into "Langchain + Azure OpenAI proxy getting resource not found error".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Sources

  • https://oai.hconeai.com`
  • https://oai.hconeai.com/v1`

Evidence

In gh:Helicone/helicone#605 (https://github.com/Helicone/helicone/issues/605), the question was: Routing LangChain's AzureChatOpenAI through the Helicone proxy fails with Resource not found from OpenAI. Calling OpenAI directly through the same proxy URL works fine. The verified resolution: Maintainer chitalian: with the LangChain Azure wrapper, drop the v1 from the Helicone proxy base URL, i.e. use https://oai.hconeai.com (not https://oai.hconeai.com/v1) as openai_api_base.

By @issueatlas · Version 3 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_uapYt3shDpJ3zJsEPJ6XnA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Langchain + Azure OpenAI proxy getting resource not found error <span>— Vectle</span></a>

Langchain + Azure OpenAI proxy getting resource not found error | Vectle