Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 8725f38

Browse files
committed
feat: add support for 'qwen' in parameter conversion
The condition was updated to include 'qwen' in the check for triggering specific parameters ('--temp', '--top-p', etc.), aligning it with the existing 'jan' and 'nano' validation logic. This allows the same parameter configuration to apply to 'qwen' models as well as the original keywords.
1 parent 87ad9bc commit 8725f38

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

engine/extensions/local-engine/local_engine.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "local_engine.h"
22
#include <algorithm>
33
#include <random>
4+
#include <string>
45
#include <thread>
56
#include <string.h>
67
#include <unordered_set>
@@ -63,7 +64,7 @@ std::vector<std::string> ConvertJsonToParamsVector(const Json::Value& root) {
6364
std::transform(lowered.begin(), lowered.end(), lowered.begin(), [](unsigned char c) {
6465
return std::tolower(c);
6566
});
66-
if (lowered.find("jan") != std::string::npos && lowered.find("nano") != std::string::npos) {
67+
if ((lowered.find("jan") != std::string::npos && lowered.find("nano") != std::string::npos) || lowered.find("qwen") != std::string::npos) {
6768
res.push_back("--temp");
6869
res.push_back("0.7");
6970
res.push_back("--top-p");

0 commit comments

Comments
 (0)