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

Method supports_model

tests/utils/mock_openai_client.cpp:118–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118bool ControllableOpenAIClient::supports_model(
119 const std::string& model_name) const {
120 auto models = supported_models();
121 return std::find(models.begin(), models.end(), model_name) != models.end();
122}
123
124std::string ControllableOpenAIClient::config_info() const {
125 return "Test OpenAI Client";

Callers 4

TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls 2

beginMethod · 0.80
endMethod · 0.45

Tested by 4

TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36