| 196 | } |
| 197 | |
| 198 | RunMode parse_run_mode(const std::string & value) { |
| 199 | if (value == "offline") { |
| 200 | return RunMode::Offline; |
| 201 | } |
| 202 | if (value == "streaming") { |
| 203 | return RunMode::Streaming; |
| 204 | } |
| 205 | throw std::runtime_error("unsupported run mode: " + value); |
| 206 | } |
| 207 | |
| 208 | std::vector<TaskRequest> chunk_text_request(const TaskRequest & request, int64_t codepoint_budget) { |
| 209 | return chunk_text_request(request, codepoint_budget, engine::text::TextChunkMode::Default); |
no outgoing calls
no test coverage detected