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

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