-
Notifications
You must be signed in to change notification settings - Fork 545
Upgrade langchain #450
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade langchain #450
Conversation
Coverage Report •
|
infra/main.bicep
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes here are just order
|
||
|
||
class Testing_LangChainAgent(LangChainAgent): | ||
def __init__(self) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice way of overriding values when you can't provide them via the constructor! Do we need to call super().__init__()
here though? I can see we're doing it in a few places, including the LangChainAgent
,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I call super.__init then I will also create a whole set of connected server objects which makes it hard to test. The idea was to not initialise the base class and just to test these two methods.
Co-authored-by: Chinedum Echeta <60179183+cecheta@users.noreply.github.com>
* Upgrade langchain * Had to upgradeOpenAi * Add a few langchain agent tests * Upgrade langchain_openai * Ordered config alphabetically * Missing lock file * Removing AZURE_OPENAI_KEY * Fix LLM Helper * we dont have that env set anymore - so we dont need to delete * remove comment * Update .gitignore Co-authored-by: Chinedum Echeta <60179183+cecheta@users.noreply.github.com> --------- Co-authored-by: Chinedum Echeta <60179183+cecheta@users.noreply.github.com>
* Upgrade langchain * Had to upgradeOpenAi * Add a few langchain agent tests * Upgrade langchain_openai * Ordered config alphabetically * Missing lock file * Removing AZURE_OPENAI_KEY * Fix LLM Helper * we dont have that env set anymore - so we dont need to delete * remove comment * Update .gitignore Co-authored-by: Chinedum Echeta <60179183+cecheta@users.noreply.github.com> --------- Co-authored-by: Chinedum Echeta <60179183+cecheta@users.noreply.github.com>
Purpose
Both
langchain
andlangchain-community
needed upgrading.langchain-community
needs to uselangchain-openai
and then this causes us to upgrade the version ofopenai
.The new versions of these packages no longer use the environment variable OPENAI_API_BASE, but rather insist on using AZURE_OPENAI_ENDPOINT
I have re-ordered the environment variables in the bicep files so that they are a bit easier to see and find.
Relates to #417
Does this introduce a breaking change?
Pull Request Type
What kind of change does this Pull Request introduce?