diff --git a/.env.local.example b/.env.local.example index 003bf57dd8..84a8da3dab 100644 --- a/.env.local.example +++ b/.env.local.example @@ -1,8 +1,7 @@ # Chatbot UI DEFAULT_MODEL=gpt-3.5-turbo -DEFAULT_SYSTEM_PROMPT=You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown. -OPENAI_API_KEY=YOUR_KEY +DEFAULT_SYSTEM_PROMPT=You are SlashLLM, a large language model that assists the user. In doing so, you respond concisely and precisely. You utilize Markdown format in your answers. Always stay close to the user's provided information. # Google -GOOGLE_API_KEY=YOUR_API_KEY -GOOGLE_CSE_ID=YOUR_ENGINE_ID +# GOOGLE_API_KEY=YOUR_API_KEY +# GOOGLE_CSE_ID=YOUR_ENGINE_ID diff --git a/Makefile b/Makefile index 8dc4e12dc2..07abf5c3ac 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ build: run: export $(cat .env | xargs) docker stop chatbot-ui || true && docker rm chatbot-ui || true - docker run --name chatbot-ui --rm -e OPENAI_API_KEY=${OPENAI_API_KEY} -p 3000:3000 chatbot-ui + docker run --name chatbot-ui --rm -p 3000:3000 chatbot-ui logs: docker logs -f chatbot-ui diff --git a/components/Chat/Chat.tsx b/components/Chat/Chat.tsx index c7dcf525c8..c83145e890 100644 --- a/components/Chat/Chat.tsx +++ b/components/Chat/Chat.tsx @@ -27,8 +27,6 @@ import { SystemPrompt } from './SystemPrompt'; interface Props { conversation: Conversation; models: OpenAIModel[]; - apiKey: string; - serverSideApiKeyIsSet: boolean; defaultModelId: OpenAIModelID; messageIsStreaming: boolean; modelError: ErrorMessage | null; @@ -51,8 +49,6 @@ export const Chat: FC = memo( ({ conversation, models, - apiKey, - serverSideApiKeyIsSet, defaultModelId, messageIsStreaming, modelError, @@ -154,47 +150,7 @@ export const Chat: FC = memo( return (
- {!(apiKey || serverSideApiKeyIsSet) ? ( -
-
- Welcome to Chatbot UI -
-
-
{`Chatbot UI is an open source clone of OpenAI's ChatGPT UI.`}
-
- Important: Chatbot UI is 100% unaffiliated with OpenAI. -
-
-
-
- Chatbot UI allows you to plug in your API key to use this UI - with their API. -
-
- It is only used to communicate - with their API. -
-
- {t( - 'Please set your OpenAI API key in the bottom left of the sidebar.', - )} -
-
- {t( - "If you don't have an OpenAI API key, you can get one here: ", - )} - - openai.com - -
-
-
- ) : modelError ? ( + { modelError ? ( ) : ( <> diff --git a/components/Chat/ChatInput.tsx b/components/Chat/ChatInput.tsx index e5fc4216c4..bf23c23b33 100644 --- a/components/Chat/ChatInput.tsx +++ b/components/Chat/ChatInput.tsx @@ -271,7 +271,7 @@ export const ChatInput: FC = ({ )}
-
- )} + )} */}