/openai-pc
command enables you to access OpenAI’s powerful AI capabilities through PinkConnect Proxy. Perfect for:
- Text generation and chat completions
- Image analysis and generation
- Audio transcription and synthesis
- Text embeddings for semantic search
- Function calling and tool use
Basic Usage
Use the command to work with OpenAI:Key Features
Text Generation
- Chat completions with GPT models
- System prompts and context
- Temperature and creativity control
- JSON mode support
- Structured responses
Vision Capabilities
- Image understanding
- Visual question answering
- Scene description
- Object detection
- Multi-modal conversations
Audio Processing
- Speech-to-text transcription
- Text-to-speech synthesis
- Multiple voice options
- Audio format support
- Language detection
Advanced Features
- Function calling
- Tool integration
- Embedding generation
- Semantic search
- Custom model fine-tuning
Example Commands
Text Generation
Image Analysis
Audio Processing
Function Calling
Chat Completions
Basic Chat
Chat Response
Vision Capabilities
Image Analysis
Vision Response
Function Calling
Function Definition
Function Response
Embeddings
Generate Embeddings
Embeddings Response
Image Generation
DALL-E Generation
Image Response
Audio Processing
Speech-to-Text
Transcription Response
Text-to-Speech
Available Models
GPT Models
- gpt-4o: Most advanced multimodal model
- gpt-4o-mini: Faster and more cost-effective
- gpt-4-turbo: High-intelligence model for complex tasks
- gpt-3.5-turbo: Fast, inexpensive model for simple tasks
DALL-E Models
- dall-e-3: Latest image generation model
- dall-e-2: Previous generation image model
Embedding Models
- text-embedding-3-large: Most capable embedding model
- text-embedding-3-small: Highly efficient embedding model
- text-embedding-ada-002: Legacy embedding model
Audio Models
- whisper-1: Speech recognition model
- tts-1: Text-to-speech model (standard)
- tts-1-hd: Text-to-speech model (high quality)
Model Capabilities
Text Generation
- Creative writing and content creation
- Code generation and debugging
- Data analysis and summarization
- Question answering
- Language translation
Vision Understanding
- Image description and analysis
- Object detection and recognition
- Scene understanding
- Visual question answering
- Chart and document analysis
Audio Processing
- Speech transcription in multiple languages
- Audio content analysis
- Voice synthesis with different personas
- Audio format conversion
- Real-time processing
Best Practices
-
Prompt Engineering
- Use clear, specific instructions
- Provide context and examples
- Structure prompts logically
- Test different approaches
-
Model Selection
- Choose appropriate model for task
- Consider cost vs. performance
- Use specialized models when available
- Test model capabilities
-
Parameter Tuning
- Adjust temperature for creativity
- Set appropriate max_tokens
- Use system prompts effectively
- Control response format
-
Error Handling
- Handle rate limits gracefully
- Implement retry logic
- Validate inputs before sending
- Monitor usage and costs
Common Use Cases
Content Creation
Data Analysis
Code Generation
Image Processing
Connection Requirements
PinkConnect Setup
- Uses PC_BASE_URL + v1/ endpoint
- Requires OpenAI connection ID
- SELECTED_SKILL_ID must be “openai”
- Standard API authentication
Authentication
- API key authentication
- Organization ID support
- Usage tracking
- Rate limit management
Performance Optimization
Efficient Usage
- Cache responses when appropriate
- Use streaming for long responses
- Batch requests when possible
- Monitor token usage
Cost Management
- Choose cost-effective models
- Optimize prompt length
- Use appropriate max_tokens
- Monitor usage patterns
Integration Tips
Workflow Automation
- Chain multiple API calls
- Combine with other services
- Implement error recovery
- Use function calling for tools
Response Processing
- Parse JSON responses carefully
- Handle different response formats
- Extract relevant information
- Validate response quality
Tips
- Always specify SELECTED_SKILL_ID as “openai” for PinkConnect
- Use system prompts to establish context and behavior
- Test different temperature values for optimal creativity
- Implement proper error handling for rate limits and failures
- Monitor token usage to manage costs effectively
- Use function calling for structured interactions with external tools