Skip to content

Commit

Permalink
Switch to gpt-3.5-turbo-1106 (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 authored Jan 31, 2024
1 parent 7e5bec8 commit 2766bb6
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion _scripts/evaluate_chains.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
}

_MODEL_MAP = {
"openai": "gpt-3.5-turbo",
"openai": "gpt-3.5-turbo-1106",
"anthropic": "claude-2",
}

Expand Down
2 changes: 1 addition & 1 deletion _scripts/evaluate_chains_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def return_results(client, llm):
# Check dataset exists
ds = client.read_dataset(dataset_name=args.dataset_name)

llm = ChatOpenAI(model="gpt-3.5-turbo-16k", streaming=True, temperature=0)
llm = ChatOpenAI(model="gpt-3.5-turbo-1106", streaming=True, temperature=0)

eval_config = RunEvalConfig(evaluators=["qa"], prediction_key="output")
results = run_on_dataset(
Expand Down
2 changes: 1 addition & 1 deletion _scripts/evaluate_chains_improved_chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
}

_MODEL_MAP = {
"openai": "gpt-3.5-turbo-16k",
"openai": "gpt-3.5-turbo-1106",
"anthropic": "claude-2",
}

Expand Down
2 changes: 1 addition & 1 deletion _scripts/evaluate_chat_langchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}

_MODEL_MAP = {
"openai": "gpt-3.5-turbo-16k",
"openai": "gpt-3.5-turbo-1106",
"anthropic": "claude-2",
}

Expand Down
2 changes: 1 addition & 1 deletion chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def create_chain(


llm = ChatOpenAI(
model="gpt-3.5-turbo-16k",
model="gpt-3.5-turbo-1106",
streaming=True,
temperature=0,
).configurable_alternatives(
Expand Down
2 changes: 1 addition & 1 deletion chat-langchain/app/api/chat/stream_log/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export async function POST(req: NextRequest) {
const config = body.config;

const llm = new ChatOpenAI({
modelName: "gpt-3.5-turbo-16k",
modelName: "gpt-3.5-turbo-1106",
temperature: 0,
});
const retriever = await getRetriever();
Expand Down

0 comments on commit 2766bb6

Please sign in to comment.