We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75f0b81 commit a2ad7e4Copy full SHA for a2ad7e4
mcp_utils.py
@@ -21,10 +21,9 @@
21
DEFAULT_MCP_CLIENT_SESSION_TIMEOUT = 120
22
23
# The openai API complains if the name of a tool is longer than 64
24
-# chars. But we're encouraging people to use long descriptive
25
-# filekeys to avoid accidental collisions, so it's very easy to go
26
-# over the limit. So this function converts a name to a 12 character
27
-# hash.
+# chars. But it's easy to go over the limit if the yaml file is in a
+# nested sub-directory, so this function converts a name to a 12
+# character hash.
28
def compress_name(name):
29
m = hashlib.sha256()
30
m.update(name.encode('utf-8'))
0 commit comments