From cf09067c156b581db6cde07728cce849b7a971e3 Mon Sep 17 00:00:00 2001 From: ben Date: Sat, 1 Feb 2025 13:54:25 +0100 Subject: Expose OpenAI API compatibility using aichat --- src/aichat/entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/aichat/entrypoint.sh (limited to 'src/aichat/entrypoint.sh') 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 -- cgit v1.2.3