MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / common_chat_extra_context

Function common_chat_extra_context

common/chat.cpp:2035–2043  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2033}
2034
2035static json common_chat_extra_context() {
2036 json ctx = json::object();
2037 std::chrono::system_clock::time_point now = std::chrono::system_clock::now();
2038 std::string datetime_str = format_time(now, "%b %d %Y");
2039 std::string date_str = format_time(now, "%d %b %Y");
2040 ctx["datetime"] = datetime_str;
2041 ctx["date_string"] = date_str;
2042 return ctx;
2043}
2044
2045std::optional<common_chat_params> common_chat_try_specialized_template(
2046 const common_chat_template & tmpl,

Callers 1

Calls 1

format_timeFunction · 0.85

Tested by

no test coverage detected