(kind, prompt, response)
| 27 | |
| 28 | |
| 29 | def 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 | |
| 36 | def ask_model(text): |
no test coverage detected