|
ReUseX
0.0.5
3D Point Cloud Processing for Building Reuse
|
#include <OpenAiCompatibleVlmClient.hpp>


Public Member Functions | |
| OpenAiCompatibleVlmClient (std::string base_url, std::string model, std::string api_key, int connect_timeout_s=10, int total_timeout_s=120) | |
| VlmResult | describe (const cv::Mat &crop, const std::string &prompt) override |
Describe crop (a BGR CV_8UC3 image) given prompt. | |
| int | connect_timeout_s () const |
| int | total_timeout_s () const |
| Public Member Functions inherited from reusex::vision::IVlmClient | |
| virtual | ~IVlmClient ()=default |
Definition at line 16 of file OpenAiCompatibleVlmClient.hpp.
| reusex::vision::OpenAiCompatibleVlmClient::OpenAiCompatibleVlmClient | ( | std::string | base_url, |
| std::string | model, | ||
| std::string | api_key, | ||
| int | connect_timeout_s = 10, | ||
| int | total_timeout_s = 120 ) |
| base_url | e.g. "http://localhost:11434/v1" (the "/chat/completions" suffix is appended if absent). |
| model | Model name. |
| api_key | Optional bearer token; empty disables the header. |
| connect_timeout_s | CURLOPT_CONNECTTIMEOUT value in seconds (0 = no limit). Required for multithreaded programs to avoid blocking forever on a hung endpoint. |
| total_timeout_s | CURLOPT_TIMEOUT value in seconds (0 = no limit). |
References connect_timeout_s(), and total_timeout_s().
|
inline |
Definition at line 33 of file OpenAiCompatibleVlmClient.hpp.
Referenced by OpenAiCompatibleVlmClient().
|
overridevirtual |
Describe crop (a BGR CV_8UC3 image) given prompt.
Implements reusex::vision::IVlmClient.
|
inline |
Definition at line 34 of file OpenAiCompatibleVlmClient.hpp.
Referenced by OpenAiCompatibleVlmClient().