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

Method setShouldFail

tests/utils/mock_openai_client.cpp:28–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28void ControllableOpenAIClient::setShouldFail(bool fail) {
29 should_fail_ = fail;
30}
31
32void ControllableOpenAIClient::setShouldTimeout(bool timeout) {
33 should_timeout_ = timeout;

Callers 2

TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls

no outgoing calls

Tested by 2

TEST_FFunction · 0.36
TEST_FFunction · 0.36