
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
@robinpath/openai
Advanced tools
OpenAI integration — chat completions, embeddings, image generation, transcription, moderation. Uses the encrypted credential vault for API keys.
OpenAI module for RobinPath.
The openai module lets you:
All functions are callable directly from RobinPath scripts with a simple, consistent API.
robinpath add @robinpath/openai
1. Set up credentials
openai.setApiKey "sk-..."
2. Send a chat completion request to OpenAI
openai.chat "Hello, how are you?" {"model": "gpt-4o"}
| Function | Description |
|---|---|
openai.setApiKey | Set the OpenAI API key for authentication |
openai.chat | Send a chat completion request to OpenAI |
openai.complete | Send a legacy completion request |
openai.generateImage | Generate images using DALL-E |
openai.editImage | Edit an image using DALL-E with an optional mask |
openai.createImageVariation | Create a variation of an existing image |
openai.transcribe | Transcribe audio to text using Whisper |
openai.translate | Translate audio to English text using Whisper |
openai.speak | Convert text to speech using TTS |
openai.createEmbedding | Generate text embeddings |
openai.createModeration | Check text for content policy violations |
openai.listModels | List all available OpenAI models |
openai.getModel | Get details of a specific model |
openai.uploadFile | Upload a file to OpenAI |
openai.listFiles | List uploaded files |
openai.deleteFile | Delete an uploaded file |
openai.getFileContent | Get the content of an uploaded file |
openai.createFineTune | Create a fine-tuning job |
openai.listFineTunes | List fine-tuning jobs |
openai.getFineTune | Get details of a fine-tuning job |
openai.cancelFineTune | Cancel a running fine-tuning job |
openai.createBatch | Create a batch processing request |
openai.getBatch | Get details of a batch request |
openai.listBatches | List batch requests |
openai.cancelBatch | Cancel a batch request |
openai.chat "Hello, how are you?" {"model": "gpt-4o"}
openai.complete "Once upon a time"
openai.generateImage "A sunset over mountains" {"model": "dall-e-3", "size": "1024x1024"}
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/openai";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
openai.setApiKey "sk-..."
openai.chat "Hello, how are you?" {"model": "gpt-4o"}
`);
See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.
@robinpath/anthropic — Anthropic module for complementary functionality@robinpath/ai — AI module for complementary functionality@robinpath/deepl — DeepL module for complementary functionality@robinpath/translate — Translate module for complementary functionality@robinpath/json — JSON module for complementary functionalityMIT
FAQs
OpenAI integration — chat completions, embeddings, image generation, transcription, moderation. Uses the encrypted credential vault for API keys.
We found that @robinpath/openai demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.