रीज़निंग मोड
GetVibe API के लिए reasoning levels: Chat Completions में reasoning_effort, Responses API में reasoning.effort, और /v1/messages पर Claude के लिए native thinking। मान none, minimal, low, medium, high, xhigh और max model पर निर्भर करते हैं और उसके model card के विरुद्ध जाँचे जाने चाहिए; GPT-5.6 Luna, Terra और Sol minimal से max तक सभी छह levels प्रकाशित करते हैं।
Reasoning कठिन कार्यों पर quality सुधार सकती है लेकिन आम तौर पर latency और output-token खर्च बढ़ाती है। Parameter का format endpoint पर और उपलब्ध levels विशिष्ट model पर निर्भर करते हैं।
पैरामीटर प्रारूप
| Parameter | Type | विवरण |
|---|---|---|
reasoning_effort | string | /v1/chat/completions के लिए top-level field। |
reasoning.effort | string | /v1/responses के लिए nested field — canonical Responses API format। |
none, minimal, low, medium, high, xhigh और max को पहचानता है। GPT-5.6 Luna, Terra और Sol minimal से max तक सभी छह levels publish करते हैं; अन्य models एक छोटा set publish कर सकते हैं। सही spelling medium है, middle नहीं।levels कैसे लागू होते हैं
| Parameter | Type | विवरण |
|---|---|---|
GPT-5 / o3 / o4 | native | Level चुने गए endpoint format में model को pass किया जाता है। |
GLM / Qwen | binary | none, minimal, low से thinking disable होती है; medium और उससे ऊपर यह enable होती है। |
Gemini | binary | कम स्तर thinkingBudget=0 देते हैं, medium और उससे ऊपर स्वचालित budget। |
DeepSeek / Kimi | native | Reasoning model में अंतर्निहित है और इस parameter से toggle नहीं होती। |
Claude | /v1/messages | Updated reasoning parameters: adaptive thinking and output_config.effort; legacy models support budget_tokens (hi). |
चैट पूर्णताएँ (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 (OpenAI SDK)
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: मूल चिंतन
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 (hi):
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. (hi)