Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/common/AutoModel/modeling_nanbeige.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ NonStreamResult Nanbeige::parse_nstream_content(const std::string response_text)
size_t brace_end = json_str.rfind("}"); // Find the last closing brace

if (brace_start != std::string::npos && brace_end != std::string::npos && brace_end > brace_start) {
arguments = json_str.substr(brace_start, brace_end - brace_start);
arguments = json_str.substr(brace_start, brace_end - brace_start + 1);
Comment thread
AshtonVaughan marked this conversation as resolved.
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/common/AutoModel/modeling_qwen2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ NonStreamResult Qwen2::parse_nstream_content(const std::string response_text) {
size_t brace_end = json_str.rfind("}"); // Find the last closing brace

if (brace_start != std::string::npos && brace_end != std::string::npos && brace_end > brace_start) {
arguments = json_str.substr(brace_start, brace_end - brace_start);
arguments = json_str.substr(brace_start, brace_end - brace_start + 1);
Comment thread
AshtonVaughan marked this conversation as resolved.
}
}

Expand Down
6 changes: 3 additions & 3 deletions src/common/AutoModel/modeling_qwen3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ NonStreamResult Qwen3::parse_nstream_content(const std::string response_text) {
size_t brace_end = json_str.rfind("}"); // Find the last closing brace

if (brace_start != std::string::npos && brace_end != std::string::npos && brace_end > brace_start) {
arguments = json_str.substr(brace_start, brace_end - brace_start);
arguments = json_str.substr(brace_start, brace_end - brace_start + 1);
Comment thread
AshtonVaughan marked this conversation as resolved.
}
}

Expand Down Expand Up @@ -293,7 +293,7 @@ NonStreamResult Qwen3_IT::parse_nstream_content(const std::string response_text)
size_t brace_end = json_str.rfind("}"); // Find the last closing brace

if (brace_start != std::string::npos && brace_end != std::string::npos && brace_end > brace_start) {
arguments = json_str.substr(brace_start, brace_end - brace_start);
arguments = json_str.substr(brace_start, brace_end - brace_start + 1);
Comment thread
AshtonVaughan marked this conversation as resolved.
}
}

Expand Down Expand Up @@ -497,7 +497,7 @@ NonStreamResult Qwen3_TK::parse_nstream_content(const std::string response_text)
size_t brace_end = json_str.rfind("}"); // Find the last closing brace

Comment thread
AshtonVaughan marked this conversation as resolved.
if (brace_start != std::string::npos && brace_end != std::string::npos && brace_end > brace_start) {
arguments = json_str.substr(brace_start, brace_end - brace_start);
arguments = json_str.substr(brace_start, brace_end - brace_start + 1);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/common/AutoModel/modeling_qwen3_5vl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ NonStreamResult Qwen3_5VL::parse_nstream_content(const std::string response_text
size_t brace_end = json_str.rfind("}"); // Find the last closing brace

if (brace_start != std::string::npos && brace_end != std::string::npos && brace_end > brace_start) {
arguments = json_str.substr(brace_start, brace_end - brace_start);
arguments = json_str.substr(brace_start, brace_end - brace_start + 1);
Comment thread
AshtonVaughan marked this conversation as resolved.
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/common/AutoModel/modeling_qwen3vl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ NonStreamResult Qwen3VL::parse_nstream_content(const std::string response_text)
size_t brace_end = json_str.rfind("}"); // Find the last closing brace

if (brace_start != std::string::npos && brace_end != std::string::npos && brace_end > brace_start) {
arguments = json_str.substr(brace_start, brace_end - brace_start);
arguments = json_str.substr(brace_start, brace_end - brace_start + 1);
Comment thread
AshtonVaughan marked this conversation as resolved.
}
}

Expand Down
Loading