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 return {openai::models::kGpt56, openai::models::kGpt56Sol,
117 openai::models::kGpt56Terra, openai::models::kGpt56Luna,
118 openai::models::kGpt55, openai::models::kGpt54,
119 openai::models::kGpt5Mini, openai::models::kGpt41};
120}
121
122bool ControllableOpenAIClient::supports_model(
123 const std::string& model_name) const {
124 auto models = supported_models();
125 return std::find(models.begin(), models.end(), model_name) != models.end();

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