feat: Add reported context offset functionality and update related configurations

This commit is contained in:
extio-de
2026-05-15 22:37:57 +02:00
parent b5a98f5f27
commit 721986106c
6 changed files with 100 additions and 12 deletions

View File

@@ -20,4 +20,12 @@ if [[ -n "${OLLAMA_OAI_BRIDGE_OPTS:-}" ]]; then
read -r -a app_opts <<<"${OLLAMA_OAI_BRIDGE_OPTS}"
fi
exec java "${java_opts[@]}" "${app_opts[@]}" -jar "$jar_file" "$@"
for arg in "$@"; do
if [[ "$arg" == -D* ]]; then
java_opts+=("$arg")
else
app_opts+=("$arg")
fi
done
exec java "${java_opts[@]}" -jar "$jar_file" "${app_opts[@]}"