https://github.com/cherninlab/genai-ui-qwik-experiment
https://github.com/cherninlab/genai-ui-qwik-experiment
config github-config
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cherninlab/genai-ui-qwik-experiment
- Owner: cherninlab
- Created: 2024-08-30T11:45:06.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-21T16:52:43.000Z (over 1 year ago)
- Last Synced: 2024-12-27T14:44:28.377Z (over 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 119 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# genAi UI (QWIK experiment)
## Key Components
- `componentFactory`: Defines reusable components for rendering AI responses
- `localMessagesStore`: Stores predefined responses for common queries
- `anthropicApi`, `mistralApi`, `openaiApi`: Wrappers for AI provider APIs
- `systemPrompt`: Defines the AI system prompt and response parsing logic
## Setup and Configuration
1. Clone the repository
2. Install dependencies: `npm install` or `bun install`
3. Set up environment variables:
- `DEFAULT_AI_PROVIDER`: Default AI provider to use (anthropic, mistral, or openai)
- `_API_KEY`: API key for the chosen provider
- `_MODEL`: Model to use for the chosen provider (optional)
## Running the Project
- Development mode: `npm run dev` or `bun run dev`
- Production build: `npm run build` or `bun run build`
- Preview production build: `npm run preview` or `bun run preview`
## Contributing
Contributions are welcome! Please feel free to submit a Pull Request.