Buckets:
| // Chat conversion functions for server (Responses API, Anthropic API, OAI streaming diffs) | |
| using json = nlohmann::ordered_json; | |
| // Convert OpenAI Responses API format to OpenAI Chat Completions API format | |
| json server_chat_convert_responses_to_chatcmpl(const json & body); | |
| // Convert Anthropic Messages API format to OpenAI Chat Completions API format | |
| json server_chat_convert_anthropic_to_oai(const json & body); | |
| // convert OpenAI transcriptions API format to OpenAI Chat Completions API format | |
| json convert_transcriptions_to_chatcmpl( | |
| const json & body, | |
| const common_chat_templates * tmpls, | |
| const std::map<std::string, uploaded_file> & in_files, | |
| std::vector<raw_buffer> & out_files); | |
| json server_chat_msg_diff_to_json_oaicompat(const common_chat_msg_diff & diff); | |
Xet Storage Details
- Size:
- 906 Bytes
- Xet hash:
- bffb4833c2df70293e2a426717be3f65f07c6ed61f0c2109b641affedc8d7d08
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.