typo fix
Some checks failed
Docker Build and Push / build-and-push (push) Has been cancelled
Tests / test (bash) (push) Has been cancelled
Tests / test (zsh) (push) Has been cancelled
Tests / lint (push) Has been cancelled
Tests / docker (push) Has been cancelled

This commit is contained in:
2025-12-02 10:05:01 +01:00
parent 0e1ea99c34
commit 7632722faa

View File

@@ -315,6 +315,7 @@ _get_default_completion_function() {
_default_completion() {
local current_word="" first_word="" default_func
endpoint=${ACSH_ENDPOINT:-"http://plato.lan:1234/v1/chat/completions"}
if [[ -n "${COMP_WORDS[*]}" ]]; then
first_word="${COMP_WORDS[0]}"
if [[ -n "$COMP_CWORD" && "$COMP_CWORD" -lt "${#COMP_WORDS[@]}" ]]; then
@@ -900,7 +901,8 @@ model_command() {
echo -e "Temperature:\t\e[90m$temperature\e[0m"
echo
echo -e "Cost/token:\t\e[90mprompt: \$$ACSH_API_PROMPT_COST, completion: \$$ACSH_API_COMPLETION_COST\e[0m"
echo -e "Endpoint:\t\e[90m$ACSH_ENDPOINT\e[0m"
endpoint=${ACSH_ENDPOINT:-"http://plato.lan:1234/v1/chat/completions"}
echo -e "Endpoint:\t\e[90m$endpoint\e[0m"
if [[ ${ACSH_PROVIDER^^} == "OLLAMA" || ${ACSH_PROVIDER^^} == "LMSTUDIO" ]]; then
echo "To set a custom endpoint:"
echo -e "\t\e[34mfinish config set endpoint <your-url>\e[0m"