Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update naming #20

Merged
merged 2 commits into from
Jun 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# AI SDK
# Vercel AI SDK

AI SDK is **a compact library for building edge-rendered AI-powered streaming text and chat UIs**.
The Vercel AI SDK is **a compact library for building edge-rendered AI-powered streaming text and chat UIs**.

## Features

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/pages/api-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ Returns a `stream` and bag of [LangChain](js.langchain.com/docs) `BaseCallbackHa

#### Example

Here is a reference implementation of a chat endpoint that uses both AI SDK and LangChain together with Next.js App Router
Here is a reference implementation of a chat endpoint that uses both the Vercel AI SDK and LangChain together with Next.js App Router

```tsx filename="app/api/chat/route.ts"
import { StreamingTextResponse, LangChainStream } from 'ai-connector'
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/pages/guides/langchain.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ However, LangChain does not provide a way to easily build UIs or a standard way

## Example

Here is an example implementation of a chat application that uses both AI SDK and LangChain's [OpenAIChat](https://js.langchain.com/docs/api/llms_openai/classes/OpenAIChat) together with [Next.js](https://nextjs.org/docs) App Router. It uses AI SDK's [`LangChainStream`](../api-reference#langchainstream) to stream text to the client (from the edge) and then AI SDK's `useChat` to handle the chat UI.
Here is an example implementation of a chat application that uses both Vercel AI SDK and LangChain's [OpenAIChat](https://js.langchain.com/docs/api/llms_openai/classes/OpenAIChat) together with [Next.js](https://nextjs.org/docs) App Router. It uses Vercel AI SDK's [`LangChainStream`](../api-reference#langchainstream) to stream text to the client (from the edge) and then Vercel AI SDK's `useChat` to handle the chat UI.

```tsx filename="app/api/chat/route.ts" {1,10,27}
import { StreamingTextResponse, LangChainStream } from 'ai-connector'
Expand Down
6 changes: 3 additions & 3 deletions apps/docs/theme.config.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useConfig } from 'nextra-theme-docs'
/** @type{import('nextra-theme-docs').DocsThemeConfig}*/
export default {
project: {
link: 'https://github.com/shuding/nextra'
link: 'https://github.com/vercel-labs/ai'
},
logo: (
<span className="inline-flex items-center">
Expand Down Expand Up @@ -70,8 +70,8 @@ export default {
useNextSeoProps: () => {
const { title } = useConfig()
return {
defaultTitle: 'AI SDK',
titleTemplate: '%s - AI SDK',
defaultTitle: 'Vercel AI SDK',
titleTemplate: '%s - Vercel AI SDK',
title,
description:
'Edge-ready utilities to accelerate working with AI in JavaScript and React.'
Expand Down