微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

gpt

gpt · v0.2.12
安全 unknown 级 作者 runapi-ai 公开目录收录
1.1k 下载 0 安装 4.5k 收藏 0 浏览

简介

gpt

原始描述

Call GPT generation and OpenAI text embedding models through RunAPI using OpenAI-compatible clients. Use for chat, Responses, embeddings, streaming, tools, vision, or an existing compatibility client that needs the conditional reference.

通过你的 Agent 添加

安装目录:gpt/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/gpt-176165/
Codex CLI~/.codex/skills/gpt-176165/
DeepSeek Harness~/.agents/skills/gpt-176165/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: gpt description: Call GPT generation and OpenAI text embedding models through RunAPI using OpenAI-compatible clients. Use for chat, Responses, embeddings, streaming, tools, vision, or an existing compatibility client that needs the conditional reference. documentation: https://runapi.ai/models/gpt.md provider_page: https://runapi.ai/providers/openai.md catalog: https://runapi.ai/models.md metadata: openclaw: homepage: https://runapi.ai/models/gpt primaryEnv: OPENAI_API_KEY requires: env: [OPENAI_API_KEY, OPENAI_BASE_URL] envVars: - {name: OPENAI_API_KEY, required: true, description: RunAPI API key used by OpenAI-compatible clients.} - {name: OPENAI_BASE_URL, required: true, description: Set to https://runapi.ai/v1 for GPT on RunAPI.}

GPT on RunAPI

Use OpenAI-compatible clients at https://runapi.ai/v1 as the primary protocol.

Primary protocol recipe

Authenticate

Set OPENAI_API_KEY to a RunAPI API key and OPENAI_BASE_URL to https://runapi.ai/v1.

Send request

from openai import OpenAI
client = OpenAI(api_key="YOUR_RUNAPI_TOKEN", base_url="https://runapi.ai/v1")
response = client.responses.create(model="gpt-5.5", input="Summarize this review.")
print(response.output_text)
print(response.usage)

Use client.chat.completions.create for gpt-5.2, which does not accept Responses. Use Responses for gpt-5.*-pro. Use client.embeddings.create only with the three embedding model IDs below. For streaming Responses, set stream=True and consume through one usage-bearing response.completed followed by [DONE].

For gpt-5.6-luna, gpt-5.6-sol, and gpt-5.6-terra, start with text input, sync or SSE transport, parameterized custom functions, and automatic prompt caching. gpt-5.3-codex-spark has the same verified subset with parameterless custom functions. Add reasoning controls, multimodal input, hosted tools, or continuation state only when the current RunAPI contract verifies that shape.

Verify result

Responses require final output, response.completed, and usage. Chat requires final assistant content, finish_reason, and usage. Embeddings require one numeric vector per input and response usage.

Stop boundaries

Correct a rejected shape once using the current error and endpoint contract. Retry transport once only before any response or Usage and when replay is safe. Record a terminal error and stop without changing model, endpoint, or protocol. Keep embedding models on /v1/embeddings.

Compatibility protocols

Load compatibility protocols only when an existing client requires Anthropic Messages or Gemini contents.

Supported models

Model ID Use when
gpt-5.5 Latest general model
gpt-5.5-pro Reasoning-heavy
gpt-5.4 Production default
gpt-5.4-mini Cost-optimized
gpt-5.4-nano Smallest, fastest
gpt-5.4-pro Reasoning
gpt-5.3-codex Code generation
gpt-5.3-codex-spark Faster Codex variant; text and parameterless functions in the consistently available Responses subset
gpt-5.2 Cost-effective
gpt-5.6-luna Text and parameterized functions in the consistently available Responses subset
gpt-5.6-sol Text and parameterized functions in the consistently available Responses subset
gpt-5.6-terra Text and parameterized functions in the consistently available Responses subset
text-embedding-3-large High-capacity vectors
text-embedding-3-small Efficient vectors
text-embedding-ada-002 Legacy-compatible vectors

References

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

没有标签

同类 Skill