diff --git a/lib/jeannie/commands.sh b/lib/jeannie/commands.sh index b397861..60c4a35 100644 --- a/lib/jeannie/commands.sh +++ b/lib/jeannie/commands.sh @@ -2138,6 +2138,12 @@ EOF holmes_model="${LAB_HOLMES_MODEL:-${AI_STACK_AGENT_SMART_MODEL:-${holmes_model}}}" holmes_fast_model="${LAB_HOLMES_FAST_MODEL:-${AI_STACK_AGENT_FAST_MODEL:-${holmes_fast_model}}}" fi + if [[ "${holmes_model}" != */* ]]; then + holmes_model="openai/${holmes_model}" + fi + if [[ "${holmes_fast_model}" != */* ]]; then + holmes_fast_model="openai/${holmes_fast_model}" + fi if [[ ! -r "${holmes_config}" ]]; then printf '{}\n' >"${artifact_dir}/holmes-empty-config.yaml" holmes_config="${artifact_dir}/holmes-empty-config.yaml" @@ -2217,7 +2223,7 @@ EOF set -e elif [[ -n "${holmes_bin}" ]]; then set +e - timeout "${holmes_timeout}" env KUBECONFIG="${kubeconfig}" OPENAI_BASE_URL="${OPENAI_BASE_URL:-http://127.0.0.1:20128/v1}" OPENAI_API_KEY="${holmes_api_key}" \ + timeout "${holmes_timeout}" env KUBECONFIG="${kubeconfig}" OPENAI_BASE_URL="${OPENAI_BASE_URL:-http://127.0.0.1:20128/v1}" OPENAI_API_BASE="${OPENAI_API_BASE:-${OPENAI_BASE_URL:-http://127.0.0.1:20128/v1}}" OPENAI_API_KEY="${holmes_api_key}" \ "${holmes_bin}" ask \ --config "${holmes_config}" \ --prompt-file "${prompt_file}" \ diff --git a/lib/jeannie/pipeline.sh b/lib/jeannie/pipeline.sh index d14eb9d..a95e6e7 100644 --- a/lib/jeannie/pipeline.sh +++ b/lib/jeannie/pipeline.sh @@ -5468,6 +5468,7 @@ deploy_ai_tools() { sudo tee "${tools_env_file}" >/dev/null <