This pull request introduces the integration of Langchain for model invocation within the perf_review_ai package. It sets up necessary configurations and implements a model invoker function that utilizes Langchain's ChatOpenAI model for processing input text.
Summary
Added config.py to set environment variables for Langchain integration, including LANGCHAIN_TRACING_V2, LANGCHAIN_ENDPOINT, LANGCHAIN_API_KEY, and LANGCHAIN_PROJECT.
Created model_invoker.py which contains the invoke_model function. This function takes an input string, invokes the Langchain ChatOpenAI model, and returns the model's response.
Initialized the perf_review_ai package by importing the config module in __init__.py.
PR Feedback (click)
Description
This pull request introduces the integration of Langchain for model invocation within the
perf_review_ai
package. It sets up necessary configurations and implements a model invoker function that utilizes Langchain's ChatOpenAI model for processing input text.Summary
config.py
to set environment variables for Langchain integration, includingLANGCHAIN_TRACING_V2
,LANGCHAIN_ENDPOINT
,LANGCHAIN_API_KEY
, andLANGCHAIN_PROJECT
.model_invoker.py
which contains theinvoke_model
function. This function takes an input string, invokes the Langchain ChatOpenAI model, and returns the model's response.perf_review_ai
package by importing theconfig
module in__init__.py
.Affected files and directories:
myenv2/lib/python3.11/site-packages/perf_review_ai/__init__.py
myenv2/lib/python3.11/site-packages/perf_review_ai/config.py
myenv2/lib/python3.11/site-packages/perf_review_ai/model_invoker.py
Fixes #13.
š Latest improvements to Sweep:
š” To get Sweep to edit this pull request, you can:
This is an automated message generated by Sweep AI.