| 93 | } |
| 94 | } |
| 95 | |
| 96 | StreamResult 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 | |
| 107 | bool ControllableOpenAIClient::is_valid() const { |