Skip to content

Commit b46db6b

Browse files
committed
fix to use raspberrypi
1 parent fb6904f commit b46db6b

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

examples/server/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ endif()
1111

1212
# Find necessary packages
1313
find_package(CURL REQUIRED)
14-
find_package(OpenSSL REQUIRED)
14+
# find_package(OpenSSL REQUIRED)
1515

1616
if (CURL_FOUND)
1717
message(STATUS "Found CURL: ${CURL_LIBRARIES}")

examples/server/server.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3880,17 +3880,17 @@ static std::string process_prompt(const std::string &prompt, Translator &transla
38803880
std::vector<std::string> code_blocks;
38813881
std::string text_only = prompt;
38823882

3883-
// 정규식: ``` 코드 블록 또는 { }, ; 포함된 코드 줄 찾기
3884-
std::regex code_regex(R"((```[\s\S]*?```|(^.*[;{}=<>].*$)))", std::regex::multiline);
3885-
std::sregex_iterator iter(prompt.begin(), prompt.end(), code_regex);
3886-
std::sregex_iterator end;
3887-
3888-
while (iter != end)
3889-
{
3890-
code_blocks.push_back(iter->str()); // 코드 블록 저장
3891-
text_only = std::regex_replace(text_only, code_regex, "\n", std::regex_constants::format_first_only); // 코드 삭제, 줄 개행 유지
3892-
++iter;
3893-
}
3883+
// // 정규식: ``` 코드 블록 또는 { }, ; 포함된 코드 줄 찾기
3884+
// std::regex code_regex(R"((```[\s\S]*?```|(^.*[;{}=<>].*$)))", std::regex::multiline);
3885+
// std::sregex_iterator iter(prompt.begin(), prompt.end(), code_regex);
3886+
// std::sregex_iterator end;
3887+
3888+
// while (iter != end)
3889+
// {
3890+
// code_blocks.push_back(iter->str()); // 코드 블록 저장
3891+
// text_only = std::regex_replace(text_only, code_regex, "\n", std::regex_constants::format_first_only); // 코드 삭제, 줄 개행 유지
3892+
// ++iter;
3893+
// }
38943894

38953895
// 2. 한국어 텍스트만 번역 (코드 블록 제외)
38963896
std::string translated_text = translator.translate_korean_to_english(text_only);

0 commit comments

Comments
 (0)