github vercel/ai @ai-sdk/xai@3.0.40

latest releases: @ai-sdk/openai-compatible@2.0.22, @ai-sdk/fireworks@2.0.23, @ai-sdk/togetherai@2.0.24...
15 hours ago

Patch Changes

  • 05f3f36: Add native file_search server-side tool support:

    • Add xai.tools.fileSearch() for vector store search with vectorStoreIds and maxNumResults parameters
    • Add include option supporting file_search_call.results to get inline search results
    • Add file_search_call handling in language model for both doGenerate and doStream
    • Fix invalid grok-4-1 model type (only grok-4-1-fast-reasoning and grok-4-1-fast-non-reasoning exist)
    • Fix toolChoice for server-side tools: xAI API doesn't support forcing specific server-side tools, now emits warning instead of sending invalid request

Don't miss a new ai release

NewReleases is sending notifications on new releases.