MCPcopy Create free account
hub / github.com/ClickHouse/ai-sdk-cpp / setPredefinedResponse

Method setPredefinedResponse

tests/utils/mock_openai_client.cpp:21–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21void ControllableOpenAIClient::setPredefinedResponse(
22 const std::string& response,
23 int status_code) {
24 predefined_response_ = response;
25 predefined_status_code_ = status_code;
26}
27
28void ControllableOpenAIClient::setShouldFail(bool fail) {
29 should_fail_ = fail;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected