| 93 | } |
| 94 | |
| 95 | StreamResult 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 | |
| 106 | bool ControllableOpenAIClient::is_valid() const { |
| 107 | return !should_fail_; |