Skip to content

Commit

Permalink
remove proxies from llm calls (#883)
Browse files Browse the repository at this point in the history
  • Loading branch information
n00rsy committed Nov 8, 2023
1 parent e2be967 commit be5c278
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions pybossa/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,6 @@ def large_language_model(model_name):
if not model_endpoint:
return abort(400, f'{model_name} LLM is unsupported on this platform.')

proxies = current_app.config.get('PROXIES')
cert = current_app.config.get('CA_CERT', False)

try:
Expand Down Expand Up @@ -914,7 +913,7 @@ def large_language_model(model_name):
}
data = json.dumps(data)

r = requests.post(model_endpoint, data=data, proxies=proxies, verify=cert)
r = requests.post(model_endpoint, data=data, verify=cert)
out = json.loads(r.text)
predictions = out["predictions"][0]["output"]
response = {"Model: ": model_name, "predictions: ": predictions}
Expand Down
2 changes: 1 addition & 1 deletion pybossa/themes/default

0 comments on commit be5c278

Please sign in to comment.