mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-14 14:17:08 +00:00
Show the model an account only where it tells tools apart
Actions that different services share are described with the service alone; the account is named only when one service is connected twice.
This commit is contained in:
1 parent
e0e83b5492
commit
bdc453eaab
2 files changed
+8
-8
No files matched your search
@@ -315,7 +315,7 @@ class TestAccountsTellApartForTheModel:
|
||||
with _service_db(pg_conn):
|
||||
functions = {f["function"]["name"]: f["function"] for f in _executor().prepare_tools_for_llm(tools)}
|
||||
assert set(functions) == {"search_wiki", "search_tracker"}
|
||||
assert functions["search_wiki"]["description"].startswith("Search (Wiki account:")
|
||||
assert functions["search_wiki"]["description"] == "Search (Wiki)"
|
||||
|
||||
def test_names_stay_within_provider_limits(self, pg_conn):
|
||||
tools = self._two_bots(pg_conn, ["x" * 80, "x" * 80])
|
||||
|
||||
Reference in new issue
Block a user