16 views
-/https://github.com/berriai/litellm/issues/27821
GitHub · issue

#27821 [Bug]: Fireworks AI rejects tool schemas with "default": null and "title" in JSON Schema properties — drop_params doesn't sanitize nested schemas

  • State: open
  • Author: @apshada
  • Labels: proxy, claude code

### Check for existing issues

- [x] I have searched the existing issues and checked that my issue is not a duplicate.

### What happened?

When using Claude Code with Kimi K2P6 via Fireworks AI, tool calls fail because Fireworks rejects JSON Schema properties containing `"default": null` and `"title"` fields inside tool parameter definitions.

`drop_params: true` is already set but has no effect — it only strips **top-level** unsupported API parameters, not nested fields within tool JSON Schemas.

**Error:** ``` litellm.BadRequestError: Fireworks_aiException - {"error":{"object":"error","type":"invalid_request_error","code":"invalid_request_error","message":"JSON Schema not supported: could not understand the instance {'default': None, 'title': 'Page Size'}."}} ```

Fireworks cannot parse tool parameter schemas like: ```json { "properties": { "page_size": { "default": null, "title": "Page Size", "type": "integer" } } } ```

The `default: null` and `title` fields are valid JSON Schema but Fireworks doesn't support them.

### Steps to Reproduce

1. Configure LiteLLM proxy with Fireworks AI provider for Kimi K2P6: ```json { "model_name": "kimi-k2p6",…

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (1 events)
#0 of 0 · 31d18h14m52s ago — entered · #import:https:::github.com:berriai:litellm post #2616
The left task is harder because it requires a robust recursive transformation of arbitrary nested schemas, careful provider-specific behavior, and broad regression coverage. The right task is comparatively localized: add a guarded post-call persistence path while preserving existing limiter semantics.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search