summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorLines
2026-10-21Add idempotency support to aichat HTTP clientsdev-0/+14
- Add boolean to client config. When enabled, a fresh (UUID) header is sent with each logical request attempt so the outer retry loop reuses the same submission instead of starting duplicate work on providers that support it (e.g. Sail Research). The key is generated once per logical request (before the retry loop) and reused across all retry attempts via the cloned ChatCompletionsData/request builders, so providers debounce duplicate generations. - Wire the header in request_builder (macro-based clients) and Bedrock's chat_completions_builder. - Document the option in config.example.yaml.
2026-10-21Add request timeout and retry support to aichat HTTP clientsdev-7/+116
- Add timeout, retries, retry_delay_ms, and retry_max_delay_ms options to client extra config to bound long-running requests and retry failed attempts with exponential backoff. - Apply a total request timeout via reqwest .timeout(). - Implement retry with exponential backoff for non-streaming and streaming chat completions. - Disable reqwest-eventsource internal auto-reconnect so it does not loop forever; outer retry logic is now the single owner of retry behavior. - Document the new options in config.example.yaml.
2026-10-03Implemented automatic subquery compressionLeonard Kugis-2/+81
2026-10-03Fixed subquery tool double addingLeonard Kugis-30/+75
2026-10-01feat: add built-in subquery tool with hierarchical query idsaichat-agent-10/+558
* Add config options subquery and subquery_max_depth. * Register an internal subquery function that spawns a fresh LLM query with the current model configuration but without the full context. The model selects context numerically (message_indexes) or by text excerpt (excerpts). * Subqueries can use tools, including further nested subqueries up to subquery_max_depth. * Queries and subqueries get hierarchical ids ([0], [0/1], [0/1/2]) that prefix tool-call prints and spinner messages.
2025-08-08chore: remove redundant text check in use_embeddings method (#1378)curricane chen-8/+5
Co-authored-by: chenmch <chenmch@diit.cn>
2025-08-08chore: clippy with rust 1.89 (#1379)sigoden-6/+6
2025-08-02feat: eliminate return requirement for -e mode option selection (#1374)renato-umeton-22/+57
Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: sigoden <sigoden@gmail.com>
2025-08-01feat: switch to raw stream renderer when no_color/no_highlight (#1371)sigoden-3/+12
2025-08-01refactor: update RoleLike trait (#1370)sigoden-27/+20
2025-08-01feat: cache session token counts to avoid typing delay (#1369)sigoden-1/+14
2025-07-30refactor: several improvements (#1363)sigoden-31/+31
2025-07-30feat: bedrock supports session_token (#1362)sigoden-0/+10
2025-07-29feat: gemini pass API key in header for security (#1360)Aman-4/+5
Co-authored-by: Aman Shaw <amanshaw4511@protonmail.com> Co-authored-by: aman <aman.saw@batonsystems.com>
2025-07-28feat: env vars take precedence over client config (#1361)sigoden-8/+6
2025-07-21feat: vertexai supports `global` location (#1354)Andrew Grigorev-2/+10
2025-07-12fix: `.copy` does not work after session compression (#1350)sigoden-1/+1
2025-07-05fix: `.file` external commands capture stdout/stderr (#1343)sigoden-8/+7
2025-07-05feat: ctrl+j for newline (#1342)sigoden-3/+6
2025-07-04feat: enhence `.regenerate` (#1340)sigoden-2/+9
2025-07-03refactor: update deps and models.yaml (#1339)sigoden-4/+11
2025-06-28refactor: several improvements (#1336)sigoden-35/+39
2025-06-28feat: support autodetecting dark/light theme (#1335)sigoden-31/+22
2025-06-28 fix: change temperature/top_p reading rules (#1333)sigoden-10/+19
2025-06-28chore: clippy (#1334)sigoden-46/+39
2025-06-23feat: abandon support for lingyiwanwu client (#1327)sigoden-2/+1
2025-06-23fix: openai api omits content field from tool_calls message (#1326)sigoden-4/+2
2025-06-03fix: better error handling for `aichat -e` on MacOS (#1311)sigoden-3/+3
2025-05-09feat: add support for OSC52 clipboard codes (#1280)gcv-5/+28
2025-05-02fix: visual indication of Vi insert/normal model #897 (#1279)Christian Zangl-0/+8
2025-04-14chore: clippysigoden-3/+3
2025-03-28fix: use_tools in agent mode (#1252)cramosc-32/+48
2025-03-26refactor: replace `lazy_static` with `std::sync::LazyLock` (#1246)mtul0729-83/+109
2025-03-17feat: support HISTFILE to specify the bash/zsh history file (#1236)cramosc-2/+8
2025-03-12feat: enhence glob for `--file` and rag docs (#1230)sigoden-28/+101
2025-03-11feat: `--code` (tty) strips `<think>` tag (#1227)sigoden-1/+1
2025-03-11fix: miss </think> tag while tool calling (#1226)sigoden-0/+4
2025-03-05fix: openai-compatible handles empty tool call arguments (#1217)sigoden-0/+6
2025-03-03fix: bedrock handles empty tool call arguments (#1213)Julian Blank-0/+6
2025-02-27feat: bumping Azure OpenAI API Version to 2024-12-01-preview (#1205)Dominique Broeglin-1/+1
2025-02-26refactor: several improvements (#1203)sigoden-7/+30
2025-02-26feat: support claude-3-7-sonnet (#1201)sigoden-36/+81
2025-02-24feat: add `cmd_prelude` and remove `prelude` (#1197)sigoden-7/+7
2025-02-21fix: incorrect model when switching role in session context (#1192)sigoden-7/+8
2025-02-18fix: better handle OpenAI-Compatible streaming responses (#1184)wwsheng009-1/+2
2025-02-17feat: remove supports for fireworks/siliconflow/together (#1181)sigoden-4/+1
2025-02-17refactor: several improvements (#1180)sigoden-4/+5
2025-02-14refactor: several improvements (#1177)sigoden-1/+1
2025-02-14feat: remove supports for hyperbolic and novita (#1176)sigoden-3/+1
2025-02-14feat: add patch `max_tokens: null` to openai/github o* serial models (#1174)sigoden-1/+5