Mo Li
569a85bb61
Merge pull request #53 from lijirou12/codex/migrate-imagine-to-grok-superimage-1.0-db29lm
...
Add grok-superimage support, streaming/error handling, image recovery, and config/proxy improvements
2026-02-27 13:34:22 +08:00
Mo Li
1fbb103710
Merge branch 'main' into codex/migrate-imagine-to-grok-superimage-1.0-db29lm
2026-02-27 13:34:15 +08:00
Mo Li
5cc2f7913a
feat: add configurable parallel blocked-recovery with distinct tokens
2026-02-27 13:31:31 +08:00
Mo Li
4f80bba6b9
Merge pull request #52 from lijirou12/codex/migrate-imagine-to-grok-superimage-1.0-b6oi4l
...
Support grok-superimage and improve image streaming/retry, SSE error handling, proxy and config safety
2026-02-27 13:15:04 +08:00
Mo Li
eb868793b5
Merge branch 'main' into codex/migrate-imagine-to-grok-superimage-1.0-b6oi4l
2026-02-27 13:14:39 +08:00
Mo Li
63cbb98373
fix: reduce imagine stream aborts with blocked retries and explicit terminal error
2026-02-27 13:13:58 +08:00
Mo Li
8b0eed146b
Merge pull request #51 from lijirou12/codex/migrate-imagine-to-grok-superimage-1.0-y2p5rd
...
Add grok-superimage support, robust SSE streaming, image recovery and proxy/ retry fixes
2026-02-27 12:47:26 +08:00
Mo Li
545e13bcf8
Merge branch 'main' into codex/migrate-imagine-to-grok-superimage-1.0-y2p5rd
2026-02-27 12:47:15 +08:00
Mo Li
575abe8486
fix: guard retry.max_retry defaults to prevent NoneType conversion crash
2026-02-27 12:46:43 +08:00
Mo Li
33fee45fb8
Merge pull request #50 from lijirou12/codex/migrate-imagine-to-grok-superimage-1.0-65x674
...
Add grok-superimage support, safer SSE streaming, image recovery & proxy/ retry improvements
2026-02-27 12:29:35 +08:00
Mo Li
9b67bbeb1a
Merge branch 'main' into codex/migrate-imagine-to-grok-superimage-1.0-65x674
2026-02-27 12:29:28 +08:00
Mo Li
03eb8615b9
fix: retry blocked imagine outputs in parallel and enforce final-size filtering
2026-02-27 12:28:48 +08:00
Mo Li
9109a48794
Merge pull request #49 from lijirou12/codex/migrate-imagine-to-grok-superimage-1.0-63a3ay
...
Add grok-superimage server-side support, robust SSE streaming/errors, and proxy/imagine fixes
2026-02-27 11:43:28 +08:00
Mo Li
63d48cf0a3
Merge branch 'main' into codex/migrate-imagine-to-grok-superimage-1.0-63a3ay
2026-02-27 11:43:19 +08:00
Mo Li
7b22e13a73
fix: require true final imagine images before returning to clients
2026-02-27 11:42:21 +08:00
Mo Li
a39b65034e
Merge pull request #48 from lijirou12/codex/migrate-imagine-to-grok-superimage-1.0-fxv5c7
...
Add grok-superimage server-side config, robust SSE streaming errors, transient retry and proxy handling
2026-02-26 21:07:43 +08:00
Mo Li
adc079e951
Merge branch 'main' into codex/migrate-imagine-to-grok-superimage-1.0-fxv5c7
2026-02-26 21:06:57 +08:00
Mo Li
7b2f0b7ee2
fix: normalize SOCKS proxy scheme for app chat requests
2026-02-26 21:05:07 +08:00
Mo Li
6c255565e8
Merge pull request #47 from lijirou12/codex/migrate-imagine-to-grok-superimage-1.0-q2pii5
...
Add grok-superimage support, server-side image config and resilient streaming/error handling
2026-02-26 20:32:42 +08:00
Mo Li
c5c75fe093
fix: make chat requests honor SOCKS proxy settings explicitly
2026-02-26 20:28:19 +08:00
Mo Li
0724495167
Merge pull request #46 from lijirou12/codex/migrate-imagine-to-grok-superimage-1.0-ql75b8
...
Add grok-superimage server-side image mode; improve streaming error handling and transient retry logic
2026-02-26 19:46:12 +08:00
Mo Li
f6b6695937
Merge branch 'main' into codex/migrate-imagine-to-grok-superimage-1.0-ql75b8
2026-02-26 19:43:17 +08:00
Mo Li
a358872cb5
fix: avoid admin storage coroutine warning and skip futile transient retries
2026-02-26 19:41:00 +08:00
Mo Li
d2f2163d4c
Merge pull request #45 from lijirou12/codex/migrate-imagine-to-grok-superimage-1.0-pg7sej
...
Add grok-superimage model with server-side image config, improve SSE error handling and transient retry logic
2026-02-26 19:13:40 +08:00
Mo Li
978b5bdc1e
fix: improve chat timeout resilience and add superimage config dropdowns
2026-02-26 19:12:16 +08:00
Mo Li
4c5323416f
Merge pull request #44 from lijirou12/codex/migrate-imagine-to-grok-superimage-1.0-o26yja
...
Add grok-superimage model with server-side image config and robust SSE streaming/error handling
2026-02-26 18:39:24 +08:00
Mo Li
3bf14ecf13
Merge branch 'main' into codex/migrate-imagine-to-grok-superimage-1.0-o26yja
2026-02-26 18:38:56 +08:00
Mo Li
9247eb6538
fix: return SSE error stream when chat/video stream setup fails
2026-02-26 18:29:30 +08:00
Mo Li
aae4938db9
Merge pull request #43 from lijirou12/codex/migrate-imagine-to-grok-superimage-1.0-hr1q8r
...
feat: expose grok-superimage-1.0 via /v1/chat/completions and fix image streaming
2026-02-26 17:48:13 +08:00
Mo Li
a6a298a083
feat: add grok-superimage chat model and robust image streaming
2026-02-26 17:47:46 +08:00
Chenyme
5bab7ae793
Merge pull request #235 from chenyme/v1_response
...
feat: support responses router to main application
2026-02-26 15:09:53 +08:00
Chenyme
3a77067a10
feat: update README and API documentation to include new tool calling features and response parameters
2026-02-26 15:08:21 +08:00
Chenyme
bed5eb6af6
feat: support responses router to main application
2026-02-26 14:47:06 +08:00
Chenyme
1d29bc44c8
Merge pull request #234 from chenyme/enhance_tool
...
feat: enhance StreamProcessor with tool stream handling
2026-02-26 14:04:00 +08:00
Chenyme
5aa29aad02
feat: enhance StreamProcessor with tool stream handling
2026-02-26 14:00:19 +08:00
Chenyme
059e9d7147
Merge pull request #232 from chenyme/fix_image
...
refactor: update image handling in chat completions and services
2026-02-26 11:41:04 +08:00
Chenyme
c2989e8579
refactor: update image handling in chat completions and services
2026-02-26 11:38:25 +08:00
Chenyme
3d755f1bb4
Merge pull request #230 from chenyme/fix_message_none
...
feat: enhance chat service with fallback prompt for attachments
2026-02-26 11:22:35 +08:00
Chenyme
02d4f91c4a
feat: enhance chat service with fallback prompt for attachments and semaphore management
2026-02-26 11:20:46 +08:00
Chenyme
f7f8f973a0
Merge pull request #226 from reloadggg/pr/function-calling
...
feat: add OpenAI-compatible function calling (tools / tool_calls)
2026-02-26 11:01:26 +08:00
Chenyme
cf4942d68b
Merge branch 'main' into pr/function-calling
2026-02-26 09:49:16 +08:00
Chenyme
4b4620cc6e
Merge pull request #222 from Yuyang-0/codex/openclaw-chat-fix
...
fix: 兼容 OpenAI 风格消息 content 对象与 assistant 空 content,避免 400 校验错误
2026-02-26 09:43:15 +08:00
Chenyme
2493ea2e4c
docs: delete CLAUDE.md
2026-02-26 09:42:18 +08:00
zxc123developer
1d49377bee
feat: add OpenAI-compatible function calling (tools / tool_calls)
...
Implements prompt-based tool call emulation to support the OpenAI
function calling API (tools / tool_calls / tool_choice), fixing #219 .
Changes:
- New module app/services/grok/utils/tool_call.py
- build_tool_prompt(): inject tool definitions into system prompt
using <tool_call> XML tag format
- parse_tool_calls(): regex-extract <tool_call> blocks and convert
to OpenAI-format tool_calls list
- format_tool_history(): convert multi-turn tool messages to text
for Grok's single-message API
- build_tool_overrides(): experimental passthrough mode helper
- app/api/v1/chat.py
- Add tool_calls, tool_call_id, name fields to MessageItem
- Add tools, tool_choice, parallel_tool_calls to ChatCompletionRequest
- Add "tool" to VALID_ROLES
- Validate tool role messages (require tool_call_id)
- Validate tools format and tool_choice values
- app/services/grok/services/chat.py
- MessageExtractor: preprocess tool history and inject tool prompt
- StreamProcessor: buffer tokens when tools active, emit tool_calls
chunk with finish_reason="tool_calls" after stream ends
- CollectProcessor: parse tool_calls from final content
- GrokChatService/ChatService: forward tools params through the stack
- config.defaults.toml: add tool_call_mode = "prompt" config key
(supports "prompt" default and experimental "passthrough" mode)
Backward compatible: requests without tools are completely unaffected.
2026-02-24 21:49:25 +08:00
guanyuyang
0356bb4ad8
Clarify PR flow and tool handling
2026-02-24 08:16:30 +08:00
guanyuyang
67fc2cc475
fix: 兼容 OpenAI-like content 对象与 assistant null content
2026-02-24 07:53:14 +08:00
Chenyme
186e6bb20b
Merge pull request #209 from BytePioneer-AI/fix/issue-206-base64-path
...
fix: support relative asset paths in base64 download flow
2026-02-21 21:25:41 +08:00
Chenyme
d5bd81ece0
Merge pull request #204 from FakerL/fix/sql-ssl-connect-args
...
fix: handle SSL query params for asyncpg and aiomysql
2026-02-21 21:11:05 +08:00
Chenyme
fdf1f8494f
Merge pull request #200 from fno2010/grok-image-response-format
...
fix: standardize image generation response to OpenAI ChatCompletion format
2026-02-21 21:06:32 +08:00
BytePioneer-AI
68895f0f31
fix: support relative asset paths in base64 download flow
2026-02-21 14:12:42 +08:00