diff --git a/finish.sh b/finish.sh index a082e1d..aa2e701 100644 --- a/finish.sh +++ b/finish.sh @@ -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 \e[0m"