Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions js/llm.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { afterAll, afterEach, beforeAll, describe, expect, test } from "vitest";
import {
Battle,
buildClassificationTools,
DEFAULT_MODEL,
LLMClassifierFromTemplate,
OpenAIClassifier,
templateUsesThreadVariables,
Expand Down Expand Up @@ -65,6 +66,10 @@ afterAll(() => {
});

describe("LLM Tests", () => {
test("exports the default scorer model", () => {
expect(DEFAULT_MODEL).toBe("gpt-6-luna");
});

test("templateUsesThreadVariables recognizes thread_with_system", () => {
expect(templateUsesThreadVariables("{{thread_with_system}}")).toBe(true);
expect(
Expand Down
2 changes: 1 addition & 1 deletion js/llm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export type LLMArgs = {
* The default model to use for LLM-based evaluations.
* @deprecated Use `init({ defaultModel: "..." })` to configure the default model instead.
*/
export const DEFAULT_MODEL = "gpt-5-mini";
export const DEFAULT_MODEL = "gpt-6-luna";

const PLAIN_RESPONSE_SCHEMA = {
properties: {
Expand Down
2 changes: 1 addition & 1 deletion py/autoevals/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
)

# Deprecated: Use init(default_model="...") to configure the default model instead.
DEFAULT_MODEL = "gpt-5-mini"
DEFAULT_MODEL = "gpt-6-luna"

PLAIN_RESPONSE_SCHEMA = {
"properties": {"choice": {"description": "The choice", "title": "Choice", "type": "string"}},
Expand Down
13 changes: 12 additions & 1 deletion py/autoevals/test_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@
from pydantic import BaseModel

from autoevals import init
from autoevals.llm import Battle, Factuality, LLMClassifier, OpenAILLMClassifier, build_classification_tools
from autoevals.llm import (
DEFAULT_MODEL,
Battle,
Factuality,
LLMClassifier,
OpenAILLMClassifier,
build_classification_tools,
)
from autoevals.oai import OpenAIV1Module, get_default_model
from autoevals.thread_utils import compute_thread_template_vars, template_uses_thread_variables

Expand All @@ -19,6 +26,10 @@ class TestModel(BaseModel):
num: int


def test_default_scorer_model():
assert DEFAULT_MODEL == "gpt-6-luna"


def test_render_messages():
classifier = OpenAILLMClassifier(
"test",
Expand Down
Loading