Skip to content

feat(hindsight): route LLM via ChatGPT subscription, qwen fallback - #79

Merged
salekseev merged 1 commit into
masterfrom
feat/hindsight-chatgpt-provider
Jun 10, 2026
Merged

feat(hindsight): route LLM via ChatGPT subscription, qwen fallback#79
salekseev merged 1 commit into
masterfrom
feat/hindsight-chatgpt-provider

Conversation

@salekseev

Copy link
Copy Markdown
Owner

Why

qwen3.6-35b backend erroring/timing out on Hindsight retain/recall. ChatGPT Business subscription now available — route through litellm's native chatgpt/ provider (Codex OAuth) with qwen as fallback.

Changes

Model choice: chatgpt/gpt-5.4-mini — highest Business quota (60–350 msgs/5h), sized for extraction workloads. gpt-5.5-instant rejected by Codex backend for ChatGPT-account auth.

Host steps before deploy (config outside repo)

  1. mkdir /mnt/spool/apps/config/hindsight/litellm/chatgpt-tokens && chown 568:568 it
  2. /mnt/spool/apps/config/hindsight/litellm/config.yaml: add hindsight-defaultchatgpt/gpt-5.4-mini to model_list; add router_settings: fallbacks: [{hindsight-default: ["qwen3.6-35b-think-general"]}]
  3. Deploy, send one request through litellm, complete device-code login from docker logs -f hindsight-litellm within 15 min

Verification

🤖 Generated with Claude Code

qwen3.6-35b backend errors/timeouts on retain/recall. Point hindsight
at litellm alias `hindsight-default` -> chatgpt/gpt-5.4-mini (native
chatgpt/ provider, Codex OAuth device flow) falling back to qwen.

- bump litellm to v1.88.1 for chatgpt responses-bridge fixes (#26219)
- mount writable /chatgpt-tokens, set CHATGPT_TOKEN_DIR; auth.json is
  rewritten on token refresh

Host steps required before deploy:
- mkdir /mnt/spool/apps/config/hindsight/litellm/chatgpt-tokens,
  chown 568:568
- litellm config.yaml: add `hindsight-default` model alias and
  router_settings fallback to qwen3.6-35b-think-general
- first chatgpt/ request prints device-code login URL to container
  logs; complete in browser within 15 min

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@salekseev
salekseev merged commit 82e486a into master Jun 10, 2026
2 checks passed
@salekseev
salekseev deleted the feat/hindsight-chatgpt-provider branch June 10, 2026 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant