| 2033 | } |
| 2034 | |
| 2035 | static 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 | |
| 2045 | std::optional<common_chat_params> common_chat_try_specialized_template( |
| 2046 | const common_chat_template & tmpl, |
no test coverage detected