Skip to content

Commit ea262e6

Browse files
committed
fix: UI issue caused by refactor
1 parent 22fb66f commit ea262e6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sample_ui/streaming_ui.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
from openchatbi import config
1818
from openchatbi.agent_graph import build_agent_graph_async
19-
from openchatbi.llm.llm import default_llm
19+
from openchatbi.llm.llm import get_default_llm
2020
from openchatbi.tool.memory import cleanup_async_memory_store, get_async_memory_tools, setup_async_memory_store
2121
from openchatbi.utils import get_text_from_message_chunk, log, get_report_download_response
2222
from sample_ui.style import custom_css
@@ -48,7 +48,7 @@ async def initialize(self):
4848
from openchatbi.tool.memory import get_async_memory_store
4949

5050
async_store = await get_async_memory_store()
51-
async_memory_tools = await get_async_memory_tools(default_llm)
51+
async_memory_tools = await get_async_memory_tools(get_default_llm())
5252

5353
# Build graph with async memory tools
5454
self.graph = await build_agent_graph_async(

sample_ui/streamlit_ui.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
from openchatbi import config
2121
from openchatbi.agent_graph import build_agent_graph_async
22-
from openchatbi.llm.llm import default_llm
22+
from openchatbi.llm.llm import get_default_llm
2323
from openchatbi.tool.memory import cleanup_async_memory_store, get_async_memory_tools, setup_async_memory_store
2424
from openchatbi.utils import get_text_from_message_chunk, log
2525
from sample_ui.plotly_utils import visualization_dsl_to_gradio_plot
@@ -54,7 +54,7 @@ async def initialize(self):
5454
from openchatbi.tool.memory import get_async_memory_store
5555

5656
async_store = await get_async_memory_store()
57-
async_memory_tools = await get_async_memory_tools(default_llm)
57+
async_memory_tools = await get_async_memory_tools(get_default_llm())
5858

5959
# Build the graph
6060
self.graph = await build_agent_graph_async(

0 commit comments

Comments
 (0)