ข้ามไปที่เนื้อหา

นับการเปิดหน้าและการคลิกโปรเจกต์ด้วย PostHog (เซิร์ฟเวอร์ EU) ไหม โหลดเมื่อคุณกดอนุญาตเท่านั้น ความเป็นส่วนตัว

Chat Playground live preview
โปรเจกต์ทั้งหมด

Chat Playground

Test the same prompt across several AI providers at once.

Comparing model outputs meant tab-switching between separate provider consoles — no shared view to judge which model actually fit the task.

Tech Domain · Book Dev|เผยแพร่แล้ว|หลักฐาน: ใช้งานจริง|Next.js, TypeScript, AI SDK

มี deployment สาธารณะที่เปิดให้ทดลองใช้งาน

กรณีศึกษา

ก่อนใช้งาน

Comparing AI model outputs side by side required switching between different provider interfaces.

หลังใช้งาน

Model Bench on the App shell: pick lanes, run one prompt and read each answer in its own lane, with a clear demo-mode label for visitors without the access key.

วิธีแก้ปัญหา

Built Model Bench on the AI SDK: /api/compare sends one prompt to the selected OpenAI, Anthropic and Google lanes and shows each answer with its latency. Model ids come from env vars, and live calls need a bench access key (kept in sessionStorage for the tab); without it every lane returns labelled sample text and no model is called. Requests are rate limited and capped daily.

สิ่งที่ยังไม่แก้

A lane only runs when the deployment has its API key and model id set and the caller has the access key; public visitors see demo answers. No open-source models, caching or scoring.

บทความที่เกี่ยวข้อง

อ่านเพิ่มเติมในหัวข้อที่เกี่ยวข้องจากบล็อก

โปรเจกต์ที่เกี่ยวข้อง

เพิ่มเติมใน Tech Domain · Book Dev