From 700844e5e9884a36ecf1e7e417bb86e118084a23 Mon Sep 17 00:00:00 2001 From: Mohammadmoein Moradi <69377534+M-Moein-M@users.noreply.github.com> Date: Mon, 17 Nov 2025 14:35:56 +0100 Subject: [PATCH 1/2] Fix comma in vllm sample code The provided example code runs into SyntaxError. This change fixes the missing comma in the code. --- articles/gpt-oss/run-vllm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/articles/gpt-oss/run-vllm.md b/articles/gpt-oss/run-vllm.md index e534ae5302..3a1318e0f3 100644 --- a/articles/gpt-oss/run-vllm.md +++ b/articles/gpt-oss/run-vllm.md @@ -146,7 +146,7 @@ async def main(model: str, api_key: str): base_url="http://localhost:8000/v1", api_key="EMPTY", ), - ) + ), tools=[get_weather], ) From 178f960a2b75ddd46a5f88dda08f59b6f5e5a96f Mon Sep 17 00:00:00 2001 From: Mohammadmoein Moradi <69377534+M-Moein-M@users.noreply.github.com> Date: Mon, 17 Nov 2025 14:42:36 +0100 Subject: [PATCH 2/2] Remove parameters from main function to fix arguments error Resolves missing arguments error in sample example TypeError: main() missing 2 required positional arguments: 'model' and 'api_key' --- articles/gpt-oss/run-vllm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/articles/gpt-oss/run-vllm.md b/articles/gpt-oss/run-vllm.md index 3a1318e0f3..d7614465fc 100644 --- a/articles/gpt-oss/run-vllm.md +++ b/articles/gpt-oss/run-vllm.md @@ -136,7 +136,7 @@ def get_weather(city: str): return f"The weather in {city} is sunny." -async def main(model: str, api_key: str): +async def main(): agent = Agent( name="Assistant", instructions="You only respond in haikus.",