File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1433,6 +1433,8 @@ json convert_responses_to_chatcmpl(const json & response_body) {
14331433 return chatcmpl_body;
14341434}
14351435
1436+ // re-format an x-anthropic-billing-header system prompt's cch section for prompt caching friendliness
1437+ void normalize_anthropic_billing_header (std::string & system_text);
14361438// Edits the cch section of an "x-anthropic-billing-header" system prompt.
14371439// Does nothing to any other prompt.
14381440//
Original file line number Diff line number Diff line change @@ -347,9 +347,6 @@ std::string format_oai_resp_sse(const json & data);
347347// format Anthropic-style SSE with event types
348348std::string format_anthropic_sse (const json & data);
349349
350- // re-format an x-anthropic-billing-header system prompt's cch section for prompt caching friendliness
351- void normalize_anthropic_billing_header (std::string & system_text);
352-
353350bool is_valid_utf8 (const std::string & str);
354351
355352//
You can’t perform that action at this time.
0 commit comments