Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -82,7 +82,7 @@ def search_game_online(game_name: str) -> str:
|
|
| 82 |
"""Search online information about a board game if not found in the local list."""
|
| 83 |
prompt = f"Can you give me a short description of the board game '{game_name}'?"
|
| 84 |
response = client.models.generate_content(
|
| 85 |
-
model='gemini-2.
|
| 86 |
contents=prompt,
|
| 87 |
config=types.GenerateContentConfig(
|
| 88 |
tools=[types.Tool(google_search=types.GoogleSearch())],
|
|
@@ -93,7 +93,7 @@ def search_game_online(game_name: str) -> str:
|
|
| 93 |
# Initialize LLM and tools
|
| 94 |
@st.cache_resource
|
| 95 |
def initialize_graph():
|
| 96 |
-
llm = ChatGoogleGenerativeAI(model="gemini-
|
| 97 |
tools = [get_list_game, search_game_online]
|
| 98 |
tool_node = ToolNode(tools)
|
| 99 |
llm_with_tools = llm.bind_tools(tools)
|
|
|
|
| 82 |
"""Search online information about a board game if not found in the local list."""
|
| 83 |
prompt = f"Can you give me a short description of the board game '{game_name}'?"
|
| 84 |
response = client.models.generate_content(
|
| 85 |
+
model='gemini-2.5-flash',
|
| 86 |
contents=prompt,
|
| 87 |
config=types.GenerateContentConfig(
|
| 88 |
tools=[types.Tool(google_search=types.GoogleSearch())],
|
|
|
|
| 93 |
# Initialize LLM and tools
|
| 94 |
@st.cache_resource
|
| 95 |
def initialize_graph():
|
| 96 |
+
llm = ChatGoogleGenerativeAI(model="gemini-2.5-flash")
|
| 97 |
tools = [get_list_game, search_game_online]
|
| 98 |
tool_node = ToolNode(tools)
|
| 99 |
llm_with_tools = llm.bind_tools(tools)
|