- Enable response_format (json_object) for all providers including Kilo/OpenRouter - Skip reasoning_effort for Kilo/OpenRouter (returns 400 — mandatory reasoning) - Add structured_outputs fallback: retry once without response_format if upstream provider (e.g. StepFun) rejects it with 'structured_outputs is not supported' - Handle model refusal field (refusal) instead of treating as empty content - Fix None-handling guards for message/finish_reason/content fields - Apply same fixes to both preview.py and executor.py _call_openai_compatible - Connect orphaned TermCorrectionPopup, BulkReplaceModal, BulkCorrectionSidebar
23 lines
621 B
Bash
Executable File
23 lines
621 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# [DEF:BuildOfflineDockerBundle:Module]
|
|
# @PURPOSE: Thin wrapper — delegates to ./build.sh bundle
|
|
# @COMPLEXITY: 1
|
|
# @RATIONALE: Unified into build.sh to avoid confusion; kept for backward compat.
|
|
# [/DEF:BuildOfflineDockerBundle:Module]
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
PROJECT_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
|
|
|
|
TAG="${1:-}"
|
|
|
|
if [[ -z "$TAG" ]]; then
|
|
echo "Usage: $0 <tag>"
|
|
echo "Delegates to: ./build.sh bundle <tag>"
|
|
exit 1
|
|
fi
|
|
|
|
echo "[offline-bundle] Delegating to ./build.sh bundle $TAG..."
|
|
exec "${PROJECT_ROOT}/build.sh" bundle "$TAG"
|