File size: 3,225 Bytes
aa04092
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# MyChatMe - Multilingual AI Chat Application

[![Built with Streamlit](https://img.shields.io/badge/built%20with-Streamlit-ff4b4b.svg)](https://www.streamlit.io)
[![Python 3.12](https://img.shields.io/badge/python-3.12-blue.svg)](https://www.python.org/downloads/release/python-3120/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

An advanced multilingual AI chat application designed to streamline cross-language communication and prompt template management.

[ζ—₯本θͺž](README.md) | English

## 🌟 Key Features

- πŸ€– Multiple AI Model Support
  - OpenAI GPT-4
  - Google Gemini-2.0
  - Anthropic Claude-3.5
- 🌐 Multilingual Support
  - English and Japanese interfaces
  - Language switching capability
- πŸ“ Prompt Template Management
  - Save and edit templates
  - Category classification
- πŸ’Ύ Chat History
  - Export as Markdown
  - PDF output support
- 🎨 Customizable Themes
- ⚑ Responsive Design

## πŸ› οΈ Technology Stack

- **Frontend**: Streamlit
- **Backend**: Python 3.12
- **AI Integration**:
  - OpenAI API
  - Google Gemini API (via OpenRouter)
  - Anthropic Claude API (via OpenRouter)
- **Internationalization**: Custom i18n system
- **Data Export**: ReportLab (PDF generation)

## πŸ“‹ Prerequisites

- Python 3.12 or higher
- OpenAI API key
- OpenRouter API key (for Gemini-2.0 and Claude-3.5)

## πŸš€ Setup

1. Clone the repository:
```bash
git clone https://github.com/yourusername/mychatme.git
cd mychatme
```

2. Install dependencies:
```bash
pip install -r requirements.txt
```

3. Set environment variables:
```bash
# Create .env file
OPENAI_API_KEY=your_openai_api_key
OPENROUTER_API_KEY=your_openrouter_api_key
```

4. Start the application:
```bash
streamlit run main.py
```

## πŸ’‘ Usage

1. **Language Selection**:
   - Choose English/Japanese from the sidebar

2. **AI Model Selection**:
   - Choose between GPT-4, Gemini-2.0, and Claude-3.5
   - Select based on each model's strengths

3. **Prompt Templates**:
   - Create and save templates
   - Load saved templates
   - Edit and delete templates

4. **Chat History Management**:
   - Export chat content (MD/PDF)
   - Timezone-aware history management

5. **Theme Customization**:
   - Light/Dark mode
   - Color theme changes

## πŸ”’ Security

- API credentials managed via environment variables
- Secure session state management
- Error handling and rate limiting implementation

## 🀝 Contributing

1. Fork this repository
2. Create a new branch (`git checkout -b feature/amazing-feature`)
3. Commit your changes (`git commit -m 'Add amazing feature'`)
4. Push to the branch (`git push origin feature/amazing-feature`)
5. Create a Pull Request

## πŸ“œ License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## πŸ™ Acknowledgments

- [Streamlit](https://streamlit.io/) - Amazing web application framework
- [OpenAI](https://openai.com/) - GPT-4 model provider
- [OpenRouter](https://openrouter.ai/) - Unified AI model access
- [ReportLab](https://www.reportlab.com/) - PDF export functionality

## πŸ“ž Support

If you have any issues or suggestions, please let us know in the GitHub Issues section.