MCPcopy Create free account
hub / github.com/1rgs/claude-code-proxy / get_response

Function get_response

tests.py:199–206  ·  view source on GitHub ↗

Send a request and get the response.

(url, headers, data)

Source from the content-addressed store, hash-verified

197# ================= NON-STREAMING TESTS =================
198
199def get_response(url, headers, data):
200 """Send a request and get the response."""
201 start_time = time.time()
202 response = httpx.post(url, headers=headers, json=data, timeout=30)
203 elapsed = time.time() - start_time
204
205 print(f"Response time: {elapsed:.2f} seconds")
206 return response
207
208def compare_responses(anthropic_response, proxy_response, check_tools=False):
209 """Compare the two responses to see if they're similar enough."""

Callers 1

test_requestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected