Skip to content

Commit

Permalink
Updated examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpocock committed Dec 9, 2024
1 parent 420ce2d commit 43b8b29
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/evalite/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ import { generateText } from "ai";
import { openai } from "@ai-sdk/openai";

// All calls to this model will be recorded in evalite!
const tracedModel = traceAISDKModel(openai("gpt-3.5-turbo"));
const tracedModel = traceAISDKModel(openai("gpt-4o-mini"));

const result = await generateText({
model: tracedModel,
Expand Down
2 changes: 1 addition & 1 deletion packages/example/src/example.2.eval.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ evalite("Test Capitals 2", {
],
task: async (input) => {
const result = await generateText({
model: traceAISDKModel(cacheModel(openai("gpt-3.5-turbo"), storage)),
model: traceAISDKModel(cacheModel(openai("gpt-4o-mini"), storage)),
system: `
Answer the question concisely, in as few words as possible.
`,
Expand Down
2 changes: 1 addition & 1 deletion packages/example/src/example.eval.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ evalite("Test Capitals", {
],
task: async (input) => {
const result = await streamText({
model: traceAISDKModel(cacheModel(openai("gpt-3.5-turbo"), storage)),
model: traceAISDKModel(cacheModel(openai("gpt-4o-mini"), storage)),
system: `
Answer the question concisely. Answer in as few words as possible.
Remove full stops from the end of the output.
Expand Down

0 comments on commit 43b8b29

Please sign in to comment.