You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduces a new `models` parameter to init() that allows configuring
default models for different evaluation types:
```typescript
init({
models: {
completion: 'claude-3-5-sonnet-20241022',
embedding: 'text-embedding-3-large',
}
})
```
Changes:
- Added `models` parameter to init() in both JS and Python
- Models object supports:
- `completion`: Default model for LLM-as-a-judge evaluations
- `embedding`: Default model for embedding-based evaluations
- `models.completion` takes precedence over deprecated `defaultModel`
- All embedding scorers now use configured default embedding model
- Added getDefaultEmbeddingModel() function
- Maintains backward compatibility with existing `defaultModel`
parameter
- Added comprehensive tests for both languages
Default values:
- Completion: "gpt-4o" (unchanged)
- Embedding: "text-embedding-ada-002"
---------
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
0 commit comments