Claude 3.5 Sonnet Overview
Claude 3.5 Sonnet oferă cel mai mare context window și reasoning superior. Ideal pentru conversații complexe și long-running.
200K tokens
Context Window
~500-700ms
TTFT (streaming)
Excellent
Tool Use
April 2024
Knowledge Cutoff
Key Advantages for Voice
200K Context
Longest context window - perfect for long conversations
Superior Reasoning
Better at complex multi-step reasoning
Safety Built-in
Strong safety features for customer-facing apps
Consistent Persona
Maintains character better over long conversations
Voice System Prompt
const systemPrompt = `You are Ana, a helpful assistant for Clinica Dentară. You're speaking with patients on the phone. <voice_guidelines> - Speak naturally and warmly - Keep responses to 1-2 sentences - Ask one question at a time - Confirm appointments clearly with date and time - If unclear, ask for clarification politely </voice_guidelines> <available_actions> You can: - Check available appointment slots - Schedule new appointments - Reschedule existing appointments - Answer questions about services and pricing - Transfer to reception for complex issues </available_actions> <persona> Be warm, professional, and patient. Use formal "dumneavoastră" unless the caller uses informal language first. </persona>`;
Tool Use Example
const tools = [{
name: "schedule_appointment",
description: "Schedule an appointment for the customer",
input_schema: {
type: "object",
properties: {
date: {
type: "string",
description: "Appointment date (YYYY-MM-DD)"
},
time: {
type: "string",
description: "Appointment time (HH:MM)"
},
service: {
type: "string",
description: "Type of service requested"
}
},
required: ["date", "time", "service"]
}
}];
// Claude will use tools when appropriate
// "I'd like to book a haircut for tomorrow at 3pm"
// -> tool_use: schedule_appointmentClaude vs GPT-4 for Voice
| Aspect | Claude 3.5 Sonnet | GPT-4 Turbo |
|---|---|---|
| Context Window | 200K tokens | 128K tokens |
| Latency | ~600ms | ~500ms |
| Reasoning | Superior | Excellent |
| Safety | Built-in | Good |
| Price | $3/$15 per 1M | $10/$30 per 1M |