/.../src/FrameMain.cpp: In member function ‘virtual void FrameMain::OnUpdateModelListClick(wxCommandEvent&)’:
/.../src/FrameMain.cpp:147:83: error: ‘host’ was not declared in this scope
147 | wxLogDebug("Sending HTTP GET - Host: %s Request: /api/tags.", std::string(host.mb_str()));
| ^~~~
/.../src/FrameMain.cpp:149:60: error: ‘host’ was not declared in this scope
149 | std::string response = network.HTTPGet(std::string(host.mb_str()), "/api/tags");
| ^~~~
/.../src/FrameMain.cpp: In member function ‘virtual void FrameMain::OnRunModelClick(wxCommandEvent&)’:
/.../src/FrameMain.cpp:193:63: error: ‘host’ was not declared in this scope
193 | DialogModelDownload dialogModelDownload(this, host, modelName);
| ^~~~
/.../src/FrameMain.cpp:219:28: error: ‘keepAliveMinutes’ was not declared in this scope
219 | {"keep_alive", keepAliveMinutes > 0 ? (std::to_string(keepAliveMinutes) + "m") : std::to_string(keepAliveMinutes)}
| ^~~~~~~~~~~~~~~~
/.../src/FrameMain.cpp:220:9: error: could not convert ‘{{"model", std::__cxx11::basic_string(wxString::mb_str(const wxMBConv&) const(((const wxMBConv)(& wxGet_wxConvLibc()))).wxScopedCharTypeBuffer::operator const CharType*(), std::allocator())}, {"stream", false}, {"keep_alive", }}’ from ‘’ to ‘nlohmann::json_abi_v3_11_3::json’ {aka ‘nlohmann::json_abi_v3_11_3::basic_json<>’}
220 | };
| ^
| |
|
/.../src/FrameMain.cpp:226:102: error: ‘host’ was not declared in this scope
226 | wxLogDebug("Sending HTTP POST - Host: %s Request: /api/generate Model: %s.", std::string(host.mb_str()), std::string(modelName.mb_str()));
| ^~~~
/.../src/FrameMain.cpp:228:65: error: ‘host’ was not declared in this scope
228 | std::string response = network.HTTPPost(std::string(host.mb_str()), "/api/generate", requestPayload.dump(), "application/json");
| ^~~~
/.../src/FrameMain.cpp: In member function ‘virtual void FrameMain::OnShowInfoModelClick(wxCommandEvent&)’:
/.../src/FrameMain.cpp:262:61: error: ‘host’ was not declared in this scope
262 | DialogModelInformation dialogModelInformation(this, host, modelName);
| ^~~~
/.../src/FrameMain.cpp: In member function ‘virtual void FrameMain::OnDeleteModelClick(wxCommandEvent&)’:
/.../src/FrameMain.cpp:309:106: error: ‘host’ was not declared in this scope
309 | wxLogDebug("Sending HTTP DELETE - Host: %s Request: /api/delete Model: %s.", std::string(host.mb_str()), std::string(modelName.mb_str()));
| ^~~~
/.../src/FrameMain.cpp:312:48: error: ‘host’ was not declared in this scope
312 | network.HTTPDelete(std::string(host.mb_str()), "/api/delete", requestPayload.dump(), "application/json");
| ^~~~
/.../src/FrameMain.cpp: In member function ‘void FrameMain::LoadServerSettings()’:
/.../src/FrameMain.cpp:580:9: error: ‘CheckFileExists’ was not declared in this scope; did you mean ‘FileUtils::CheckFileExists’?
580 | if (CheckFileExists(configPath))
| ^~~~~~~~~~~~~~~
| FileUtils::CheckFileExists
In file included from /.../src/FrameMain.cpp:34:
include/FileUtils.h:34:10: note: ‘FileUtils::CheckFileExists’ declared here
34 | bool CheckFileExists(const wxString& path);
| ^~~~~~~~~~~~~~~
/.../src/FrameMain.cpp:582:28: error: ‘filePath’ was not declared in this scope
582 | std::ifstream file(filePath.ToUTF8().data());
| ^~~~~~~~
/.../src/FrameMain.cpp: In member function ‘void FrameMain::StartOllamaServer()’:
/.../src/FrameMain.cpp:608:39: error: ‘path’ was not declared in this scope; did you mean ‘std::filesystem::__cxx11::path’?
608 | if(FileUtils::CheckFileExists(path))
| ^~~~
| std::filesystem::__cxx11::path
In file included from /usr/include/c++/13/filesystem:49,
from include/nlohmann/detail/meta/std_fs.hpp:22,
from include/nlohmann/detail/conversions/from_json.hpp:27,
from include/nlohmann/adl_serializer.hpp:14,
from include/nlohmann/json.hpp:34,
from include/Chat.h:38,
from include/FrameMain.h:34,
from /.../src/FrameMain.cpp:25:
/usr/include/c++/13/bits/fs_path.h:293:9: note: ‘std::filesystem::__cxx11::path’ declared here
293 | class path
| ^~~~
/.../src/FrameMain.cpp: In member function ‘void FrameMain::InitializeModelParams()’:
/.../src/FrameMain.cpp:703:98: error: ‘host’ was not declared in this scope
703 | wxLogDebug("Sending HTTP POST - Host: %s Request: /api/show Model: %s.", std::string(host.mb_str()), std::string(loadedModel.mb_str()));
| ^~~~
/.../src/FrameMain.cpp:705:65: error: ‘host’ was not declared in this scope
705 | std::string response = network.HTTPPost(std::string(host.mb_str()), "/api/show", requestPayload.dump(), "application/json");
| ^~~~
/.../src/FrameMain.cpp: In member function ‘void FrameMain::StartChat()’:
/.../src/FrameMain.cpp:740:21: error: ‘host’ was not declared in this scope
740 | chat = new Chat(host, bcomboBoxModel->GetStringSelection(), keepAliveMinutes, timeoutSeconds, streaming, richTextChatBox, modelParams);
| ^~~~
/.../src/FrameMain.cpp:740:65: error: ‘keepAliveMinutes’ was not declared in this scope
740 | chat = new Chat(host, bcomboBoxModel->GetStringSelection(), keepAliveMinutes, timeoutSeconds, streaming, richTextChatBox, modelParams);
| ^~~~~~~~~~~~~~~~
/.../src/FrameMain.cpp:740:83: error: ‘timeoutSeconds’ was not declared in this scope
740 | chat = new Chat(host, bcomboBoxModel->GetStringSelection(), keepAliveMinutes, timeoutSeconds, streaming, richTextChatBox, modelParams);
| ^~~~~~~~~~~~~~
/.../src/FrameMain.cpp:740:99: error: ‘streaming’ was not declared in this scope
740 | chat = new Chat(host, bcomboBoxModel->GetStringSelection(), keepAliveMinutes, timeoutSeconds, streaming, richTextChatBox, modelParams);
| ^~~~~~~~~
/.../src/FrameMain.cpp: In member function ‘void FrameMain::CloseConversation()’:
/.../src/FrameMain.cpp:756:98: error: ‘host’ was not declared in this scope
756 | wxLogDebug("Sending HTTP POST - Host: %s Request: /api/generate Model: %s.", std::string(host.mb_str()), std::string(loadedModel.mb_str()));
| ^~~~
/.../src/FrameMain.cpp:758:61: error: ‘host’ was not declared in this scope
758 | std::string response = network.HTTPPost(std::string(host.mb_str()), "/api/generate", requestPayload.dump(), "application/json");
| ^~~~
Process terminated with status 1 (0 minute(s), 5 second(s))
39 error(s), 0 warning(s) (0 minute(s), 5 second(s))