Skip to content

Commit dae6a28

Browse files
author
ochafik
committed
nit: spaces
1 parent 5031366 commit dae6a28

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

common/chat.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,10 +1092,10 @@ static void common_chat_parse_llama_3_1(common_chat_msg_parser & builder, bool w
10921092
static const common_regex function_regex(
10931093
"\\s*\\{\\s*(?:\"type\"\\s*:\\s*\"function\"\\s*,\\s*)?\"name\"\\s*:\\s*\"([^\"]+)\"\\s*,\\s*\"parameters\"\\s*: ");
10941094
static const common_regex close_regex("\\}\\s*");
1095-
1095+
10961096
static const common_regex function_name_regex("\\s*(\\w+)\\s*\\.\\s*call\\(");
10971097
static const common_regex arg_name_regex("\\s*(\\w+)\\s*=\\s*");
1098-
1098+
10991099
if (with_builtin_tools) {
11001100
static const common_regex builtin_call_regex("<\\|python_tag\\|>");
11011101
if (auto res = builder.try_find_regex(builtin_call_regex)) {

common/chat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,4 +194,4 @@ template <class T> T common_chat_msgs_to_json_oaicompat(const std::vector<common
194194
template <class T> std::vector<common_chat_tool> common_chat_tools_parse_oaicompat(const T & tools);
195195
template <class T> T common_chat_tools_to_json_oaicompat(const std::vector<common_chat_tool> & tools);
196196

197-
template <class T> T common_chat_msg_diff_to_json_oaicompat(const common_chat_msg_diff & diff);
197+
template <class T> T common_chat_msg_diff_to_json_oaicompat(const common_chat_msg_diff & diff);

0 commit comments

Comments
 (0)