Download source/third_party/llama.cpp-1.0.0/tools/server/server-chat.h from Yakimask/mimamo: direct link, hf CLI and curl.
- Browser
- Download file 1.37 kB
-
https://huggingface.co/Yakimask/mimamo/resolve/main/source/third_party/llama.cpp-1.0.0/tools/server/server-chat.h
- Command line
-
hf download hf://Yakimask/mimamo/source/third_party/llama.cpp-1.0.0/tools/server/server-chat.h
-
curl -L -o server-chat.h https://huggingface.co/Yakimask/mimamo/resolve/main/source/third_party/llama.cpp-1.0.0/tools/server/server-chat.h
1.37 kB
| // Chat conversion functions for server (Responses API, Anthropic API, OAI streaming diffs) | |
| // Convert OpenAI Responses API format to OpenAI Chat Completions API format | |
| json server_chat_convert_responses_to_chatcmpl(const json & body); | |
| // Convert OpenAI Responses API tools to OpenAI Chat Completions API tools, non-function tools are skipped | |
| json server_chat_convert_responses_tools(const json & tools); | |
| // 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); | |
| // convert OpenAI speech API format to the /tts format | |
| json convert_speech_to_tts(const json & body); | |
| // prompt of the "asr" chat template, live ASR models (e.g. LFM3-Audio live ASR) transcribe with it | |
| // empty if the model has no such template, throws on a template error | |
| llama_tokens server_chat_get_asr_prompt(const llama_model * model); | |
| json server_chat_msg_diff_to_json_oaicompat(const common_chat_msg_diff & diff); | |