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

Class OpenAIEmbeddingsTest

tests/unit/openai_embeddings_test.cpp:16–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14namespace test {
15
16class OpenAIEmbeddingsTest : public OpenAITestFixture {
17 protected:
18 void SetUp() override {
19 OpenAITestFixture::SetUp();
20 client_ =
21 std::make_unique<ai::openai::OpenAIClient>(kTestApiKey, kTestBaseUrl);
22 }
23
24 void TearDown() override {
25 client_.reset();
26 OpenAITestFixture::TearDown();
27 }
28
29 std::unique_ptr<ai::openai::OpenAIClient> client_;
30};
31
32// EmbeddingOptions Constructor and Validation Tests
33TEST_F(OpenAIEmbeddingsTest, EmbeddingOptionsDefaultConstructor) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected