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

Method stream_text

tests/utils/mock_openai_client.cpp:95–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93 }
94}
95
96StreamResult ControllableOpenAIClient::stream_text(
97 const StreamOptions& options) {
98 // Copy just the GenerateOptions part to avoid const function issues
99 last_stream_options_ = static_cast<const GenerateOptions&>(options);
100 call_count_++;
101
102 // For now, return a simple stream result
103 // In a full implementation, this would return a controllable stream
104 return StreamResult(nullptr); // Simplified for testing
105}
106
107bool ControllableOpenAIClient::is_valid() const {

Callers 6

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

Calls 1

StreamResultClass · 0.85

Tested by 6

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