Skip to content

AI SDK v5 Compatibility for @goat-sdk/adapter-vercel-ai #526

@dkushnirov

Description

@dkushnirov

🚀 Feature Request: AI SDK v5 Compatibility for @goat-sdk/adapter-vercel-ai

Problem

Cannot use GOAT SDK with AI SDK v5 due to compatibility issues:

  • @goat-sdk/adapter-vercel-ai@0.2.10 requires ai: ^4.0.3
  • AI SDK v5 (ai: ^5.0.0) introduces stricter schema validation
  • Runtime errors occur when using wallet tools:

Error: Invalid schema for function 'sign_message': schema must be a JSON Schema of 'type: "object"', got 'type: "None"'.

Affected tools:
get_address, get_chain, get_balance, sign_message, get_token_info_by_ticker, etc.


✅ Solution

Update @goat-sdk/adapter-vercel-ai for AI SDK v5 compatibility:

  1. Update peer dependency to ai: ^5.0.0
  2. Fix schema generation — use type: "object" instead of type: "None"
  3. Ensure backward compatibility with v4

🧩 Context

Environment:
AI SDK v5.0.76, pnpm workspace

Impact:
Blocks projects migrating to AI SDK v5

🙏 Thanks for the amazing work on GOAT SDK!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions