No description
  • Python 94.3%
  • Shell 3%
  • Makefile 2.7%
Find a file
2024-02-16 22:22:09 +00:00
clients i may be stupid 2023-12-07 10:32:44 -05:00
.gitignore me when i logging 2023-11-14 14:36:48 -05:00
funkies.py me when i logging 2023-11-14 14:36:48 -05:00
Makefile me when i logging 2023-11-14 14:36:48 -05:00
openas-backend.service deployment stuff 2023-11-14 14:26:19 -05:00
README.md deployment stuff 2023-11-14 14:26:19 -05:00
renovate.json Add renovate.json 2024-02-16 17:14:46 -05:00
requirements-server.txt deployment stuff 2023-11-14 14:26:19 -05:00
run.sh deployment stuff 2023-11-14 14:26:19 -05:00
server.py convert to string 2023-11-14 16:28:53 -05:00
settings-example.toml email client 2023-12-07 10:14:47 -05:00

OpenAssistant

Deploy

  • python3 -m venv venv && ./venv/bin/pip install -r requirements-server.txt
  • cp settings-example.toml settings.toml
  • $EDITOR settings.toml
  • $EDITOR openas-backend.service
  • Profit

Request Spec

{
    "mysecret": "SOMETHING", // matching one of ws valid_tokens in settings.toml
    "thread_id": "SOME_STRING", // or 'NA' if new conversation
    "message": "STRING_FROM_USER", // what did user say
    "username": "john doe" // what call the user
}

Response Spec

{
    "response": "THING", // string response from OpenAI or error msg
    "thread_id": "STRING", // prev. thread ID or new ID if request was 'NA'
    "username": "STRING" // echos value of request
}

Suggestion

If you're testing server and one or more clients on the same machine, just ln -s settings.toml ../settings.toml