Vercel AI Gateway with Braintrust Demo

R
Renaudil y a 2 jours
0

Description

An open-source AI chatbot built with Next.js, the AI SDK, the AI Gateway and Braintrust.

npx boilerapp vercel-ai-gateway-with-braintrust-demo

文档

A simple Next.js chatbot app to demonstrate the use of the Vercel AI Gateway with the AI SDK.

Getting Started

One-time setup

Deploy with Vercel

  1. Clone this repository with the Deploy button above
  2. Install the Vercel CLI if you don't already have it
  3. Clone the repository you created above: git clone <repo-url>
  4. Link it to a Vercel project: vc link or vc deploy

Usage

  1. Install packages with pnpm i (or npm i or yarn i) and run the development server with vc dev
  2. Open http://localhost:3000 to try the chatbot

FAQ

  1. If you prefer running your local development server directly rather than using vc dev, you'll need to run vc env pull to fetch the project's OIDC authentication token locally
    1. the token expires every 12h, so you'll need to re-run this command periodically.
    2. if you use vc dev it will auto-refresh the token for you, so you don't need to fetch it manually
  2. If you're linking to an existing, older project, you may need to enable the OIDC token feature in your project settings.
    1. visit the project settings page (rightmost tab in your project's dashboard)
    2. search for 'OIDC' in settings
    3. toggle the button under "Secure Backend Access with OIDC Federation" to Enabled and click the "Save" button

Authors

This repository is maintained by the Vercel team and community contributors.

Contributions are welcome! Feel free to open issues or submit pull requests to enhance functionality or fix bugs.

Prix

Gratuit

FREE

评论 (0)

常见问题

常见问题解答 (FAQ)

有问题?我们有答案。如果您找不到想要的答案,请随时联络我们。

Boilerapp 是一个专门用于分享 Boilerplates、入门套件(Starter Kits)和项目模版的开发者社区平台。我们的目标很简单:为您节省初始配置(Setup)的时间,让您可以专注于真正重要的代码。无论您是在寻找简单的代码库还是完整的 SaaS 项目,都能在这里找到。

还有其他问题?

我们的团队随时为您提供帮助。联络我们,我们将尽快回复。