Alishahryar1
f77d196ce7
Refactor API request pipeline
2026-06-18 02:44:51 -07:00
Ali Khokhar
3abe41d270
Add Codex support ( #691 )
2026-06-16 16:32:43 -07:00
Alishahryar1
29e7714337
feat(logging): structured TRACE events and end-to-end request correlation
...
Add core/trace.py with trace_event, traced_async_stream, and payload snapshots.
Merge TRACE fields into JSON logs; promote claude_session_id, http path/method.
Instrument API, messaging/CLI, and OpenAI-compat/native provider paths.
Harden log sink with enqueue and stdlib intercept re-entrancy guard.
Document behavior in .env.example and README; extend tests.
2026-05-10 18:24:48 -07:00
Alishahryar1
f9fc614563
Allow unauthenticated root probes
2026-05-10 16:03:19 -07:00
Alishahryar1
d3a3b37e9e
Filter OpenRouter model variants by thinking support
2026-04-30 22:01:36 -07:00
Alishahryar1
db3c9521b1
Add no-thinking model picker variants
2026-04-30 21:27:23 -07:00
Alishahryar1
72b34ad57c
Added claude-code native model picker
2026-04-30 20:34:35 -07:00
Alishahryar1
b926f60f64
feat: Anthropic web server tools, provider metadata, messaging hardening
...
- Add local web_search/web_fetch SSE handling and optional tool schemas
- Extend HeuristicToolParser for JSON-style WebFetch/WebSearch text
- Consolidate provider defaults, ids, and exception typing; stream contracts
- Messaging: typed options, voice config injection, platform contract cleanup
- Tests for web server tools, converters, parsers, contracts; ignore debug-*.log
2026-04-24 23:01:14 -07:00
Alishahryar1
0e3b2c24b4
refactor: remove OpenRouter rollback, shims, and redundant layers
...
- OpenRouter: native Anthropic only; remove chat_request and OPENROUTER_TRANSPORT
- Drop OpenAICompatibleProvider alias, api.request_utils, voice_pipeline facade
- Simplify OpenRouter SSE, generic reasoning in conversion, messaging dispatch
- Shared markdown table helpers; API optimization response helper; contract guards
- Restore PLAN.md; update docs and tests
2026-04-24 21:08:38 -07:00
Alishahryar1
66ef23072c
Refactor provider routing and smoke coverage
2026-04-24 19:34:34 -07:00
Alishahryar1
835d0454e8
Fixes for issue 113 and 116
2026-04-18 16:32:31 -07:00
th-ch
f703a0e403
Implement optional authentication (Anthropic style) ( #80 )
2026-03-27 11:11:47 -07:00
Alishahryar1
4a59f1f708
Added log line for missed optimization
2026-03-11 07:27:16 -07:00
Alishahryar1
55945df1d2
removed logging utils
2026-03-11 07:24:50 -07:00
Alishahryar1
a7d88d5cbd
Updated README with per-model mapping, fixed test .env isolation
2026-03-01 21:52:35 -08:00
Ali Khokhar
0b324e0421
Per claude model mapping ( #66 )
2026-03-01 21:32:23 -08:00
Alishahryar1
34757511a0
Improve deterministic error surfacing across stream and API
2026-03-01 01:32:52 -08:00
Alishahryar1
a74ec74271
Major refactor done with minimax m2.5
2026-02-28 04:36:29 -08:00
Alishahryar1
e7ac85264f
Improved optimizations to decrease llm calls further and increase throughput
2026-02-18 17:54:41 -08:00
Alishahryar1
b05d0d2703
new linter rules and fixes
2026-02-18 04:13:41 -08:00
Cursor Agent
bfc781e0ed
Phase 4-6: Dead code removal, performance, minor fixes
...
Phase 4:
- Remove legacy SessionRecord, _sessions, _msg_to_session from SessionStore
- Fix hardcoded provider in root endpoint (use settings.provider_type)
- Update session store tests
Phase 5:
- Use list-based string accumulation in ThinkingSegment, TextSegment, ToolCallSegment
- Cache MAX_MESSAGE_LOG_ENTRIES_PER_CHAT at SessionStore init
- Use iterative DFS in MessageTree.get_descendants
Phase 6:
- Add comment for abstract async generator workaround in BaseProvider
- Rename TELEGRAM_EDIT log tags to PLATFORM_EDIT in handler
Co-authored-by: Ali Khokhar <alishahryar2@gmail.com >
2026-02-17 02:01:01 +00:00
Alishahryar1
539854fe7b
Refactor done using GLM-5
2026-02-15 21:58:03 -08:00
Alishahryar1
7dfcad2a4c
Enhance logging and error handling across multiple modules
...
- Added request ID context to logging in FastAPI routes and NVIDIA NIM provider.
- Improved logging format to include context variables for better traceability.
- Updated message handling in Telegram and Claude handlers to log message previews.
- Enhanced error logging in NVIDIA NIM provider with request ID for easier debugging.
- Added logging for tree repository actions to track tree and node registrations.
2026-02-15 02:01:57 -08:00
Alishahryar1
96747f2216
Updated token counting and removed non streaming support
2026-02-14 19:10:09 -08:00
Cursor Agent
25c7123e33
Phase 7 & 8: Routes optimization refactor and request utils split
...
Phase 7 - Optimization handlers:
- Create api/optimization_handlers.py with try_prefix_detection,
try_quota_mock, try_title_skip, try_suggestion_skip, try_filepath_mock
- Add try_optimizations() that runs handlers in order
- Refactor routes.create_message to use try_optimizations()
- Update test_routes_optimizations patch targets
Phase 8 - Request utils split:
- Create api/detection.py: is_quota_check_request, is_title_generation_request,
is_prefix_detection_request, is_suggestion_mode_request,
is_filepath_extraction_request
- Create api/command_utils.py: extract_command_prefix, extract_filepaths_from_command
- Slim request_utils.py to get_token_count + re-exports for backward compat
Co-authored-by: Ali Khokhar <alishahryar2@gmail.com >
2026-02-15 01:41:35 +00:00
Alishahryar1
6102583026
Major Refactor Part 2 with kimi-k2.5 in claude code
2026-02-05 16:09:16 -08:00
Alishahryar1
fcbe204f44
Major refactor done with kimi-k2.5 in claude code
2026-02-05 10:51:33 -08:00
Alishahryar1
81d41fb6d5
Added mocking for suggestion mode and file path extraction
2026-02-03 19:24:18 -08:00
Alishahryar1
303767e346
fixed linter errors
2026-01-30 23:32:02 -08:00
Alishahryar1
3b037932d7
refactor to reduce coupling
2026-01-30 13:39:40 -08:00
Alishahryar1
312c365f54
Implemeted the 2 new optimizations
2026-01-30 03:25:05 -08:00
Alishahryar1
34035dfc05
fixed /stop not updating ui for all messages
2026-01-29 17:04:30 -08:00
Alishahryar1
f1efa22a82
fixed issues after refactor
2026-01-29 14:50:05 -08:00
Alishahryar1
8678a62915
Major refactor done by itself
2026-01-29 14:40:08 -08:00