From d65397a0ba2c9d44313fd48920a2607b80b9b30d Mon Sep 17 00:00:00 2001 From: yisding Date: Mon, 6 Nov 2023 12:58:47 -0800 Subject: [PATCH] change example to 4-turbo --- examples/openai.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/openai.ts b/examples/openai.ts index e397e349d4..61acb5edd7 100644 --- a/examples/openai.ts +++ b/examples/openai.ts @@ -1,7 +1,7 @@ import { OpenAI } from "llamaindex"; (async () => { - const llm = new OpenAI({ model: "gpt-3.5-turbo-1106", temperature: 0.1 }); + const llm = new OpenAI({ model: "gpt-4-1106-preview", temperature: 0.1 }); // complete api const response1 = await llm.complete("How are you?"); @@ -9,7 +9,7 @@ import { OpenAI } from "llamaindex"; // chat api const response2 = await llm.chat([ - { content: "Tell me a joke!", role: "user" }, + { content: "Tell me a joke.", role: "user" }, ]); console.log(response2.message.content); })();