Update logic.py
Browse filesupdate openai-base
logic.py
CHANGED
@@ -38,7 +38,7 @@ def load_index(token,name):
|
|
38 |
|
39 |
db = kuzu.Database(name+"/kg")
|
40 |
graph_store = KuzuGraphStore(db)
|
41 |
-
llm = OpenAI(temperature=0, model="gpt-3.5-turbo",api_key=token)
|
42 |
|
43 |
service_context = ServiceContext.from_defaults(llm=llm, chunk_size=512)
|
44 |
storage_context = StorageContext.from_defaults(graph_store=graph_store,persist_dir=name+"/storage")
|
@@ -56,7 +56,7 @@ def get_index_pdf(token,name):
|
|
56 |
|
57 |
db = kuzu.Database(name+"/kg")
|
58 |
graph_store = KuzuGraphStore(db)
|
59 |
-
llm = OpenAI(temperature=0, model="gpt-3.5-turbo",api_key=token)
|
60 |
service_context = ServiceContext.from_defaults(llm=llm, chunk_size=512)
|
61 |
storage_context = StorageContext.from_defaults(graph_store=graph_store)
|
62 |
|
@@ -84,7 +84,7 @@ def get_index(links,token,name):
|
|
84 |
links
|
85 |
)
|
86 |
|
87 |
-
llm = OpenAI(temperature=0, model="gpt-3.5-turbo",api_key=token)
|
88 |
service_context = ServiceContext.from_defaults(llm=llm, chunk_size=512)
|
89 |
storage_context = StorageContext.from_defaults(graph_store=graph_store)
|
90 |
|
|
|
38 |
|
39 |
db = kuzu.Database(name+"/kg")
|
40 |
graph_store = KuzuGraphStore(db)
|
41 |
+
llm = OpenAI(temperature=0, model="gpt-3.5-turbo", api_key=token, openai_api_base="https://ipin-copilot.onrender.com/v1")
|
42 |
|
43 |
service_context = ServiceContext.from_defaults(llm=llm, chunk_size=512)
|
44 |
storage_context = StorageContext.from_defaults(graph_store=graph_store,persist_dir=name+"/storage")
|
|
|
56 |
|
57 |
db = kuzu.Database(name+"/kg")
|
58 |
graph_store = KuzuGraphStore(db)
|
59 |
+
llm = OpenAI(temperature=0, model="gpt-3.5-turbo", api_key=token, openai_api_base="https://ipin-copilot.onrender.com/v1")
|
60 |
service_context = ServiceContext.from_defaults(llm=llm, chunk_size=512)
|
61 |
storage_context = StorageContext.from_defaults(graph_store=graph_store)
|
62 |
|
|
|
84 |
links
|
85 |
)
|
86 |
|
87 |
+
llm = OpenAI(temperature=0, model="gpt-3.5-turbo", api_key=token, openai_api_base="https://ipin-copilot.onrender.com/v1")
|
88 |
service_context = ServiceContext.from_defaults(llm=llm, chunk_size=512)
|
89 |
storage_context = StorageContext.from_defaults(graph_store=graph_store)
|
90 |
|