Quick Reference
Top-Level Configuration
Chat Configuration
AutoTurn Configuration
Vision Configuration
Complete Configuration Example
TypeScript Usage
Detailed Parameter Descriptions
Authentication & Connection
tokenProviderUrl (required)
The URL of your secure backend endpoint that provides Animus access tokens. This endpoint must:
- Authenticate your user (your own logic)
- Call the Animus Auth Service with your API key
- Return the JWT token to the SDK
apiBaseUrl (optional)
Override the default Animus API endpoint. Useful for testing or custom deployments.
tokenStorage (optional)
Choose where to store the authentication token:
sessionStorage: More secure, cleared when tab closeslocalStorage: Persists across browser sessions
Chat Configuration
Required Chat Parameters
chat.model - Default model ID for chat requests
chat.systemMessage - Default system prompt for conversations
API Parameters
chat.temperature - Controls response randomness (0.0-2.0)
- Lower values (0.1-0.3): More focused and deterministic
- Higher values (0.7-1.0): More creative and varied
chat.top_p - Nucleus sampling threshold (0.0-1.0)
Controls diversity by limiting token selection to top probability mass.
chat.max_tokens - Maximum tokens in response
No API default - varies by model. Set based on your needs.
chat.compliance - Enable content moderation
When true, responses include compliance violation detection for non-streaming requests.
chat.reasoning - Extract thinking content
When true, extracts <think>...</think> blocks into a separate reasoning field.
chat.check_image_generation - Auto-generate images from prompts ⚠️ Alpha Feature
When true, automatically generates images when responses contain image_prompt fields.
SDK Features
chat.historySize - Conversation context management
Number of previous conversation turns to include in requests. When 0, history is disabled.
chat.autoTurn - Conversational turns
Enables natural conversation flow with automatic response splitting and typing delays.
- Simple:
autoTurn: true - Advanced:
autoTurn: { enabled: true, baseTypingSpeed: 50, ... }
Vision Configuration
vision.model (required if vision object provided) - Default model for vision requests
vision.temperature - Default temperature for vision completion requests
Parameter Override
Most parameters can be overridden on a per-request basis:Common Configuration Patterns
Basic Chat Setup
Conversational Interface
Vision-Enabled Application
Next Steps
Authentication Setup
Set up secure token provider for your backend
Chat Completions
Start building chat features with your configuration
Conversational Turns
Learn more about natural conversation flow
Media & Vision
Add vision capabilities to your application
