From 778188ed95ccf50d2e21938bf5b542d76e066f63 Mon Sep 17 00:00:00 2001 From: ben Date: Sun, 12 Jan 2025 14:37:13 +0100 Subject: Initial commit, first public version. --- src/aichat/Dockerfile | 7 +++++++ src/aichat/config.yaml | 8 ++++++++ 2 files changed, 15 insertions(+) create mode 100644 src/aichat/Dockerfile create mode 100644 src/aichat/config.yaml (limited to 'src/aichat') diff --git a/src/aichat/Dockerfile b/src/aichat/Dockerfile new file mode 100644 index 0000000..df13f63 --- /dev/null +++ b/src/aichat/Dockerfile @@ -0,0 +1,7 @@ +FROM rust:latest + +RUN rustup target add x86_64-unknown-linux-musl +RUN apt update && apt install -y musl-tools musl-dev +RUN update-ca-certificates + +RUN cargo install --target x86_64-unknown-linux-musl aichat diff --git a/src/aichat/config.yaml b/src/aichat/config.yaml new file mode 100644 index 0000000..a74af2c --- /dev/null +++ b/src/aichat/config.yaml @@ -0,0 +1,8 @@ +# see https://github.com/sigoden/aichat/blob/main/config.example.yaml + +model: ollama +clients: +- type: openai-compatible + name: ollama + api_base: http://localhost:11434/v1 + api_key: __LLM_API_KEY__ -- cgit v1.2.3