Skip to content
Snippets Groups Projects
Unverified Commit be895d56 authored by Logan's avatar Logan Committed by GitHub
Browse files

Merge pull request #202 from run-llama/logan/fix_llm_def

parents f36a27c2 63daf774
Branches
Tags
No related merge requests found
...@@ -15,9 +15,10 @@ STORAGE_DIR = "./storage" # directory to cache the generated index ...@@ -15,9 +15,10 @@ STORAGE_DIR = "./storage" # directory to cache the generated index
DATA_DIR = "./data" # directory containing the documents to index DATA_DIR = "./data" # directory containing the documents to index
service_context = ServiceContext.from_defaults( service_context = ServiceContext.from_defaults(
llm=OpenAI("gpt-3.5-turbo") llm=OpenAI(model="gpt-3.5-turbo")
) )
def get_index(): def get_index():
logger = logging.getLogger("uvicorn") logger = logging.getLogger("uvicorn")
# check if storage already exists # check if storage already exists
......
...@@ -15,7 +15,7 @@ STORAGE_DIR = "./storage" # directory to cache the generated index ...@@ -15,7 +15,7 @@ STORAGE_DIR = "./storage" # directory to cache the generated index
DATA_DIR = "./data" # directory containing the documents to index DATA_DIR = "./data" # directory containing the documents to index
service_context = ServiceContext.from_defaults( service_context = ServiceContext.from_defaults(
llm=OpenAI("gpt-3.5-turbo") llm=OpenAI(model="gpt-3.5-turbo")
) )
def get_index(): def get_index():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment