MCPcopy Index your code
hub / github.com/geekcomputers/Python / debug_response

Function debug_response

JARVIS/ai.py:29–33  ·  view source on GitHub ↗
(kind, prompt, response)

Source from the content-addressed store, hash-verified

27
28
29def debug_response(kind, prompt, response):
30 state.debug(f"{kind} model", OPENAI_MODEL)
31 state.debug(f"{kind} prompt", prompt)
32 state.debug(f"{kind} raw output", getattr(response, "output_text", ""))
33 state.debug(f"{kind} usage", usage_dict(response) or "not reported by server")
34
35
36def ask_model(text):

Callers 2

ask_modelFunction · 0.85
classify_actionFunction · 0.85

Calls 2

usage_dictFunction · 0.85
debugMethod · 0.80

Tested by

no test coverage detected