Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

llama.cpp.client

c++ client of llama.cpp's llama-server

Usage

   int main() {
      // init
      LlamaClient client("127.0.0.1", 9001);

      // sync
      std::cout << client.Talk("Hello world!") << std::endl;

      // stream
      client.Talk("Nice to meet you!🥲", [](const str& rsp, bool last) { 
         std::cout << rsp << std::flush; 
      });

      return std::cin.get();
   }

Build with xmake

Have fun.

About

c++ client of llama.cpp's llama-server

Resources

Stars

0 stars

Watchers

1 watching

Forks

Contributors

Languages