# Vercel — Using the AI SDK to fix edge-case errors in our code

- Company: Vercel (vercel.com)
- Announced: 2024-08-15T13:00:00+00:00
- Category: not stated
- Coverage: not counted
- Announcement: no
- Group: routine
- Source: https://vercel.com/blog/using-the-ai-sdk-to-fix-edge-case-errors-in-our-code
- Record: https://forck.live/items/20957-using-the-ai-sdk-to-fix-edge-case-errors-in-our-code
- Subject: v0 / AI SDK / AI Gateway
- Models affected: GPT-4o

Vercel used the AI SDK with GPT-4o to determine the correct language code for Punycode-encoded international domain names, fixing a bug that caused domain purchases with non-English characters to fail. The solution achieved a 100% success rate on previously failed purchases and has been deployed to production.

## Evidence

Verbatim from https://vercel.com/blog/using-the-ai-sdk-to-fix-edge-case-errors-in-our-code:

> GPT-4o was able to determine the appropriate language code for each domain. The results were remarkable. The AI successfully identified the correct language codes, even for the shortest and most complex domain names.

---

Record: https://forck.live/items/20957-using-the-ai-sdk-to-fix-edge-case-errors-in-our-code
Catalogue: https://forck.live/llms.txt
Current issue: https://forck.live/feed.md
