{"id":19527700,"url":"https://github.com/jukbot/vercel-ai-chat-openai","last_synced_at":"2025-02-26T02:26:23.685Z","repository":{"id":176139972,"uuid":"655043071","full_name":"jukbot/vercel-ai-chat-openai","owner":"jukbot","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-17T18:15:13.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T16:03:13.432Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://vercel-ai-chat-openai-gules.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jukbot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-17T17:47:45.000Z","updated_at":"2023-06-17T17:51:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"f28332f2-6853-4fd5-bdee-5869c6c37658","html_url":"https://github.com/jukbot/vercel-ai-chat-openai","commit_stats":null,"previous_names":["jukbot/vercel-ai-chat-openai"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jukbot%2Fvercel-ai-chat-openai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jukbot%2Fvercel-ai-chat-openai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jukbot%2Fvercel-ai-chat-openai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jukbot%2Fvercel-ai-chat-openai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jukbot","download_url":"https://codeload.github.com/jukbot/vercel-ai-chat-openai/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240779360,"owners_count":19856173,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T01:16:09.003Z","updated_at":"2025-02-26T02:26:23.648Z","avatar_url":"https://github.com/jukbot.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vercel AI SDK, Next.js, and OpenAI Chat Example\n\nThis example shows how to use the [Vercel AI SDK](https://sdk.vercel.ai/docs) with [Next.js](https://nextjs.org/) and [OpenAI](https://openai.com) to create a ChatGPT-like AI-powered streaming chat bot.\n\n## Deploy your own\n\nDeploy the example using [Vercel](https://vercel.com?utm_source=github\u0026utm_medium=readme\u0026utm_campaign=ai-sdk-example):\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel-labs%2Fai%2Ftree%2Fmain%2Fexamples%2Fnext-openai\u0026env=OPENAI_API_KEY\u0026envDescription=OpenAI%20API%20Key\u0026envLink=https%3A%2F%2Fplatform.openai.com%2Faccount%2Fapi-keys\u0026project-name=vercel-ai-chat-openai\u0026repository-name=vercel-ai-chat-openai)\n\n## How to use\n\nExecute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), or [pnpm](https://pnpm.io) to bootstrap the example:\n\n```bash\nnpx create-next-app --example https://github.com/vercel-labs/ai/tree/main/examples/next-openai next-openai-app\n```\n\n```bash\nyarn create next-app --example https://github.com/vercel-labs/ai/tree/main/examples/next-openai next-openai-app\n```\n\n```bash\npnpm create next-app --example https://github.com/vercel-labs/ai/tree/main/examples/next-openai next-openai-app\n```\n\nTo run the example locally you need to:\n\n1. Sign up at [OpenAI's Developer Platform](https://platform.openai.com/signup).\n2. Go to [OpenAI's dashboard](https://platform.openai.com/account/api-keys) and create an API KEY.\n3. Set the required OpenAI environment variable as the token value as shown [the example env file](./.env.local.example) but in a new file called `.env.local`\n4. `pnpm install` to install the required dependencies.\n5. `pnpm dev` to launch the development server.\n\n## Learn More\n\nTo learn more about OpenAI, Next.js, and the Vercel AI SDK take a look at the following resources:\n\n- [Vercel AI SDK docs](https://sdk.vercel.ai/docs)\n- [Vercel AI Playground](https://play.vercel.ai)\n- [OpenAI Documentation](https://platform.openai.com/docs) - learn about OpenAI features and API.\n- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjukbot%2Fvercel-ai-chat-openai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjukbot%2Fvercel-ai-chat-openai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjukbot%2Fvercel-ai-chat-openai/lists"}