Skip to content

eflaatten/cxai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CXFabric AI Chat Interface

Installation

  1. Install dependencies:
npm install
  1. Create a .env file in the root folder.

Configuration

For CXFabric Flow

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_token

Calling OpenAI API Directly

Add your OpenAI API key to the .env file:

REACT_APP_OPENAI_API_KEY=your_openai_api_key

Using Ollama

  1. Install Ollama:
    Download and install from Ollama's website.

  2. Finding an Ollama Model Find a model you like from Ollama's website.

  3. Pull a model (e.g., LLaMA 3):

ollama pull llama3
  1. Start the Ollama server (if not already running):
ollama serve
  1. Update your .env file:
REACT_APP_API_BASE_URL=http://localhost:11434
  1. 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 />,

Start the Application

Run the following command to start the application:

npm start

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published