Skip to content

Fix Fireworks LLM integration tool validation errors #242

Description

@exedev-shelley

Author: tsfreddie
Channel: #feedback
Link: https://discord.com/channels/1405685085923049482/1405686161791516873/1528086535268728904


Issue

LLM requests to Fireworks models are failing with a 400 Bad Request error after a Shelley update. The error indicates tool validation failures:

LLM request failed: attempt 1 at 2026-07-18 17:08:31: status 400 Bad Request
(url=https://llm.int.exe.xyz/v1/messages, model=accounts/fireworks/models/minimax-m3)

Error: 2 request validation errors:
- Input should be 'function', 'web_search_preview' or 'code_interpreter', field: 'tools[8].type', value: 'web_search_20250305'
- Extra inputs are not permitted, field: 'tools[8].name', value: 'web_search'

(shelley_request_id=6eaaba7ba5661a7a upstream_request_id=c8c8a3d6-959e-40ca-9fb6-6851432dc6e2)

Details

  • Affected models: Fireworks models (reported: minimax-m3)
  • Root cause: Tools being sent with invalid type web_search_20250305 and unexpected name field
  • Expected behavior: Tools should only use valid types: function, web_search_preview, or code_interpreter
  • Regression: Issue appeared after Shelley update; previously working

Action Items

  1. Verify which Shelley update introduced this regression
  2. Update tool validation/transformation logic to comply with Fireworks API requirements
  3. Test with all supported Fireworks models
  4. Ensure backward compatibility if possible

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions