Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywoola committed Sep 11, 2024
1 parent 4b9b0e2 commit a46c6f9
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,18 +77,10 @@ def _invoke(
inputs.append(text)

# Prepare the payload for the request
payload = {
"input": inputs,
"model": model,
"options": {
"use_mmap": True
}
}
payload = {"input": inputs, "model": model, "options": {"use_mmap": "true"}}

# Make the request to the Ollama API
response = requests.post(
endpoint_url, headers=headers, data=json.dumps(payload), timeout=(10, 300)
)
response = requests.post(endpoint_url, headers=headers, data=json.dumps(payload), timeout=(10, 300))

response.raise_for_status() # Raise an exception for HTTP errors
response_data = response.json()
Expand Down

0 comments on commit a46c6f9

Please sign in to comment.