mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-12 03:48:56 +00:00
* refactor(rust): add typed LLM wire contracts to llms-types Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * style(rust): drop blank lines left in new wire types Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * feat(rust): complete additive wire type contracts * feat(rust): complete additive nested wire contracts * feat(rust): give Messages content blocks concrete per-block contracts Replace the shared all-optional ContentBlockPayload with one struct per documented block and nested tagged unions for server tool results, so required fields from the official Messages reference are enforced. Make CustomTool a plain struct with required name and input_schema, add MessagesToolParam plus the toolset and undated tool-search tags, model MiniMax media sources as a tagged union, require documented fields on chat audio, image URLs, and logprobs, and rename the new block enum to MessagesContentPart so it no longer shadows the streaming struct. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(rust): tighten new wire contracts against the official references Give each Messages builtin tool a concrete contract with its documented required fields, fixed names, and typed allowed callers in place of the shared all-optional ToolDefinition bag. Make MCP tool result content and fallback triggers optional as the request params document, and narrow tool search references, web fetch content, and bash results to their documented block types. Keep unmodeled Responses output items and new usage iteration and stop detail types as Recognized values instead of rejecting the whole payload, accept find_in_page and optional open_page URLs, preserve JSON Schema property order, and move prompt_cache_breakpoint to Chat Completions content parts where OpenAI documents it. Drop OCR table and key/value types that only matched Azure Document Intelligence and would reject other providers' normalized passthrough, along with unsourced bounding box and applied edit fields. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(rust): type every documented Responses output item and close wire gaps Add the 18 remaining documented Responses output item variants with concrete nested actions, outputs, and safety checks, and add the documented namespace, async, caller, and image generation fields to the existing items. Restrict MCP tool result content to a string or text blocks, model the Messages diagnostics cache-miss union and its request param with null distinct from absent, and accept draft-07 tuple items and prefixItems in JSON Schema. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(rust): keep Messages contract assertions in test bodies Compare built-in tool decodes against fully built expected values and split the required-field rejections per type, so no case carries its assertions in a callback. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(rust): cite the Mistral OCR reference beside the OCR wire types Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| .agents/skills | ||
| crates | ||
| .gitignore | ||
| AGENTS.md | ||
| Cargo.lock | ||
| Cargo.toml | ||
| clippy.toml | ||