Brunobkr/llama.cpp_AlgMor24_github
ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.
03.1k
1// Chat conversion functions for server (Responses API, Anthropic API, OAI streaming diffs)2 3#pragma once4 5#include "chat.h"6#include "server-common.h"7#include "server-http.h"8 9#include <nlohmann/json_fwd.hpp>10 11using json = nlohmann::ordered_json;12 13// Convert OpenAI Responses API format to OpenAI Chat Completions API format14json server_chat_convert_responses_to_chatcmpl(const json & body);15 16// Convert Anthropic Messages API format to OpenAI Chat Completions API format17json server_chat_convert_anthropic_to_oai(const json & body);18 19// convert OpenAI transcriptions API format to OpenAI Chat Completions API format20json convert_transcriptions_to_chatcmpl(21 const json & body,22 const common_chat_templates * tmpls,23 const std::map<std::string, uploaded_file> & in_files,24 std::vector<raw_buffer> & out_files);25 26json server_chat_msg_diff_to_json_oaicompat(const common_chat_msg_diff & diff);27 