Skip to content

Commit 34925ad

Browse files
committed
Spell fix
1 parent d323a9a commit 34925ad

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/llm/io_processing/base_output_parser.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace ovms {
3737
struct ToolCall {
3838
std::string id;
3939
std::string name;
40-
std::string arguments; // JSON "{"a":1, "b":"SOME_STRING"}" TODO rename to know in context thats JSON
40+
std::string arguments; // JSON "{"a":1, "b":"SOME_STRING"}" TODO rename to know in context that's JSON
4141
};
4242

4343
using ToolsSchemas_t = std::map<std::string, std::string>;

src/llm/io_processing/qwen3coder/qwen3coder_tool_parser.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ static bool isArrayLike(const std::string& s) {
8383
// then check if it is object
8484
// then check if it is number or boolean
8585
// otherwise treat as string
86-
// note that array could be nested, and its elemetns can be strings
86+
// note that array could be nested, and its elements can be strings
8787
// note that object could contain array
8888
// note that array could contain object
8989
// note that object could contain object
@@ -100,8 +100,8 @@ static bool isArrayLike(const std::string& s) {
100100
}*/
101101

102102
// write toJson function
103-
// it shoudl know based on content of value from pair if it is string or number or bool
104-
// if number or bool, or array or json object. Note that array could be nested, and its elemetns can be strings
103+
// it should know based on content of value from pair if it is string or number or bool
104+
// if number or bool, or array or json object. Note that array could be nested, and its elements can be strings
105105
static std::string toJson(const std::vector<std::pair<std::string, std::string>>& items) {
106106
std::ostringstream oss;
107107
oss << "{";
@@ -138,7 +138,7 @@ static std::string toJson(const std::vector<std::pair<std::string, std::string>>
138138
}
139139

140140
// write toJson function
141-
// it shoudl know based on content of value from pair if it is string or number or bool
141+
// it should know based on content of value from pair if it is string or number or bool
142142
/*static std::string toJson2(const std::vector<std::pair<std::string, std::string>>& parameters) {
143143
rapidjson::Document doc;
144144
doc.SetObject();

src/test/llm/output_parsers/qwen3coder_output_parser_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class Qwen3CoderOutputParserTest : public ::testing::Test {
8383
// check nested function/arguments tags
8484
// check non-finished tools calls
8585
// check non-finished function
86-
// check non-finished argumenst
86+
// check non-finished arguments
8787
TEST_F(Qwen3CoderOutputParserTest, Parse1ToolCall1Function1ArgumentTagsNewline) {
8888
// std::string input = "<tool_call>{\"name\": \"string_tool\", \"arguments\": {\"arg1\": \"value1\", \"arg2\": 42}}</tool_call>";
8989
std::string input = R"(

0 commit comments

Comments
 (0)