| 222 | } |
| 223 | |
| 224 | nlohmann::json TestDataGenerator::createResponseWithUsage( |
| 225 | int prompt_tokens, |
| 226 | int completion_tokens) { |
| 227 | auto response = createMinimalValidResponse(); |
| 228 | response["usage"] = {{"prompt_tokens", prompt_tokens}, |
| 229 | {"completion_tokens", completion_tokens}, |
| 230 | {"total_tokens", prompt_tokens + completion_tokens}}; |
| 231 | return response; |
| 232 | } |
| 233 | |
| 234 | nlohmann::json TestDataGenerator::createResponseWithMetadata() { |
| 235 | auto response = createFullValidResponse(); |
nothing calls this directly
no outgoing calls
no test coverage detected