Real World Example

Settings per Task at a Food Delivery App

A Zomato-style app uses AI in several places, each with different needs:

FeatureNeedOpen model (Ollama/vLLM) settingsClaude settings
Tag a complaintSame answer every timetemperature 0, max_tokens 5Haiku, effort low, fixed tag list in prompt
Reply to a reviewFriendly, slightly variedtemperature 0.7, top_p 0.9Sonnet, tone examples in prompt
Push notification ideasCreativetemperature 1.1, top_p 0.95Sonnet, "give 10 varied options"

Getting Variety Without Temperature

response = client.messages.create(
    model="claude-sonnet-5-5",
    max_tokens=400,
    system="You write short push notifications for a food delivery app in India. "
           "Each under 60 characters. Use Hinglish where natural. No emojis.",
    messages=[{"role": "user", "content": "Give 5 very different notification ideas for a rainy evening."}],
)
print(response.content[0].text)

Run it

python notify.py

Example output

1. Baarish + pakode = perfect evening. Order now
2. Rainy day? Hot chai is 20 mins away
3. Stay dry. We'll bring the biryani to you
4. Monsoon special: 30% off on soups tonight
5. Cancel the cooking plan. It's raining