diff options
author | ben | 2025-02-01 13:54:25 +0100 |
---|---|---|
committer | ben | 2025-02-01 13:54:25 +0100 |
commit | cf09067c156b581db6cde07728cce849b7a971e3 (patch) | |
tree | ee75be9ba6bffc4f923b87c327c6b401f5634037 /src/aichat/entrypoint.sh | |
parent | 01f224002e91e9ba8c567dbfb20a364f13327842 (diff) | |
download | ai_env-cf09067c156b581db6cde07728cce849b7a971e3.tar.gz ai_env-cf09067c156b581db6cde07728cce849b7a971e3.tar.bz2 ai_env-cf09067c156b581db6cde07728cce849b7a971e3.tar.xz |
Expose OpenAI API compatibility using aichat
Diffstat (limited to 'src/aichat/entrypoint.sh')
-rw-r--r-- | src/aichat/entrypoint.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/aichat/entrypoint.sh b/src/aichat/entrypoint.sh new file mode 100644 index 0000000..ec4f040 --- /dev/null +++ b/src/aichat/entrypoint.sh @@ -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 |