| 129 | #ifdef DFLASH_HAS_CURL |
| 130 | |
| 131 | struct CurlWriteCtx { |
| 132 | int client_fd; |
| 133 | bool streaming; |
| 134 | bool first_chunk; |
| 135 | bool chat_rewrite; // rewrite completions → chat format |
| 136 | std::string buffer; // accumulates non-streaming response |
| 137 | std::string response_id; |
| 138 | std::string model; |
| 139 | }; |
| 140 | |
| 141 | static size_t curl_write_passthrough(char * ptr, size_t size, size_t nmemb, void * userdata) { |
| 142 | size_t total = size * nmemb; |
nothing calls this directly
no outgoing calls
no test coverage detected