forked from run-llama/chat-llamaindex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate-llama.sh
33 lines (28 loc) · 844 Bytes
/
create-llama.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
echo -e "\nAdding sources from create-llama..."
# Remove current create-llama folder
rm -rf app/api/chat/config
rm -rf app/api/files
rm -rf cl
# Run the node command with specified options
npx -y [email protected] \
--framework nextjs \
--template streaming \
--engine context \
--frontend \
--ui shadcn \
--observability none \
--open-ai-key "Set your OpenAI key here" \
--tools none \
--post-install-action none \
--no-llama-parse \
--example-file \
--vector-db none \
--use-pnpm \
-- cl >/dev/null
# copy routes from create-llama to app
# Note: if changes on these routes are needed, copy them to the project's app folder
cp -r cl/app/api/files app/api/files
cp -r cl/app/api/chat/config app/api/chat/config
# copy example .env file
cp cl/.env .env.development.local