Skip to main content
Loading navigation
Back to prompt library

Setup AI SDK with Qwen 3

Linked challenge: Build a Mobile Money Credit Scoring Agent with AI SDK and Qwen 3

Prompt source

implementation1 lines1 sectionsNo variables0 checklist items
Initialize the Vercel AI SDK using `@ai-sdk/openai` configured with custom `baseURL` to target Qwen 3. Define the Zod schema for credit scoring outputs including `credit_score` (number between 300 and 850), `risk_category` (enum), and `reasons` (array of strings).