Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
feat: init langchain with copilot kits
Browse files Browse the repository at this point in the history
  • Loading branch information
foxminchan committed Jun 10, 2024
1 parent ea0a5d0 commit 5c521a8
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/RookieShop.AppHost/Program.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using Aspire.Hosting;
using Microsoft.Extensions.Hosting;
using Projects;
using RookieShop.AppHost;
Expand Down Expand Up @@ -70,6 +71,7 @@
.AddNpmApp("backoffice", "../RookieShop.Backoffice", "dev:ssl")
.WithHttpEndpoint(3000, env: "PORT")
.WithEnvironment("BROWSER", "none")
.WithEnvironment("OPENAI_API_KEY", openAiKey)
.WithEnvironment("REMOTE_BFF", bff.GetEndpoint(protocol))
.PublishAsDockerFile();

Expand Down
1 change: 1 addition & 0 deletions src/RookieShop.BackOffice/.env.example
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
PORT=
TAVILY_API_KEY=
Binary file modified src/RookieShop.BackOffice/bun.lockb
Binary file not shown.
6 changes: 5 additions & 1 deletion src/RookieShop.BackOffice/env.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@ import { z } from "zod"

export const env = createEnv({
server: {
PORT: z.string().min(1).default("3000"),
TAVILY_API_KEY: z.string().min(1),
OPENAI_API_KEY: z.string().min(1),
REMOTE_BFF: z.string().min(1).url(),
PORT: z.string().min(1).default("3000"),
},
runtimeEnv: {
TAVILY_API_KEY: process.env.TAVILY_API_KEY,
OPENAI_API_KEY: process.env.OPENAI_API_KEY,
REMOTE_BFF: process.env.REMOTE_BFF,
PORT: process.env.PORT,
},
Expand Down
6 changes: 6 additions & 0 deletions src/RookieShop.BackOffice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@
"dependencies": {
"@ckeditor/ckeditor5-build-classic": "^41.4.2",
"@ckeditor/ckeditor5-react": "^7.0.0",
"@copilotkit/backend": "^0.37.0",
"@copilotkit/react-core": "^0.37.0",
"@copilotkit/react-textarea": "^0.37.0",
"@copilotkit/react-ui": "^0.37.0",
"@copilotkit/shared": "^0.37.0",
"@hookform/resolvers": "^3.3.4",
"@langchain/langgraph": "^0.0.22",
"@radix-ui/react-accordion": "^1.1.2",
"@radix-ui/react-alert-dialog": "^1.0.5",
"@radix-ui/react-aspect-ratio": "^1.0.3",
Expand Down

0 comments on commit 5c521a8

Please sign in to comment.