MCPcopy Create free account
hub / github.com/abetlen/llama-cpp-python / make_request

Function make_request

docker/open_llama/hug_model.py:7–14  ·  view source on GitHub ↗
(url, params=None)

Source from the content-addressed store, hash-verified

5import argparse
6
7def make_request(url, params=None):
8 print(f"Making request to {url}...")
9 response = requests.get(url, params=params)
10 if response.status_code == 200:
11 return json.loads(response.text)
12 else:
13 print(f"Request failed with status code {response.status_code}")
14 return None
15
16def check_magic_and_version(filename):
17 with open(filename, 'rb') as f:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…