|
ember.cpp 0.1.0
C++ inference engine for Llama-family and paperkiln models (CPU, CUDA, WebAssembly)
|
Functions | |
| int | thinking_field (const nlohmann::json &v, const char *name) |
| bool | tool_turns (const chat::Template *t) |
| void | refuse_tools_v1 (const nlohmann::json &r) |
| std::vector< chat::json > | tool_definitions (const nlohmann::json &r, const chat::json &ordered) |
| std::string | history_content (const nlohmann::json &h, size_t i, bool calls_may_omit=false) |
| void | refuse_tool_members_v1 (const nlohmann::json &m, const std::string &at) |
| std::pair< std::string, std::string > | history_pair (const nlohmann::json &h, size_t i) |
| chat::Message | tool_turn_message (const std::string &role, const std::string &content, const nlohmann::json &m) |
| void | push_system (std::vector< chat::Message > &m, const std::string &s) |
| void | openai_thinking (const nlohmann::json &body, Conversation &c) |
|
inline |
Definition at line 83 of file chat_request.h.
References j.
Referenced by ember::chat_conversation(), and ember::chat_conversation_tools().
|
inline |
Definition at line 104 of file chat_request.h.
References j.
Referenced by ember::chat_conversation(), and ember::chat_conversation_tools().
|
inline |
Definition at line 291 of file chat_request.h.
References body, c, and thinking_field().
Referenced by ember::openai_conversation(), and ember::openai_conversation_tools().
|
inline |
Definition at line 128 of file chat_request.h.
References j.
Referenced by ember::chat_conversation_tools(), and ember::openai_conversation_tools().
|
inline |
Definition at line 96 of file chat_request.h.
References j.
Referenced by ember::chat_conversation(), and ember::openai_conversation().
Definition at line 58 of file chat_request.h.
References j.
Referenced by ember::chat_conversation(), and ember::openai_conversation().
Definition at line 49 of file chat_request.h.
Referenced by ember::chat_conversation(), ember::chat_conversation_tools(), and openai_thinking().
|
inline |
Definition at line 67 of file chat_request.h.
Referenced by ember::chat_conversation_tools(), and ember::openai_conversation_tools().
|
inline |
Definition at line 114 of file chat_request.h.
References j, and microtorch::chat::messages_from_json().
Referenced by ember::chat_conversation_tools(), and ember::openai_conversation_tools().
|
inline |
Definition at line 54 of file chat_request.h.
References j.
Referenced by ember::chat_conversation(), and ember::openai_conversation().