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

Method reset

tests/utils/mock_openai_client.cpp:36–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void ControllableOpenAIClient::reset() {
37 predefined_response_ = ResponseBuilder::buildSuccessResponse();
38 predefined_status_code_ = 200;
39 should_fail_ = false;
40 should_timeout_ = false;
41 call_count_ = 0;
42}
43
44GenerateResult ControllableOpenAIClient::generate_text(
45 const GenerateOptions& options) {

Callers 3

TearDownMethod · 0.45
TearDownMethod · 0.45
TearDownMethod · 0.45

Calls

no outgoing calls

Tested by 3

TearDownMethod · 0.36
TearDownMethod · 0.36
TearDownMethod · 0.36