location should not be optional when using Google Vertex.

Also, update `GoogleVertexLLMService` initialization pattern in the example file.
This commit is contained in:
Paul Kompfner
2025-10-10 12:56:37 -04:00
parent 91b29de7ca
commit 1c25b6fb72
3 changed files with 7 additions and 4 deletions

View File

@@ -76,9 +76,8 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments):
llm = GoogleVertexLLMService(
credentials=os.getenv("GOOGLE_VERTEX_TEST_CREDENTIALS"),
params=GoogleVertexLLMService.InputParams(
project_id=os.getenv("GOOGLE_CLOUD_PROJECT_ID"),
),
project_id=os.getenv("GOOGLE_CLOUD_PROJECT_ID"),
location=os.getenv("GOOGLE_CLOUD_LOCATION"),
)
# You can aslo register a function_name of None to get all functions
# sent to the same callback with an additional function_name parameter.