Skip to main content
CRUD operations allow you to store, retrieve, update, and delete OpenAI Chat Completions for analysis, caching, and model improvement.

Storing Completions

Basic Storage

TypeScript

Retrieving Completions

List Stored Completions

TypeScript

Filter by Metadata

TypeScript

Get Specific Completion

TypeScript

Updating Completions

Update Metadata

TypeScript

Deleting Completions

Delete Single Completion

TypeScript
CRUD operations are only available for completions created with store=True. This feature is designed for OpenAI API compatibility and works with both Python and TypeScript SDKs.

Summary

The Sudo SDK provides comprehensive functionality for building AI-powered applications in both Python and TypeScript:
  • System Endpoints: Monitor API health and discover available models
  • Chat Completion: Generate responses from various AI models with extensive customization
  • Streaming: Real-time response generation for interactive applications
  • Tool Calling: Enable AI models to execute functions and interact with external systems
  • Structured Output: Generate validated JSON responses for reliable data extraction
  • Image Input: Process images and multimodal content with vision-capable models
  • Reasoning: Access advanced reasoning capabilities for complex problem-solving
  • CRUD Operations: Manage stored completions for analysis and improvement
Both SDKs are designed for production use with comprehensive error handling, async support, and best practices built-in. Start with basic chat completions and gradually add advanced features as needed. Resources: