debug-inference
यह क्या करती है
यह स्किल AI को पता लगाने में मदद करती है कि OpenShell provider से गुज़रते समय model call क्यों फ़ेल होती है। यह provider, उसके अनुमत endpoint और local model server कहाँ चल रहा है, यह जाँचती है। यह उन डेवलपरों के लिए है जो AI ऐप्स को hosted या local models से जोड़ते हैं।
कब इस्तेमाल करें
- ✓जब OpenShell के अंदर किसी ऐप की model calls फ़ेल हों और कारण पता न हो।
- ✓जब आप Ollama या vLLM जैसे local model को OpenShell sandbox से जोड़ना चाहते हों।
- ✓जब आप पुराने managed inference endpoint से provider के native endpoint पर जा रहे हों।
Skill का लिंक
https://github.com/NVIDIA/OpenShell/blob/main/skills/debug-inference/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरा ऐप OpenShell के अंदर से मेरे local Ollama model तक नहीं पहुँच पा रहा। पता कीजिए कि ऐसा क्यों है।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
AI gateway और sandbox जाँचता है, provider और उसकी profile देखता है, और परखता है कि endpoint पहुँच में है और अनुमत है या नहीं। फिर वह संभावित कारण समझाता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Debug Inference
Diagnose inference as ordinary provider-authorized network traffic. OpenShell no longer supplies a managed inference route, rewrites request shapes, or selects a model. The application calls the provider's native endpoint and owns its base URL, model, request format, and timeout.
Use installed openshell --help output as the authority for command syntax.
Refer to the published provider management guide
and provider profile guide
for current behavior.
Diagnostic Workflow
1. Confirm Gateway and Sandbox Context
openshell status
openshell gateway info
openshell sandbox get <sandbox>
For a host-local model server, host.openshell.internal identifies the machine
running the gateway. It does not identify the operator's laptop when the gateway
is remote. A server listening only on 127.0.0.1 may also be unreachable from a
container; bind it to an address reachable from the gateway runtime.
2. Inspect the Provider and Its Profile
openshell provider get <provider>
openshell profile export <profile-id> -o yaml
Check that the profile:
- Names the exact endpoint host, port, and protocol the client calls.
- Allows the client binary.
- Declares the credential key and intended authentication style.
- Uses narrow HTTP rules when the provider should expose only part of an API.
For a custom or self-hosted OpenAI-compatible endpoint, import an endpoint-bearing profile. A base URL stored only in provider configuration does not authorize a new endpoint.
openshell profile lint -f ./provider-profile.yaml
openshell profile import -f ./provider-profile.yaml
openshell provider create --name <provider> --type <profile-id>
Add the required --credential KEY or --credential KEY=VALUE arguments shown
by the profile. Never broaden endpoint policy merely to silence a credential
binding error.
3. Confirm Attachment
openshell sandbox provider list <sandbox>
openshell sandbox provider attach <sandbox> <provider> --wait --timeout 30
Save the change's receipt_id and use openshell sandbox provider status <sandbox> <provider> --receipt <receipt-id> --wait --timeout 30 to check when it takes effect. Success confirms that the sandbox applied the credentials, policy, and environment for new processes. If the result is pending, failed, withheld, or superseded, inspect its reason before launching the client.
Launch the client after the attachment wait succeeds so it receives the updated environment:
openshell sandbox exec <sandbox> -- <client-command>
After updating an ordinary static provider, wait for that change and launch a new client. An existing process keeps its revision-scoped reference; readiness does not make the old reference resolve the replacement value. Diagnose managed-refresh credentials according to their own lifecycle.
Keep credentials and issued references out of diagnostic output. Acknowledged detach revokes future credential resolution and removes the reference from future process environments. Requests already forwarded may still finish:
openshell sandbox provider detach <sandbox> <provider> --wait --timeout 30
4. Verify Native Client Configuration
The application must use the real upstream contract:
- Native provider base URL, not the retired managed virtual endpoint.
- Real model ID, not a placeholder that OpenShell used to rewrite.
- Native OpenAI, Anthropic, Vertex, or other provider request shape.
- Application-owned timeout and retry settings.
- The credential environment variable declared by the attached profile.
Probe the exact endpoint from a newly launched sandbox process. Start with a non-secret discovery endpoint when the provider offers one, then send a minimal inference request using the provider's documented API shape.
5. Interpret Common Failures
| Symptom | Likely cause | Fix |
|---|---|---|
credential_placeholder_in_request_body |
A body reference is invalid/revoked, or classification metadata is unavailable | Check the controlled denial reason; remove the reference from conversation history or restore provider access. Do not enable body credential rewriting or bypass flags to send tool output. Unknown literals and valid issued placeholders pass unchanged, including the model provider’s own placeholder. Header resolution |
अक्सर पूछे जाने वाले सवाल
क्या OpenShell model चुनता है या अनुरोध बदलता है?
नहीं। ऐप provider के native endpoint को कॉल करता है और अपना model, base URL और अनुरोध का format खुद सेट करता है।
क्या यह local model servers में मदद करती है?
हाँ। इसमें Ollama, vLLM और LM Studio जैसे सर्वर शामिल हैं जो gateway की मशीन पर चलते हैं।
अगर मेरा model server केवल localhost पर सुनता हो तो?
स्किल बताती है कि ऐसा सर्वर container से पहुँच में नहीं हो सकता, इसलिए उसे ऐसे पते पर सुनना चाहिए जहाँ gateway पहुँच सके।
जानकारी
लेखक का मूल विवरण
Debug inference clients that use an attached provider and its native endpoint, including hosted APIs and host-local Ollama, vLLM, SGLang, TRT-LLM, LM Studio, or NIM. Use for provider attachment, endpoint policy, credential substitution, topology, and migration from the removed managed inference endpoint. Trigger keywords - debug inference, managed inference endpoint, local inference, ollama, lm studio, vllm, sglang, trtllm, NIM, inference failing, model server unreachable, credential_endpoint_mismatch, host.openshell.internal.
repo: NVIDIA/OpenShell
लोकप्रियता
- GitHub स्टार
- 21k
- रैंकिंग में स्थान
- #10365
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
create-github-issue
21kआपके एजेंट को gh कमांड लाइन टूल और प्रोजेक्ट के टेम्पलेट से बग, फ़ीचर अनुरोध या कार्य के लिए GitHub issue बनाने में मदद करती है।
create-github-pr
21kआपके एजेंट को gh टूल से आपकी branch के लिए GitHub pull request खोलने देती है, समीक्षा के लिए काम तैयार है या नहीं, यह जाँचने के बाद।
review-github-pr
21kआपके एजेंट को GitHub pull request पढ़कर उसके बदलाव, मुख्य डिज़ाइन फ़ैसले और ख़ास कोड सरल भाषा में समझाना सिखाती है।
watch-github-actions
21kआपके एजेंट को GitHub Actions runs की स्थिति जाँचने, किसी run के पूरा होने तक उसे देखने और फ़ेल हुए job के लॉग पढ़ने देती है।
मिलती-जुलती skills
api-connector-builder
280kयह आपके एजेंट को मौजूदा pattern के हिसाब से नए API connections बनाने देता है। जब बिना कोई नया तरीका बनाए एक और integration जोड़ना हो, तब इसका इस्तेमाल करें।
api-design
280kयह आपके एजेंट को best practices के हिसाब से REST APIs डिज़ाइन करने में मदद करता है। यह तय करने में काम आता है कि APIs आपस में कैसे बात करें, errors कैसे दिखें, और data को कैसे व्यवस्थित करें।
backend-patterns
280kआपके एजेंट को server-side architecture patterns और database optimization में मदद करता है। server पर चलने वाला code बनाने या review करने के लिए उपयोगी है।