简介
Gpt
原始描述
Generate GPT API request payloads. Use when building chat completions, embeddings, fine-tuning data, or estimating API costs.
通过你的 Agent 添加
点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。
或者手动安装
包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。
技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。
技能正文
name: gpt description: "Generate GPT API request payloads for chat completions, embeddings, and fine-tuning. Input: prompts, messages, or data files. Output: JSON request bodies, JSONL datasets, and cost estimates. Convert between JSONL and CSV formats." version: "3.1.0" author: BytesAgain tags:
- gpt
- openai
- api
- chat-completion
- embeddings
- fine-tuning
gpt
GPT API calling assistant. Build chat completion requests, generate embedding payloads, prepare fine-tuning data, estimate costs, batch requests, and convert between formats.
Commands
chat
Build a chat completion request JSON payload from messages.
bash scripts/script.sh chat --system "You are a translator" --user "Translate: hello"
bash scripts/script.sh chat --system "Helper" --user "Hi" --model gpt-4o --temperature 0.7
embed
Generate an embedding API request payload.
bash scripts/script.sh embed --input "Text to embed"
bash scripts/script.sh embed --file texts.txt --model text-embedding-3-small
finetune
Prepare and validate fine-tuning JSONL data from source files.
bash scripts/script.sh finetune --input pairs.csv --output training.jsonl
bash scripts/script.sh finetune --validate training.jsonl
cost
Estimate API costs based on token count and model pricing.
bash scripts/script.sh cost --tokens 5000 --model gpt-4o
bash scripts/script.sh cost --file input.txt --model gpt-4-turbo
batch
Generate multiple API request payloads from a list of inputs.
bash scripts/script.sh batch --file prompts.txt --model gpt-4o --output batch_requests.jsonl
convert
Convert between JSONL and CSV data formats.
bash scripts/script.sh convert --input data.csv --to jsonl --output data.jsonl
bash scripts/script.sh convert --input data.jsonl --to csv --output data.csv
Output
All commands output JSON request bodies or JSONL to stdout by default. Use --output to write to a file. Cost estimates print a breakdown table with per-model pricing.
Requirements
- bash 4+
Feedback
Report issues or suggestions: https://bytesagain.com/feedback/
Powered by BytesAgain | bytesagain.com
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。