Docfile commited on
Commit
7009b46
·
1 Parent(s): 23ccacd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -18,6 +18,11 @@ from llama_index.llms import LangChainLLM
18
  from langchain_g4f import G4FLLM
19
 
20
  nest_asyncio.apply()
 
 
 
 
 
21
 
22
  #documents = SimpleDirectoryReader('data').load_data()
23
  model_kwargs = {'device': 'cpu'}
@@ -28,8 +33,7 @@ embed_model = HuggingFaceInstructEmbeddings(
28
  )
29
 
30
  llm= LLM = G4FLLM(
31
- model=models.gpt_35_turbo,
32
- provider=Provider.GeekGpt,
33
  )
34
 
35
  llm = LangChainLLM(llm=llm)
 
18
  from langchain_g4f import G4FLLM
19
 
20
  nest_asyncio.apply()
21
+ g4f.debug.logging = True # Enable logging
22
+ g4f.check_version = False # Disable automatic version checking
23
+ print(g4f.version) # Check version
24
+ print(g4f.Provider.Ails.params)
25
+
26
 
27
  #documents = SimpleDirectoryReader('data').load_data()
28
  model_kwargs = {'device': 'cpu'}
 
33
  )
34
 
35
  llm= LLM = G4FLLM(
36
+ model=models.gpt_35_turbo_16k,
 
37
  )
38
 
39
  llm = LangChainLLM(llm=llm)