MCPcopy Create free account
hub / github.com/HisMax/RedInk / Response

Class Response

tests/errors_test.py:144–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142 captured = {}
143
144 class Response:
145 status_code = 200
146 text = '{"choices":[{"message":{"content":"红墨连接测试成功"}}]}'
147
148 def json(self):
149 return {"choices": [{"message": {"content": "红墨连接测试成功"}}]}
150
151 def fake_post(url, headers=None, json=None, timeout=None):
152 captured["url"] = url

Calls

no outgoing calls