YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
Utils.h File Reference
#include <string>
#include <iostream>
#include "json.hpp"
#include <curl/curl.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/prctl.h>
#include <signal.h>
#include <cstdlib>
#include <cstring>
+ Include dependency graph for Utils.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

using json = nlohmann::json
 

Functions

void startLlama2Server (const std::string &model_path, int m_context, int m_gpulayers)
 
std::string extractContent (const std::string &jsonResponse)
 
size_t WriteCallback (void *contents, size_t size, size_t nmemb, void *userp)
 
std::string sendPostRequest (const std::string &jsonData)
 

Typedef Documentation

◆ json

using json = nlohmann::json

Definition at line 15 of file Utils.h.

Function Documentation

◆ extractContent()

std::string extractContent ( const std::string &  jsonResponse)

Definition at line 3 of file Utils.cpp.

◆ sendPostRequest()

std::string sendPostRequest ( const std::string &  jsonData)

Definition at line 18 of file Utils.cpp.

◆ startLlama2Server()

void startLlama2Server ( const std::string &  model_path,
int  m_context,
int  m_gpulayers 
)

Definition at line 61 of file Utils.cpp.

◆ WriteCallback()

size_t WriteCallback ( void *  contents,
size_t  size,
size_t  nmemb,
void *  userp 
)

Definition at line 13 of file Utils.cpp.