Expose OpenAI API compatibility using aichat
This commit is contained in:
4
src/aichat/entrypoint.sh
Normal file
4
src/aichat/entrypoint.sh
Normal 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
|
||||
Reference in New Issue
Block a user