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
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
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
458e4469e5
test: cover openai formatter string protection
...
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent )
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai >
2026-04-28 13:47:24 +08:00
shern-point
b9c8e90d98
refactor: thread tool schemas through responses tool outputs
...
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent )
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai >
2026-04-28 13:46:06 +08:00
shern-point
801b5abce3
refactor: thread tool schemas through chat tool outputs
...
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent )
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai >
2026-04-28 13:38:57 +08:00
CJACK
40d5e3ebb5
测试DSML
2026-04-27 00:21:26 +08:00
MiY
a505f2cb96
fix: fallback tool calls from thinking on empty output
2026-04-26 17:45:12 +08:00
CJACK
1b0e8cbadb
Tighten XML tool call parsing and upstream empty handling
2026-04-26 01:17:16 +08:00
CJACK
0c644d1f4d
refactor: remove legacy function call support and simplify tool sieve logic
2026-04-19 04:38:48 +08:00
CJACK.
a8c160b05d
fix: parse DeepSeek accumulated_token_usage robustly and stabilize lint
2026-04-06 11:14:48 +08:00
CJACK
1530246e4f
refactor: move tool call parsing and formatting logic to a dedicated internal/toolcall package
2026-04-06 03:19:18 +08:00
CJACK.
1676c8e4f2
Add backward-compatible aliases for renamed fenced-example tests
2026-03-22 16:25:03 +08:00
CJACK.
fb5fc0e885
Default to aggressive tool-call interception in mixed/fenced text
2026-03-20 02:03:46 +08:00
CJACK.
20b603666d
Allow standalone parser to detect mixed prose tool JSON
2026-03-20 02:03:32 +08:00
huangxun
c9c59f2490
refactor(toolcall): enhance tool call extraction with multiple keywords and safety limits
...
- Add support for multiple keywords: tool_calls, function.name:, [tool_call_history]
- Add OOM protection with search limits in extractToolCallObjects
- Add max scan length limit in extractJSONObject to prevent OOM on unclosed objects
- Update tool_sieve to handle more tool call patterns
- Add loose JSON repair in parseToolCallPayload for better error recovery
This improves DeepSeek tool call parsing robustness.
2026-03-17 16:28:27 +08:00
CJACK.
1fafd25e86
add output_text.done event and remove transient stability report
2026-03-07 16:00:53 +08:00
CJACK
d84875e466
工具调用优化
2026-03-01 06:33:49 +08:00
BigUncle
d3b5493d2e
fix(claude): guard thinking tool-call fallback when final text exists
...
- only parse tool_calls from thinking when finalText is empty
- apply the same guard in stream runtime finalizer
- add regression tests for non-stream and stream paths
2026-02-26 00:41:39 +08:00
BigUncle
255feb2e65
fix(claude): 修复工具调用兼容与解析回退
...
- Claude 工具定义兼容 input_schema 与 function.parameters
- tool_calls 解析增加 thinking 回退与大小写无关工具名匹配
- 补充 claude/util 相关回归测试
2026-02-25 18:03:25 +08:00
CJACK
a9403c5392
feat: add Gemini API compatibility, refactor stream rendering, and enhance tool call handling and configuration options
2026-02-22 20:53:42 +08:00
CJACK
ae7dce0b32
feat: Improve OpenAI tool call handling by passing unknown tool calls as content and filtering streamed tool calls by schema.
2026-02-22 19:33:52 +08:00
CJACK
6c48429b90
feat: Implement DeepSeek integration, refactor model adapters for streaming and tool calls, enhance admin and account management, and introduce new UI features for settings, API testing, and Vercel sync.
2026-02-22 17:25:48 +08:00
CJACK
920767f486
feat: Add Gemini adapter, improve API key fallback for Gemini AI Studio compatibility, and enhance OpenAI tool call streaming.
2026-02-22 01:26:08 +08:00
CJACK
e2cb07f08c
feat: Introduce stable call_id for OpenAI function_call and tool_calls events in streaming output, including reasoning text.
2026-02-21 09:47:38 +08:00
CJACK
dec9d03fc5
feat: enhance OpenAI response rendering to include reasoning and improve tool call detection from thinking channel, and refactor testing scripts for unified unit test execution.
2026-02-20 03:30:39 +08:00
CJACK
1d2a6bf281
fix: Prevent accidental loss of output text by refining tool call parsing for standalone payloads.
2026-02-20 03:18:28 +08:00
CJACK
210d9f5793
feat: enhance message normalization for OpenAI tool calls and Claude system message tool injection
2026-02-19 04:44:01 +08:00
CJACK
7307a5cc9a
feat: Implement admin settings UI, enhance admin authentication with password hashing, and add new streaming runtime logic for Claude and OpenAI adapters with extensive compatibility tests.
2026-02-19 02:45:38 +08:00