From 1673f7f3257fc590044f62d36ac310b0f648b633 Mon Sep 17 00:00:00 2001 From: Jared Palmer Date: Fri, 2 Jun 2023 09:32:25 -0400 Subject: [PATCH 1/2] Fix naming --- README.md | 4 ++-- apps/docs/pages/api-reference.mdx | 2 +- apps/docs/pages/guides/langchain.mdx | 2 +- apps/docs/theme.config.jsx | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 9510571..13fa421 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/apps/docs/pages/api-reference.mdx b/apps/docs/pages/api-reference.mdx index ba7ef73..3acec19 100644 --- a/apps/docs/pages/api-reference.mdx +++ b/apps/docs/pages/api-reference.mdx @@ -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' diff --git a/apps/docs/pages/guides/langchain.mdx b/apps/docs/pages/guides/langchain.mdx index bf5ed43..85c898f 100644 --- a/apps/docs/pages/guides/langchain.mdx +++ b/apps/docs/pages/guides/langchain.mdx @@ -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' diff --git a/apps/docs/theme.config.jsx b/apps/docs/theme.config.jsx index a11fbd6..02dff7d 100644 --- a/apps/docs/theme.config.jsx +++ b/apps/docs/theme.config.jsx @@ -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: ( @@ -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.' From 4261e304c7cff5ee19f8c7772b5ba56f5f499064 Mon Sep 17 00:00:00 2001 From: Jared Palmer Date: Fri, 2 Jun 2023 09:38:40 -0400 Subject: [PATCH 2/2] Remove slack notification --- .github/workflows/release.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 263a975..1bf6e50 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,8 +38,3 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN_ELEVATED }} - - - name: Send a Slack notification if a publish happens - if: steps.changesets.outputs.published == 'true' - # You can do something when a publish happens. - run: my-slack-bot send-notification --message "A new version of ${GITHUB_REPOSITORY} was published!"