From 92df8dc43cca1dc51327bbff154c295b9fc44fd2 Mon Sep 17 00:00:00 2001 From: Yousif Astarabadi <6870090+yousifa@users.noreply.github.com> Date: Thu, 26 Jun 2025 13:15:58 -0700 Subject: [PATCH] fix formatting --- examples/foundational/39c-mcp-run-http.py | 4 +--- src/pipecat/services/mcp_service.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/foundational/39c-mcp-run-http.py b/examples/foundational/39c-mcp-run-http.py index df17869bb..e39349f37 100644 --- a/examples/foundational/39c-mcp-run-http.py +++ b/examples/foundational/39c-mcp-run-http.py @@ -59,9 +59,7 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si voice_id="71a7ad14-091c-4e8e-a314-022ece01c121", # British Reading Lady ) - llm = GoogleLLMService( - api_key=os.getenv("GOOGLE_API_KEY"), model="gemini-2.0-flash" - ) + llm = GoogleLLMService(api_key=os.getenv("GOOGLE_API_KEY"), model="gemini-2.0-flash") try: # Github MCP docs: https://github.com/github/github-mcp-server diff --git a/src/pipecat/services/mcp_service.py b/src/pipecat/services/mcp_service.py index 13d58ed0c..c51a9bd9c 100644 --- a/src/pipecat/services/mcp_service.py +++ b/src/pipecat/services/mcp_service.py @@ -98,7 +98,7 @@ class MCPClient(BaseObject): properties = tool_schema["input_schema"].get("properties", {}) required = tool_schema["input_schema"].get("required", []) - + # Only clean properties for Google/Gemini LLM services if llm and self._is_google_llm(llm): logger.debug(f"Detected Google LLM service, cleaning schema for Gemini compatibility")