-
Notifications
You must be signed in to change notification settings - Fork 590
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
update LangChainOpenAIHandler for langchain version 0.2 and read openai_api_base #950
Conversation
2. read openai_api_base from settings for llms that compatible with openai
PR Review 🔍
|
PR Code Suggestions ✨
|
/help |
PR Agent Walkthrough 🤖Welcome to the PR Agent, an AI-powered tool for automated pull request analysis, feedback, suggestions and more. Here is a list of tools you can use to interact with the PR Agent:
(1) Note that each tool be triggered automatically when a new PR is opened, or called manually by commenting on a PR. (2) Tools marked with [*] require additional parameters to be passed. For example, to invoke the |
User description
PR Type
Enhancement, Bug fix
Description
LangChainOpenAIHandler
to supportlangchain
version 0.2 by changing import paths.openai_api_base
from settings for LLMs compatible with OpenAI.chat
method to handle input messages, model, and temperature parameters.TryAgain
exception from the retry decorator to streamline error handling.Changes walkthrough 📝
langchain_ai_handler.py
Update LangChainOpenAIHandler for langchain v0.2 and custom API base
pr_agent/algo/ai_handlers/langchain_ai_handler.py
langchain
version 0.2.openai_api_base
from settings.chat
method to handle messages, model, and temperatureparameters.
TryAgain
exception from retry decorator.