clean mcp schema for gemini models, update http mcp example to use gemini

This commit is contained in:
Yousif Astarabadi
2025-06-26 13:14:45 -07:00
parent 19354c6f2d
commit 9d5f5844b8
2 changed files with 11 additions and 2 deletions

View File

@@ -16,6 +16,7 @@ from pipecat.pipeline.pipeline import Pipeline
from pipecat.pipeline.runner import PipelineRunner
from pipecat.pipeline.task import PipelineParams, PipelineTask
from pipecat.processors.aggregators.openai_llm_context import OpenAILLMContext
from pipecat.services.google.llm import GoogleLLMService
from pipecat.services.cartesia.tts import CartesiaTTSService
from pipecat.services.deepgram.stt import DeepgramSTTService
from pipecat.services.mcp_service import MCPClient
@@ -58,7 +59,9 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
voice_id="71a7ad14-091c-4e8e-a314-022ece01c121", # British Reading Lady
)
llm = OpenAILLMService(api_key=os.getenv("OPENAI_API_KEY"), model="gpt-4o-mini")
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