Skip to content

Commit f3ec37c

Browse files
committed
just declare the helper locally
1 parent 3a993a7 commit f3ec37c

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

tools/server/server-common.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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
//

tools/server/server-common.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -347,9 +347,6 @@ std::string format_oai_resp_sse(const json & data);
347347
// format Anthropic-style SSE with event types
348348
std::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-
353350
bool is_valid_utf8(const std::string & str);
354351

355352
//

0 commit comments

Comments
 (0)