Docfile commited on
Commit
5be60ea
·
1 Parent(s): af347b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -5,8 +5,8 @@ from g4f import Provider, models
5
  from langchain.llms.base import LLM
6
  import g4f
7
  from langchain_g4f import G4FLLM
8
- #g4f.debug.logging = True # Enable logging
9
- #g4f.check_version = False # Disable automatic version checking
10
  print(g4f.version) # Check version
11
  print(g4f.Provider.Ails.params) # Supported args
12
 
@@ -30,8 +30,8 @@ def greet(name):
30
  print(name)
31
  c = response.text
32
  llm = LLM = G4FLLM(
33
- model=models.gpt_35_turbo,
34
- provider = Provider.FreeGpt
35
  )
36
 
37
  res = llm(f"""
 
5
  from langchain.llms.base import LLM
6
  import g4f
7
  from langchain_g4f import G4FLLM
8
+ g4f.debug.logging = True # Enable logging
9
+ g4f.check_version = False # Disable automatic version checking
10
  print(g4f.version) # Check version
11
  print(g4f.Provider.Ails.params) # Supported args
12
 
 
30
  print(name)
31
  c = response.text
32
  llm = LLM = G4FLLM(
33
+ model=models.gpt_35_turbo_16k
34
+
35
  )
36
 
37
  res = llm(f"""