Merge pull request #2363 from pipecat-ai/mb/update-14p

Update 14p, add 14p to evals, add Google creds to env.example
This commit is contained in:
Mark Backman
2025-08-05 14:00:13 -07:00
committed by GitHub
4 changed files with 10 additions and 4 deletions

View File

@@ -45,6 +45,12 @@ FIREWORKS_API_KEY=...
# Gladia
GLADIA_API_KEY=...
# Google
GOOGLE_API_KEY=...
GOOGLE_CLOUD_PROJECT_ID=...
GOOGLE_TEST_CREDENTIALS=...
GOOGLE_VERTEX_TEST_CREDENTIALS=...
# LMNT
LMNT_API_KEY=...
LMNT_VOICE_ID=...

View File

@@ -67,7 +67,7 @@ async def run_bot(transport: BaseTransport):
voice_id=os.getenv("ELEVENLABS_VOICE_ID", ""),
)
llm = GoogleLLMOpenAIBetaService(api_key=os.getenv("GEMINI_API_KEY"))
llm = GoogleLLMOpenAIBetaService(api_key=os.getenv("GOOGLE_API_KEY"))
# You can aslo register a function_name of None to get all functions
# sent to the same callback with an additional function_name parameter.
llm.register_function("get_current_weather", fetch_weather_from_api)

View File

@@ -68,9 +68,9 @@ async def run_bot(transport: BaseTransport):
)
llm = GoogleVertexLLMService(
credentials=os.getenv("GOOGLE_TEST_CREDENTIALS"),
credentials=os.getenv("GOOGLE_VERTEX_TEST_CREDENTIALS"),
params=GoogleVertexLLMService.InputParams(
project_id="<google-project-id>",
project_id=os.getenv("GOOGLE_CLOUD_PROJECT_ID"),
),
)
# You can aslo register a function_name of None to get all functions

View File

@@ -85,6 +85,7 @@ TESTS_14 = [
("14i-function-calling-fireworks.py", PROMPT_WEATHER, EVAL_WEATHER),
("14j-function-calling-nim.py", PROMPT_WEATHER, EVAL_WEATHER),
("14n-function-calling-perplexity.py", PROMPT_WEATHER, EVAL_WEATHER),
("14p-function-calling-gemini-vertex-ai.py", PROMPT_WEATHER, EVAL_WEATHER),
("14q-function-calling-qwen.py", PROMPT_WEATHER, EVAL_WEATHER),
("14r-function-calling-aws.py", PROMPT_WEATHER, EVAL_WEATHER),
# Currently not working.
@@ -94,7 +95,6 @@ TESTS_14 = [
# ("14l-function-calling-deepseek.py", PROMPT_WEATHER, EVAL_WEATHER),
# ("14m-function-calling-openrouter.py", PROMPT_WEATHER, EVAL_WEATHER),
# ("14o-function-calling-gemini-openai-format.py", PROMPT_WEATHER, EVAL_WEATHER),
# ("14p-function-calling-gemini-vertex-ai.py", PROMPT_WEATHER, EVAL_WEATHER),
]
TESTS_19 = [