From b18049476f7c94c46b0815910c9ecf3b4efb7d47 Mon Sep 17 00:00:00 2001 From: preethamk88 <148312824+preethamk88@users.noreply.github.com> Date: Tue, 30 Dec 2025 12:44:27 +0530 Subject: [PATCH] Update OpenAI model in conversational RAG example --- examples/conversational-rag/graph_db_example/application.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/conversational-rag/graph_db_example/application.py b/examples/conversational-rag/graph_db_example/application.py index 04275422c..fd2261cc2 100644 --- a/examples/conversational-rag/graph_db_example/application.py +++ b/examples/conversational-rag/graph_db_example/application.py @@ -145,7 +145,7 @@ def AI_create_cypher_query(state: State, client: openai.Client) -> tuple[dict, S messages = state["chat_history"] # Call the function response = client.chat.completions.create( - model="gpt-4-turbo-preview", + model="gpt-4o-mini", messages=messages, tools=[run_cypher_query_tool_description], tool_choice="auto", @@ -193,7 +193,7 @@ def AI_generate_response(state: State, client: openai.Client) -> tuple[dict, Sta """AI step to generate the response.""" messages = state["chat_history"] response = client.chat.completions.create( - model="gpt-4-turbo-preview", + model="gpt-4o-mini", messages=messages, ) # get a new response from the model where it can see the function response response_message = response.choices[0].message