Modo de raciocínio
Níveis de raciocínio do GetVibe API: reasoning_effort em Chat Completions, reasoning.effort na Responses API e thinking nativo para Claude em /v1/messages. Os valores none, minimal, low, medium, high, xhigh e max dependem do modelo e devem ser verificados no respectivo cartão do modelo; GPT-5.6 Luna, Terra e Sol publicam os seis níveis, de minimal a max.
O raciocínio pode melhorar a qualidade em tarefas difíceis, mas geralmente aumenta a latência e o consumo de tokens de saída. O formato do parâmetro depende do endpoint, e os níveis disponíveis dependem do modelo específico.
Formato do parâmetro
| Parâmetro | Tipo | Descrição |
|---|---|---|
reasoning_effort | string | Campo de nível superior para /v1/chat/completions. |
reasoning.effort | string | Campo aninhado para /v1/responses — o formato canônico da Responses API. |
none, minimal, low, medium, high, xhigh e max. GPT-5.6 Luna, Terra e Sol publicam os seis níveis, de minimal a max; outros modelos podem publicar um conjunto menor. A grafia correta é medium, não middle.Como os níveis são aplicados
| Parâmetro | Tipo | Descrição |
|---|---|---|
GPT-5 / o3 / o4 | native | O nível é enviado ao modelo no formato do endpoint escolhido. |
GLM / Qwen | binary | none, minimal, low desativam o raciocínio; medium e acima o ativam. |
Gemini | binary | Níveis mais baixos definem thinkingBudget=0; níveis médios ou superiores usam um orçamento automático. |
DeepSeek / Kimi | native | O raciocínio é integrado ao modelo e não é ativado nem desativado por este parâmetro. |
Claude | /v1/messages | Updated reasoning parameters: adaptive thinking and output_config.effort; legacy models support budget_tokens (pt). |
Chat Completions (curl)
curl https://getvibeapi.com/v1/chat/completions \
-H "Authorization: Bearer $GETVIBE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-6.1-sol",
"reasoning_effort": "high",
"messages": [{"role": "user", "content": "Solve step by step: 17 * 23"}]
}'Chat Completions (SDK da OpenAI)
from openai import OpenAI
client = OpenAI(base_url="https://getvibeapi.com/v1", api_key=os.environ["GETVIBE_API_KEY"])
r = client.chat.completions.create(model="gpt-6.1-sol", reasoning_effort="high",
messages=[{"role":"user","content":"Hello!"}])
print(r.choices[0].message.content)Responses API (curl)
curl https://getvibeapi.com/v1/responses \
-H "Authorization: Bearer $GETVIBE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-6.1-sol",
"reasoning": {"effort": "high"},
"input": "Solve step by step: 17 * 23"
}'Claude: thinking nativo
New Claude models use thinking.type=adaptive and thinking.display=summarized for readable reasoning, with output_config.effort for its level. Older models use thinking.type=enabled with budget_tokens. Example (pt):
from anthropic import Anthropic
client = Anthropic(base_url="https://getvibeapi.com", api_key=os.environ["GETVIBE_API_KEY"])
r = client.messages.create(model="claude-sonnet-5.5", max_tokens=2048,
thinking={"type":"adaptive","display":"summarized"},
output_config={"effort":"medium"},
messages=[{"role":"user","content":"Hello!"}])
print(r.content)thinking with /v1/messages or Chat Completions with reasoning_effort; the gateway requests a visible reasoning summary. Tools: Tool connections. (pt)