8000 GitHub - u1i/ovid: A modern, reusable template for building AI-powered chat applications using Flask and Azure OpenAI.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ ovid Public

A modern, reusable template for building AI-powered chat applications using Flask and Azure OpenAI.

Notifications You must be signed in to change notification settings

u1i/ovid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ovid - AI Chat Application Template

A modern, reusable template for building AI-powered chat applications using Flask and Azure OpenAI.

Features

  • Modern, responsive UI with Tailwind CSS
  • Real-time chat using WebSocket
  • Azure OpenAI integration
  • Environment configuration
  • Structured message handling
  • Markdown and table support in responses
  • Loading states and animations
  • Error handling

Quick Start

  1. Clone this template
  2. Copy .env.template to .env and fill in your Azure OpenAI credentials
  3. Install dependencies: pip install -r requirements.txt
  4. Run the application:
    • Development mode: python app.py
    • Production mode: python app.py --prod

Environment Variables

Create a .env file with the following variables:

AZURE_OPENAI_API_KEY=your-api-key
AZURE_OPENAI_ENDPOINT=your-endpoint
AZURE_OPENAI_API_VERSION=2023-05-15
FLASK_SECRET_KEY=your-secret-key

Project Structure

ovid/
├── app.py              # Main Flask application
├── requirements.txt    # Python dependencies
├── .env.template      # Environment variables template
├── static/
│   ├── css/
│   │   └── style.css  # Custom styles
│   └── js/
│       └── chat.js    # Chat functionality
└── templates/
    └── chat.html      # Chat interface

Customization

  1. Modify templates/chat.html for UI changes
  2. Update static/css/style.css for custom styling
  3. Adjust Azure OpenAI parameters in app.py
  4. Modify system prompts in app.py

Contributing

Feel free to submit issues and enhancement requests!

About

A modern, reusable template for building AI-powered chat applications using Flask and Azure OpenAI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0