summaryrefslogtreecommitdiffstats
path: root/src/client/bedrock.rs
AgeCommit message (Collapse)AuthorLines
2026-10-21Add idempotency support to aichat HTTP clientsdev-0/+3
- 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.
2025-07-30feat: bedrock supports session_token (#1362)sigoden-0/+10
2025-06-28chore: clippy (#1334)sigoden-4/+4
2025-03-03fix: bedrock handles empty tool call arguments (#1213)Julian Blank-0/+6
2025-02-26refactor: several improvements (#1203)sigoden-4/+13
2025-02-26feat: support claude-3-7-sonnet (#1201)sigoden-5/+28
2025-02-06feat: support model alias (#1150)sigoden-2/+2
2025-01-21refactor: optimize configuration initialization (#1110)sigoden-13/+3
2024-12-04refactor: improve retrieve model (#1036)sigoden-2/+2
- check the model type while retrieve model - select chat/reranker model even if it is missed in client models - find predefined-models for openai-compatible client with startsWith - remove client::ApiType
2024-11-29fix: stream function calling for some openai-compatible clients (#1017)sigoden-2/+2
2024-11-14refactor: improve tool calls (#995)sigoden-4/+3
- rename MessageContent:ToolResults to MessageContent:ToolCalls - rename ToolResults to MessageContentToolCalls - persist tool_calls to messages.md
2024-11-13fix: invalid request on qianwen multi tool-calls (#993)sigoden-1/+4
2024-09-24refactor: embeddings/rerank fn accept ref data (#878)sigoden-2/+2
2024-07-28feat: abandon rag_dedicated client and improve (#757)sigoden-2/+1
2024-07-27feat: support patching request url, headers and body (#756)sigoden-26/+58
2024-07-27feat: bedrock client switch to converse api and support cohere models (#747)sigoden-159/+283
2024-07-27feat: change model patch structure (#754)sigoden-1/+1
2024-06-05chore: formatsigoden-1/+1
2024-06-05feat: support RAG (#560)sigoden-6/+4
* feat: support RAG * support more embeddings models and implement concurrent embedding api * show the progress of addings paths * ignore embedding context when saving message * embedding model max_chunk_size => default_chunk_size * support pdf and pandoc formats (docx, epub, ipynb)
2024-06-01refactor: rename some client structs and methods (#555)sigoden-34/+40
* rename `Completeion*` to `ChatCompletions*` * rename `send_message*` to `chat_completions*` * rename `request_builder` to `chat_completions_builder` * rename `build_body` to `build_chat_completions_body` * rename `extract_completion` to `extract_chat_completions` * format * remove unused config fields
2024-05-30refactor: rename `SendData` to `CompletionData` (#553)sigoden-11/+15
2024-05-26fix: bedrock issues (#544)rolfwilms-0/+1
* Removed extraneous key [stream] for AWS Bedrock Claude models. * Reduceddefault AWS Bedrock llama-3 max_output_tokens to 2048 to align with API requirements. --------- Co-authored-by: Rolf Wilms <rwilms@csc.com>
2024-05-22feat: allow patching req body with client config (#534)sigoden-5/+5
2024-05-18feat: support function calling (#514)sigoden-15/+20
* feat: support function calling * fix on Windows OS * implement multi-steps function calling * fix on Windows OS * add error for client not support function calling * refactor message data structure and make claude client supporting function calling * support reuse previous call results * improve error handling for function calling * use prefix `may_` as indicator for `execute` type fucntions
2024-05-08refactor: model pass_max_tokens (#493)sigoden-3/+3
2024-05-02chore: fix typos (#476)Tatsuya Kyushima-2/+2
2024-05-01refactore: add models for openai-compatible platforms (#471)sigoden-8/+4
2024-04-30feat: openai-compatible platforms share the same client (#469)sigoden-3/+3
2024-04-30refactor: improve code qualitysigoden-37/+9
2024-04-29refactor: check res status codesigoden-2/+2
2024-04-29refactor: rename some structs (#457)sigoden-11/+11
2024-04-29feat: non-streaming returns completion stats (#456)sigoden-14/+37
2024-04-28chore: fix typosigoden-2/+2
2024-04-28feat: support bedrock client (#450)sigoden-0/+443