ControllableOpenAIClient implementation
| 10 | |
| 11 | // ControllableOpenAIClient implementation |
| 12 | ControllableOpenAIClient::ControllableOpenAIClient(const std::string& api_key, |
| 13 | const std::string& base_url) |
| 14 | : predefined_status_code_(200), |
| 15 | should_fail_(false), |
| 16 | should_timeout_(false), |
| 17 | call_count_(0) { |
| 18 | predefined_response_ = ResponseBuilder::buildSuccessResponse(); |
| 19 | } |
| 20 | |
| 21 | void ControllableOpenAIClient::setPredefinedResponse( |
| 22 | const std::string& response, |
nothing calls this directly
no outgoing calls
no test coverage detected