-
Notifications
You must be signed in to change notification settings - Fork 281
Open
Labels
enhancementNew feature or requestNew feature or request
Description
🚀 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.10requiresai: ^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:
- Update peer dependency to
ai: ^5.0.0 - Fix schema generation — use
type: "object"instead oftype: "None" - 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
Labels
enhancementNew feature or requestNew feature or request