MCPcopy Create free account
hub / github.com/modelscope/modelscope / get_request_id

Function get_request_id

modelscope/hub/errors.py:70–74  ·  view source on GitHub ↗
(response: requests.Response)

Source from the content-addressed store, hash-verified

68
69
70def get_request_id(response: requests.Response):
71 if MODELSCOPE_REQUEST_ID in response.request.headers:
72 return response.request.headers[MODELSCOPE_REQUEST_ID]
73 else:
74 return ''
75
76
77def is_ok(rsp):

Callers 3

handle_http_post_errorFunction · 0.85
handle_http_responseFunction · 0.85
raise_for_http_statusFunction · 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…