计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
openai-chat-completion【效率与协作】OpenAI Chat Completion. Run OpenAI chat models including GPT-4o, GPT-5, and o3-mini. Triggers: chat, gpt, openai, text generation, llm, completion
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Run OpenAI chat completion models through each::labs. Supports multiple model variants including GPT-4o, GPT-5, and o3-mini with optional image input and system prompts.
Requires an each::labs API key. Get one at eachlabs.ai.
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "openai-chat-completion",
"version": "0.0.1",
"input": {
"model": "gpt-4o",
"user_prompt": "Explain quantum computing in simple terms",
"system_prompt": "You are a helpful science teacher"
}
}'
| Parameter | Type | Default | Description |
|---|---|---|---|
| image_url | string | Optional image URL for multimodal input. | |
| max_tokens | integer | Maximum number of tokens in the response. | |
| model | string | gpt-4o | Model to use. enum: gpt-4.1, gpt-4.1-mini, gpt-4.1-nano, gpt-4o-mini, gpt-4o, gpt-5.1, gpt-5, gpt-5-mini, gpt-5-nano, o3-mini |
| system_prompt | string | System prompt to set the model's behavior. | |
| user_prompt | string | The user's message to the model. |
Vision-enabled query:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "openai-chat-completion",
"version": "0.0.1",
"input": {
"model": "gpt-4o",
"user_prompt": "Describe what you see in this image and identify the main objects",
"image_url": "https://example.com/photo.jpg",
"max_tokens": 500
}
}'
Reasoning with o3-mini:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "openai-chat-completion",
"version": "0.0.1",
"input": {
"model": "o3-mini",
"user_prompt": "Solve this step by step: If a train travels at 60mph for 2.5 hours, then at 80mph for 1.5 hours, what is the total distance?",
"system_prompt": "Show your work step by step"
}
}'