Context
Alternative/complementary solution if GPT-4-turbo-preview proves too non-deterministic (issue #16).
Problem
gpt-4-turbo-preview is a preview/rolling model that may:
- Change behavior over time
- Have inconsistent inference across regions/servers
- Be less deterministic than stable versions
Solution
Switch to more deterministic and stable model.
Options
1. GPT-4o (Recommended)
- Model ID:
gpt-4o
- Latest stable omni model
- Better instruction following
- More deterministic than turbo-preview
- Similar performance, lower cost
2. GPT-4 Stable
- Model ID:
gpt-4-0613
- Frozen snapshot (no updates)
- Maximum determinism
- Slightly slower than turbo
Implementation
Update environment variables:
# .env (local)
CHAT_MODEL=gpt-4o
# Railway (production)
# Settings → Variables → Edit CHAT_MODEL
CHAT_MODEL=gpt-4o
Verify in /debug:
curl https://llarjove-production-754a.up.railway.app/debug | jq '.config.chatModel'
# Should return: "gpt-4o"
Comparison
| Model |
Determinism |
Performance |
Cost |
Notes |
| gpt-4-turbo-preview |
⚠️ Low |
⭐⭐⭐⭐⭐ |
$$ |
Rolling updates |
| gpt-4o |
✅ High |
⭐⭐⭐⭐⭐ |
$ |
Recommended |
| gpt-4-0613 |
✅ Very High |
⭐⭐⭐⭐ |
$$$ |
Frozen, expensive |
Acceptance Criteria
When to Use
Use this solution if:
- Solution B (few-shot) doesn't fully resolve inconsistency
- Diagnostic shows embeddings are identical
- Need maximum determinism for production reliability
Related
Context
Alternative/complementary solution if GPT-4-turbo-preview proves too non-deterministic (issue #16).
Problem
gpt-4-turbo-previewis a preview/rolling model that may:Solution
Switch to more deterministic and stable model.
Options
1. GPT-4o (Recommended)
gpt-4o2. GPT-4 Stable
gpt-4-0613Implementation
Update environment variables:
Verify in
/debug:Comparison
Acceptance Criteria
/debugconfirms new model in useWhen to Use
Use this solution if:
Related