mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-26 17:26:22 +02:00
feat: search时不必设置IndexRepo的min/max_token_count
This commit is contained in:
parent
ad80dab678
commit
95bf4c3e22
3 changed files with 39 additions and 14 deletions
|
|
@ -692,9 +692,7 @@ async def test_index_repo():
|
|||
chat_files, uploads_files, other_files = await mock_index_repo()
|
||||
|
||||
editor = Editor()
|
||||
rsp = await editor.search_index_repo(
|
||||
query="业务线", files_or_paths=chat_files + uploads_files + other_files, min_token_count=0
|
||||
)
|
||||
rsp = await editor.search_index_repo(query="业务线", files_or_paths=chat_files + uploads_files + other_files)
|
||||
assert rsp
|
||||
|
||||
shutil.rmtree(CHATS_ROOT)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue