mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-23 20:21:03 +02:00
Fixing tests
This commit is contained in:
parent
c14116f7a3
commit
779de8c773
1 changed files with 8 additions and 10 deletions
|
|
@ -36,17 +36,15 @@ Args: {
|
|||
}"""
|
||||
|
||||
if streaming and chunk_callback:
|
||||
# Simulate streaming response with complete lines as chunks
|
||||
# This mimics how real LLMs stream - complete tokens/words
|
||||
# Simulate streaming response with token-level chunks
|
||||
# Real LLMs stream token by token, not line by line
|
||||
chunks = [
|
||||
"Thought: I need to search",
|
||||
" for information about",
|
||||
" machine learning.\n",
|
||||
"Action: knowledge_query\n",
|
||||
"Args: {\n",
|
||||
' "question": ',
|
||||
'"What is machine learning?"',
|
||||
'\n}'
|
||||
"Thought", ": ", "I", " need", " to", " search", " for",
|
||||
" information", " about", " machine", " learning", ".\n",
|
||||
"Action", ": ", "knowledge", "_query", "\n",
|
||||
"Args", ": ", "{", "\n",
|
||||
' "', "question", '": "', "What", " is", " machine",
|
||||
" learning", '?"', "\n", "}"
|
||||
]
|
||||
|
||||
for chunk in chunks:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue