From 6aa541912babb6e41d25d5daf8efbe333bc5e6b4 Mon Sep 17 00:00:00 2001 From: sigoden Date: Thu, 1 Aug 2024 04:21:13 +0000 Subject: refactor: update Argcfile.sh --- Argcfile.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Argcfile.sh b/Argcfile.sh index 6cadc29..5ac1589 100755 --- a/Argcfile.sh +++ b/Argcfile.sh @@ -247,11 +247,12 @@ models-cohere() { } # @cmd Chat with ollama api +# @env OLLAMA_BASE_URL=http://127.0.0.1:11434 # @option -m --model=llama3.1:latest $OLLAMA_MODEL # @flag -S --no-stream # @arg text~ chat-ollama() { - _wrapper curl -i http://localhost:11434/api/chat \ + _wrapper curl -i $OLLAMA_BASE_URL/api/chat \ -X POST \ -H 'Content-Type: application/json' \ -d "$(_build_body ollama "$@")" -- cgit v1.2.3