aienvoy

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

README

Admin

user: admin@admin.com pass: adminadmin

test_user@admin.com test_usertest_user

API

Chat

PATH: /v1/chat/completions

PAYLOAD: { "model": "", "messages": [{}] }

Embedding

PATH: /v1/embeddings

PAYLOAD: { "model": "text-embedding-ada-002", "input": "" }

Deployment

Systemd

  1. add user to limit privileges sudo useradd -s /sbin/nologin -M odb
  2. Copy systemd unit service file
    sudo cp ./deployments/odb.service /etc/systemd/system/
    sudo chmod 755 /lib/systemd/system/odb.service
    sudo systemctl daemon-reload
    sudo systemctl enable odb.service
    sudo systemctl start odb
    # tail logs
    sudo journalctl -f -u odb
    

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
examples
llm
internal
pkg
hackernews
hackernews package contains the logic to fetch the top stories from hackernews https://github.com/HackerNews/API
hackernews package contains the logic to fetch the top stories from hackernews https://github.com/HackerNews/API
llm

Jump to

Keyboard shortcuts

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