Skip to content

Commit 1ccaa19

Browse files
committed
fix: use double quotes instead of single quotes in simple-chatbot example
1 parent 0fcd21b commit 1ccaa19

File tree

1 file changed

+2
-2
lines changed
  • examples/clients/simple-chatbot/mcp_simple_chatbot

1 file changed

+2
-2
lines changed

examples/clients/simple-chatbot/mcp_simple_chatbot/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,8 @@ def _clean_json_string(json_string: str) -> str:
295295
"""Remove ```json ... ``` or ``` ... ``` wrappers if the LLM response is fenced."""
296296
import re
297297

298-
pattern = r'^```(?:\s*json)?\s*(.*?)\s*```$'
299-
return re.sub(pattern, r'\1', json_string, flags=re.DOTALL | re.IGNORECASE).strip()
298+
pattern = r"^```(?:\s*json)?\s*(.*?)\s*```$"
299+
return re.sub(pattern, r"\1", json_string, flags=re.DOTALL | re.IGNORECASE).strip()
300300

301301
try:
302302
tool_call = json.loads(_clean_json_string(llm_response))

0 commit comments

Comments
 (0)