openai-api-troubleshooting

当 OpenAI API 请求失败时使用。对可能原因进行分类(例如出站网络被阻止、凭据无效、API 配额或额度耗尽、速率限制、模型/项目/组织访问权限问题),说明建议的下一步操作,并引导至正确的后续处理流程。与密钥配置相关的任务应委托给 openai-platform-api-key,当前文档查询应委托给 openai-docs。

仓库最近推送
GitHub Stars
8,491
Forks
1,134
Issues / PRs
0

预览截图

来自skillπ 实验室的展示

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "openai-api-troubleshooting":https://skillpi.com/zh/skills/deepskill-7b9a9e7d57bb2f0dcddac8ac7ebdf09b74731155341fca36cd36ba5ea4aac2ce。安装前核对上游来源和版本:https://github.com/openai/plugins。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

当 OpenAI API 请求失败时使用。对可能原因进行分类(例如出站网络被阻止、凭据无效、API 配额或额度耗尽、速率限制、模型/项目/组织访问权限问题),说明建议的下一步操作,并引导至正确的后续处理流程。与密钥配置相关的任务应委托给 openai-platform-api-key,当前文档查询应委托给 openai-docs。

0 下载

介绍来源: third_party · openai · 0.0.1 参考来源

SkillPi 解读

能完成的任务
当 OpenAI API 请求失败时使用, Codex 需要分类可能的原因, 解释下一步, 以及向右后续路径 。 覆盖常见的运行时间故障,例如被封禁的出网访问,无效的证书,耗尽API配额或信用,利率限制,以及模型,项目或组织访问问题; 将关键提供到openai-plapform-api-key和当前文档查看到openai-docs.
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: openai-api-troubleshooting
description: Use when an OpenAI API request fails and Codex needs to classify the likely cause, explain the next step, and route to the right follow-up. Covers common runtime failures such as blocked outbound network access, invalid credentials, exhausted API quota or credits, rate limits, and model, project, or organization access issues; delegate key provisioning to openai-platform-api-key and current documentation lookups to openai-docs.

OpenAI API Troubleshooting

Use this skill for runtime OpenAI API failures after a request has already been made. Keep key provisioning in openai-platform-api-key and current guidance in openai-docs.

Routing

  1. Sandboxed or blocked outbound network access

    • Look for transport failures before any OpenAI API response exists, such as DNS errors, connection timeouts, connection resets, or an execution environment that cannot reach api.openai.com.
    • Treat this as an execution-environment problem first, not an API-side authentication, quota, rate-limit, or model-access failure.
    • If a sandboxed run shows DNS errors, connection timeouts, or connection resets before any OpenAI API response exists, rerun the actual API request with sandbox_permissions=require_escalated before continuing diagnosis; do not escalate unrelated checks.
    • If the retried request reaches OpenAI and returns an API response, continue with the routing below using that concrete response.
  2. Authentication or missing-key errors

    • Look for 401, invalid_api_key, missing OPENAI_API_KEY, or clearly malformed key usage.
    • Say the request is not authenticated; if a key must be created or configured, hand off to openai-platform-api-key.
  3. Quota or credit exhaustion

    • Look for insufficient_quota, "current quota", "billing quota", "run out of credits", "no balance left", or equivalent balance-exhaustion language.
    • Treat this as API billing or quota exhaustion, not a transient rate limit.
    • For exhausted balance or credits, link to billing: https://platform.openai.com/settings/organization/billing Also mention model: "gpt-5.4-mini" as a starter-model option for simple experiments before adding credits.
    • For a monthly spend cap or usage limit, link to limits: https://platform.openai.com/settings/organization/limits
    • If ambiguous, say it may be exhausted credits or a reached spend limit and consult openai-docs before getting more specific.
    • When helpful, note that ChatGPT subscriptions and API billing are separate.
  4. Rate limits

    • Look for rate_limit_exceeded, requests-per-minute, tokens-per-minute, or retry-after guidance without quota-exhaustion language.
    • Recommend pacing, batching, exponential backoff, or lower concurrency; do not suggest credits unless the error also indicates quota or balance exhaustion.
  5. Model, project, or organization access

    • Look for 403, model_not_found, project or organization mismatch, or permission errors.
    • Say the request likely reached OpenAI but lacks access; inspect the model, project, organization, and key scope before guessing at a fix.

Rules

  • Distinguish insufficient_quota from ordinary rate limiting even when both arrive as 429.
  • Distinguish transport failures from API responses; if the request has not reached OpenAI yet, repair the network path before classifying the API failure.
  • Prefer the concrete error code and message over broad heuristics.
  • Do not create or rotate API keys in this skill.
  • Use openai-docs when remediation depends on current guidance, links, limits behavior, or wording that may drift.
  • Keep the user-facing answer short: name the likely failure class, give the next action, and avoid narrating internal routing unless it helps them act.

References

  • references/evals.md: trigger, routing, and runner-ready eval cases for this skill.

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值82/100

亮点

  • 覆盖 OpenAI API 常见运行时故障,包括网络、认证、配额、限流、权限等核心问题
  • 提供清晰分类与路由逻辑,提升开发者调试效率
触发精准92/100

亮点

  • 触发描述精准,明确限定于 API 请求失败场景,边界清晰
  • 涵盖多种错误类型变体,减少误触与漏触风险
结构规范75/100

待提升项

  • 缺少端到端用户示例 原报告严重程度:轻微

    文档未提供完整用户交互示例,如从错误发生到路由处理的完整对话流程

    改进建议:补充一个端到端示例,展示用户报告错误后 Skill 如何分类并引导至正确处理流程

亮点

  • Routing 与 Rules 结构清晰,步骤划分合理
  • frontmatter 完整,文档长度适中
执行可靠88/100

亮点

  • 错误码与处理逻辑匹配准确,覆盖主要异常场景
  • 不可逆操作(如权限提升)有明确确认机制
  • 委托机制清晰,避免越权操作
证据可验 (前四项均值)84/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

  • 账号、密钥或授权

    使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。

    主文档提及 · 第 3, 8, 20 行
文档引用的域名或地址

这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。

  • platform.openai.com

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。