Expose OpenAI API compatibility using aichat

This commit is contained in:
ben
2025-02-01 13:54:25 +01:00
parent 01f224002e
commit cf09067c15
5 changed files with 47 additions and 5 deletions

4
src/aichat/entrypoint.sh Normal file
View File

@@ -0,0 +1,4 @@
#!/bin/sh
mkdir -p ~/.config/aichat
cat /aichat_config_tpl.yaml | sed "s/__LLM_API_KEY__/${LLM_API_KEY}/" | sed "s/localhost/ollama/" >~/.config/aichat/config.yaml
aichat --serve 0.0.0.0