<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Langchain on Brian Carroll</title><link>https://briancarroll.cool/tags/langchain/</link><description>Recent content in Langchain on Brian Carroll</description><generator>Hugo -- 0.147.6</generator><language>en-us</language><lastBuildDate>Fri, 08 Nov 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://briancarroll.cool/tags/langchain/index.xml" rel="self" type="application/rss+xml"/><item><title>Mysterious Langchain Azure OpenAI Problems</title><link>https://briancarroll.cool/blog/mysterious-langchain-azure-openai-problems/</link><pubDate>Fri, 08 Nov 2024 00:00:00 +0000</pubDate><guid>https://briancarroll.cool/blog/mysterious-langchain-azure-openai-problems/</guid><description>&lt;p>I was banging my head on this problem for hours. Using langchain and our Azure OpenAI model, I kept getting a Value error:&lt;/p>
&lt;pre tabindex="0">&lt;code>As of openai&amp;gt;=1.0.0, Azure endpoints should be specified via the
`azure_endpoint` param not `openai_api_base` (or alias `base_url`).
&lt;/code>&lt;/pre>&lt;p>I was not defining &lt;code>openai_api_base&lt;/code> anywhere in my code. LLMs were no use but I did find the suggestion on Reddit to check if &lt;code>openai_api_base&lt;/code> was an environment variable.&lt;/p>
&lt;p>Sure enough, I had defined that months ago, never used it, and forgot it. Deleted the variable and problem solved.&lt;/p></description></item></channel></rss>