Akjava commited on
Commit
9a28ac7
·
verified ·
1 Parent(s): bff5d41

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -10
app.py CHANGED
@@ -184,21 +184,13 @@ model = LiteLLMModel(
184
  "llama-3.3-70b-versatile",
185
  api_base="https://api.groq.com/openai/v1",
186
  custom_role_conversions=custom_role_conversions,
187
- max_tokens=int(6000*0.55),
188
- #num_ctx=819,
189
-
190
  api_key=os.getenv("OPENAI_API_KEY")
191
  )
192
  model._flatten_messages_as_text = True
193
 
194
- model = HfApiModel(
195
- max_tokens=2096*5,
196
- temperature=0.5,
197
- model_id='meta-llama/Llama-3.3-70B-Instruct',
198
- custom_role_conversions=None,
199
- )
200
 
201
- text_limit = 20000
202
  ti_tool = TextInspectorTool(model, text_limit)
203
 
204
  browser = SimpleTextBrowser(**BROWSER_CONFIG)
 
184
  "llama-3.3-70b-versatile",
185
  api_base="https://api.groq.com/openai/v1",
186
  custom_role_conversions=custom_role_conversions,
187
+ max_tokens=6000,
 
 
188
  api_key=os.getenv("OPENAI_API_KEY")
189
  )
190
  model._flatten_messages_as_text = True
191
 
 
 
 
 
 
 
192
 
193
+ text_limit = 5000
194
  ti_tool = TextInspectorTool(model, text_limit)
195
 
196
  browser = SimpleTextBrowser(**BROWSER_CONFIG)