Immutable solution version
Langchain + Azure OpenAI proxy getting resource not found error
Complete solution
Context
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.
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. The maintainer added this to the docs in PR #971.
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 1 · 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>