This commit is contained in:
Romain Quinet 2023-10-06 22:52:42 +02:00
parent a77d41c6ec
commit b41d8288b7

View File

@ -6,7 +6,7 @@ from llama_index.llms import OpenAI
import os
import re
llm = OpenAI(model="gpt-3.5-turbo", temperature=0, max_tokens=256)
llm = OpenAI(model="gpt-4", temperature=0, max_tokens=256)
service_context = ServiceContext.from_defaults(llm=llm)
set_global_service_context(service_context)