Views
No views yet
--reasoning-parser flag is required. The reasoning depth is controllable per request through reasoning_effort ("low", "medium", "high").openai tool-call parser1# Launch the server, listening on port 8000 by default
2furiosa-llm serve furiosa-ai/gpt-oss-20b--reasoning-parser flag is needed. The reasoning content is returned in a
separate field (see Basic Usage below).openai tool-call parser:1furiosa-llm serve furiosa-ai/gpt-oss-20b \
2 --enable-auto-tool-choice \
3 --tool-call-parser openai1INFO: Started server process [27507]
2INFO: Waiting for application startup.
3INFO: Application startup complete.
4INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)curl:1curl http://localhost:8000/v1/chat/completions \
2 -H "Content-Type: application/json" \
3 -d '{
4 "model": "furiosa-ai/gpt-oss-20b",
5 "messages": [{"role": "user", "content": "What is the capital of France?"}]
6 }' \
7 | python -m json.toolresponse.choices[].message.reasoning (non-streaming)response.choices[].delta.reasoning (streaming)1from openai import OpenAI
2
3client = OpenAI(base_url="http://localhost:8000/v1", api_key="EMPTY")
4
5response = client.chat.completions.create(
6 model="furiosa-ai/gpt-oss-20b",
7 messages=[{"role": "user", "content": "How many r's are in 'strawberry'?"}],
8)
9
10print("Reasoning:", response.choices[0].message.reasoning)
11print("Answer:", response.choices[0].message.content)Note: Thereasoningfield is not part of the OpenAI API specification but is a widely followed convention OpenAI recommends (also used by the OpenAI Agents SDK, vLLM, and others). It appears only in responses that contain reasoning content; accessing it otherwise raises anAttributeError.
reasoning_effort parameter ("low", "medium", or "high"):1# Request high reasoning effort
2response = client.chat.completions.create(
3 model="furiosa-ai/gpt-oss-20b",
4 messages=[{"role": "user", "content": "How many r's are in 'strawberry'?"}],
5 extra_body={"reasoning_effort": "high"},
6)
7print(response.choices[0].message.content)--enable-auto-tool-choice --tool-call-parser openai (see
Launch the server), pass tools in the request and let the
model decide when to call them. See the
Tool Calling guide
for a complete client example and details on tool-choice options.furiosa-llm serve) — full OpenAI-compatible API reference and serving options