diff --git a/packages/googlecloud/functions/getanswer/inquirer.py b/packages/googlecloud/functions/getanswer/inquirer.py index e6372077..06507400 100644 --- a/packages/googlecloud/functions/getanswer/inquirer.py +++ b/packages/googlecloud/functions/getanswer/inquirer.py @@ -137,7 +137,7 @@ def transform_query_for_date(query): def get_indepth_response_from_query(df, db, query, k): logger.info("Performing in-depth summary query...") - llm = ChatOpenAI(model_name="gpt-4-1106-preview") + llm = ChatOpenAI(model_name="gpt-4") template_date_detection = """ Analyze the following query: "{query}". diff --git a/packages/googlecloud/functions/getanswer/requirements.txt b/packages/googlecloud/functions/getanswer/requirements.txt index a7e27b65..83e78d1c 100644 --- a/packages/googlecloud/functions/getanswer/requirements.txt +++ b/packages/googlecloud/functions/getanswer/requirements.txt @@ -3,7 +3,7 @@ functions-framework flask google-cloud-error-reporting python-dotenv -langchain +langchain==0.0.330 openai==0.28.1 google-api-python-client # Google API google-search-results # SerpAPI