CJACK.
85e256ad4d
Merge pull request #375 from CJackHwang/codex/investigate-data-loss-issue-in-pr-369
...
sse/parser: treat object-shaped `v` as visible content, preserve INCOMPLETE across omitted status; add tests and samples
2026-04-30 02:14:26 +08:00
CJACK.
7c3ff6ee7e
Merge pull request #374 from shern-point/feat/full-context-file-token-accounting
...
Feat/full context file token accounting
2026-04-30 02:12:55 +08:00
CJACK.
63e62fd1b0
Merge pull request #372 from shern-point/feat/accurate-context-token-length
...
Feat/accurate context token length
2026-04-30 02:11:32 +08:00
CJACK.
483d7af3d2
Merge pull request #373 from NgoQuocViet2001/ai/ds2api-small-regression-fix
...
fix(openai): return 400 for inline file limit
2026-04-30 02:08:22 +08:00
CJACK.
0f89823526
chore(sse): bump client version and refresh longtext stream fixtures
2026-04-30 02:05:45 +08:00
shern-point
6a778e0d35
feat: include inline-uploaded file tokens in context token accounting
...
Track byte sizes of inline-uploaded files during PreprocessInlineFileInputs and convert them to conservative token estimates (bytes/3). RefFileTokens is threaded through StandardRequest into all OpenAI chat/responses usage builders so returned prompt_tokens/input_tokens reflect the full upstream context cost including attached files.
2026-04-30 01:42:51 +08:00
NgoQuocViet2001
9035c350a7
fix(openai): return 400 for inline file limit
2026-04-30 00:35:59 +07:00
shern-point
ba80052a26
fix: count uploaded file content in context token accounting
...
PromptTokenText now reflects the actual downstream context cost: the uploaded IGNORE.txt file content plus the neutral live prompt, instead of only the pre-split prompt text.
2026-04-30 01:12:35 +08:00
shern-point
78fdd63470
feat: add full-context token regression coverage and docs
...
Lock in the current_input_file regression with API-level tests and document that returned context token counts now track full prompt semantics with conservative sizing.
2026-04-30 00:46:06 +08:00
shern-point
4b4f097006
feat: use model-aware prompt counting in Gemini paths
...
Preserve Gemini prompt token text during normalization and remove the hardcoded DeepSeek model from native Gemini usage helpers.
2026-04-30 00:46:05 +08:00
shern-point
d3018c281b
feat: use tokenizer-based counting in Claude token paths
...
Unify Claude count_tokens, legacy stream accounting, and legacy render usage with preserved prompt text so Claude stops falling back to lossy message formatting.
2026-04-30 00:46:04 +08:00
shern-point
415a2359ad
feat: route OpenAI responses usage through preserved prompt text
...
Use the stored full-context prompt text for responses accounting so neutral placeholder prompts do not underreport returned input token counts.
2026-04-30 00:45:31 +08:00
shern-point
f702d45a24
feat: route OpenAI chat usage through preserved prompt text
...
Use the stored full-context prompt text for chat non-stream, stream, and retry accounting so current_input_file no longer shrinks returned prompt token counts.
2026-04-30 00:45:30 +08:00
shern-point
90817cb9e2
feat: apply tokenizer-based counting in OpenAI usage builders
...
Move OpenAI chat and responses usage accounting onto the shared tokenizer-aware counters so prompt and output usage stay model-aware and conservatively sized.
2026-04-30 00:45:29 +08:00
shern-point
b96f736bd2
feat: preserve full prompt text across current_input_file rewrites
...
Keep token accounting tied to the original prompt even after the live prompt is replaced with a neutral placeholder and hidden context file.
2026-04-30 00:45:01 +08:00
shern-point
8ab028c52a
feat: seed PromptTokenText during request normalization
...
Capture the fully built prompt at normalization time for OpenAI and Gemini-compatible requests so usage paths can reuse the original context text.
2026-04-30 00:44:59 +08:00
shern-point
78366afec5
feat: add PromptTokenText to StandardRequest
...
Track a dedicated prompt string for token accounting so later prompt rewrites can keep returning full-context counts.
2026-04-30 00:44:57 +08:00
shern-point
bd41c8a90c
feat: add tokenizer-based token counting utilities
...
Use go-tiktoken with embedded vocabularies for accurate BPE token counting. CountPromptTokens applies conservative padding so returned context token counts stay slightly above the real value instead of undercounting.
2026-04-30 00:44:11 +08:00
CJACK.
bc2a78ae29
Merge pull request #370 from CJackHwang/codex/align-vercel-behavior-with-go
...
fix(vercel): align JS stream parser with Go object-shaped content
2026-04-30 00:12:32 +08:00
CJACK.
192cdf8562
fix(vercel): align JS stream parser with Go object-shaped content
2026-04-29 23:56:16 +08:00
CJACK.
273c18ba0f
fix: fallback to /app config when /data is unavailable
2026-04-29 23:40:07 +08:00
CJACK.
ae28e33184
fix: preserve continue state when chunk status is missing
2026-04-29 23:25:18 +08:00
CJACK.
0438ce9a12
Merge pull request #368 from CJackHwang/codex/fix-review-issues-for-pr-#364
...
Restore thinking fallback for tool-call detection and drop history.txt wrapper tags
2026-04-29 23:07:36 +08:00
CJACK.
af4a067dab
Merge pull request #362 from CJackHwang/codex/fix-issue-based-on-feedback
...
fix(sse): batch tiny stream chunks before emitting
2026-04-29 23:07:03 +08:00
CJACK.
33f6fef015
Fix tool-call fallback on sanitized empty text and remove history wrapper tags
2026-04-29 23:04:45 +08:00
CJACK.
6d3979a1d6
fix(sse): stop scanner sender when stream context cancels
2026-04-29 22:59:22 +08:00
CJACK.
c8922c7a88
Merge pull request #364 from adnxx1wsx/dev
...
Fix stream compatibility and vision model exposure
2026-04-29 22:02:19 +08:00
MiY
241334c658
Fix stream compatibility and vision model exposure
2026-04-29 20:23:13 +08:00
CJACK.
d7e071b24a
Bump version from 4.1.3 to 4.2.0
2026-04-29 19:08:57 +08:00
CJACK.
89225c778e
fix(sse): batch tiny stream chunks before emitting
2026-04-29 18:58:54 +08:00
CJACK.
22160de2c4
Merge pull request #359 from NgoQuocViet2001/ai/ds2api-small-fix
...
fix(openai): keep citation indexes one-based with zero-based references
2026-04-29 18:27:15 +08:00
NgoQuocViet2001
0cbc2c875d
fix(openai): keep citation indexes one-based
2026-04-29 15:43:09 +07:00
CJACK.
a0984ef682
Merge pull request #358 from CJackHwang/revert-356-codex/check-version-update-in-automation-scripts
...
Revert "Verify GHCR latest tag matches release and show version source/latest in dashboard"
v4.1.3_beta2
2026-04-29 14:49:41 +08:00
CJACK.
babfa973d6
Revert "Verify GHCR latest tag matches release and show version source/latest in dashboard"
2026-04-29 14:47:53 +08:00
CJACK.
ba4071d8b5
Merge pull request #357 from CJackHwang/codex/update-documentation-for-config.json-permissions
...
Return config persistence warning when config path is read-only; default container config to /data/config.json and update docs
2026-04-29 14:18:25 +08:00
CJACK.
e1f8e493d2
fix: add legacy /app/config.json fallback for container upgrades
2026-04-29 14:12:20 +08:00
CJACK.
907104a735
Merge pull request #356 from CJackHwang/codex/check-version-update-in-automation-scripts
...
Verify GHCR latest tag matches release and show version source/latest in dashboard
2026-04-29 13:53:42 +08:00
CJACK.
2c8409dcbb
fix docker defaults to writable /data config path and align docs
2026-04-29 13:46:22 +08:00
CJACK.
5c23261932
webui: show version source and latest release tag in sidebar
2026-04-29 13:45:33 +08:00
CJACK.
d7125ea106
Bump version from 4.1.2 to 4.1.3
v4.1.3_beta
2026-04-29 07:55:48 +08:00
CJACK.
929d9a8ef7
Merge pull request #352 from shern-point/fix/tool-string-schema-protection
...
Fix/tool type schema protection
2026-04-29 07:51:21 +08:00
CJACK.
c03f733b83
Merge pull request #353 from Gingiris/docs/add-toc
...
docs: add Table of Contents to README.MD and README.en.md
2026-04-29 07:50:54 +08:00
Gingiris
047fc9bee2
docs: add Table of Contents to README.MD and README.en.md
...
Both READMEs are 400+ lines with 14 top-level sections and multiple
subsections but have no navigation aid. Add a Table of Contents at the
top of each file to help readers quickly find relevant sections.
Changes:
- README.MD: add 目录 section with links to all h2/h3 headings
- README.en.md: add Table of Contents with matching structure
2026-04-28 12:18:37 -07:00
shern-point
52558838ef
docs: document request-scoped tool schema authority
2026-04-29 02:00:20 +08:00
shern-point
f1926a6ced
fix: normalize Vercel stream tool arguments by schema
2026-04-29 02:00:01 +08:00
shern-point
6e21714e23
test: cover Claude schema-aware tool normalization
2026-04-29 01:59:42 +08:00
shern-point
48c4f0df9f
fix: preserve runtime tool schemas in Claude tool output
2026-04-29 01:59:24 +08:00
shern-point
a550de30af
fix: expand shared tool schema extraction
2026-04-29 01:59:05 +08:00
CJACK.
23422e4a8e
Merge pull request #350 from ouqiting/fix_chat_histroy
...
feat: parse split context files in list view
2026-04-29 01:34:10 +08:00
CJACK.
9c33bed403
Merge pull request #349 from RinZ27/fix-docker-non-root
...
build: improve Docker robustness and fix potential security issues
2026-04-29 01:34:00 +08:00