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 should_timeout_ = timeout;
35}
36
37void ControllableOpenAIClient::reset() {
38 predefined_response_ = ResponseBuilder::buildSuccessResponse();
39 predefined_status_code_ = 200;
40 should_fail_ = false;
41 should_timeout_ = false;
42 call_count_ = 0;
43}
44
45GenerateResult ControllableOpenAIClient::generate_text(

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