- Install dependencies:
npm install- Create a
.envfile in the root folder.
Add the following environment variables to your .env file:
REACT_APP_TENANT_ID=your_tenant_id
REACT_APP_FLOW_ID=your_flow_id
REACT_APP_BEARER_TOKEN=your_bearer_tokenAdd your OpenAI API key to the .env file:
REACT_APP_OPENAI_API_KEY=your_openai_api_key-
Install Ollama:
Download and install from Ollama's website. -
Finding an Ollama Model Find a model you like from Ollama's website.
-
Pull a model (e.g., LLaMA 3):
ollama pull llama3- Start the Ollama server (if not already running):
ollama serve- Update your
.envfile:
REACT_APP_API_BASE_URL=http://localhost:11434- Add the model to the modelOptions variable eg.
{ label: "Qwen", value: "qwen2.5:1.5b" },
and in the ModelSwitcher component in the modelIcons variable add
"model": <OllamaIcon />,
Run the following command to start the application:
npm start