llamash

command module
v0.0.0-...-5ac81a3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

README

llamash

RESTful API Bridge for Ollama.

Build and Run
$ go build .
$ ./llamash
Setup

Before starting the bridge server, you need a running Ollama server which the address is http://127.0.0.1:11434 in default.

$ podman run --network host ollama serve
$ ./llamash -p 11444 -i 'http://127.0.0.1:11434'
Enjoy it!
$ curl 'http://127.0.0.1:11444/generate?model=codellama&prompt=sayhi'

GET Form:

  • generate Generate content.
    • model The LLaMA model you gonna use.
    • prompt The content will send to the model.

Responds in pure text.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL