Spaces:
Running
Running
Update README.md
Browse files
README.md
CHANGED
@@ -1,40 +1,72 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: gradio
|
7 |
-
sdk_version:
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
-
license:
|
11 |
-
short_description: Black hat type
|
12 |
---
|
13 |
-
π OpenRouter Multi-Model Chat
|
14 |
|
15 |
-
|
16 |
|
17 |
-
|
18 |
-
|
19 |
-
-
|
20 |
-
-
|
21 |
-
|
22 |
-
- π Model comparison
|
23 |
|
24 |
-
|
25 |
-
1. Get your API key from [OpenRouter](https://openrouter.ai)
|
26 |
-
2. Set `OPENROUTER_API_KEY` in Space Settings > Variables and Secrets
|
27 |
-
3. Start chatting!
|
28 |
|
29 |
-
|
30 |
-
- GPT-4
|
31 |
-
- Claude 3
|
32 |
-
- Gemini Pro
|
33 |
-
- Llama 3 70B
|
34 |
-
- Mixtral 8x7B
|
35 |
-
- And
|
36 |
|
|
|
37 |
|
38 |
-
|
|
|
|
|
|
|
39 |
|
|
|
|
|
|
|
|
|
|
|
40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
title: OpenRouter Multi-Model Chat
|
3 |
+
emoji: π€
|
4 |
+
colorFrom: blue
|
5 |
+
colorTo: purple
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 4.19.0
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
+
license: mit
|
|
|
11 |
---
|
|
|
12 |
|
13 |
+
# π OpenRouter Multi-Model Chat
|
14 |
|
15 |
+
<div align="center">
|
16 |
+
<img src="https://img.shields.io/badge/Gradio-4.19.0-blue" alt="Gradio">
|
17 |
+
<img src="https://img.shields.io/badge/Python-3.8+-green" alt="Python">
|
18 |
+
<img src="https://img.shields.io/badge/License-MIT-yellow" alt="License">
|
19 |
+
</div>
|
|
|
20 |
|
21 |
+
## π― Overview
|
|
|
|
|
|
|
22 |
|
23 |
+
A powerful multi-model chat interface that connects to OpenRouter API, giving you access to:
|
24 |
+
- **GPT-4** (OpenAI)
|
25 |
+
- **Claude 3** Opus, Sonnet, Haiku (Anthropic)
|
26 |
+
- **Gemini Pro** (Google)
|
27 |
+
- **Llama 3** 70B (Meta)
|
28 |
+
- **Mixtral 8x7B** (Mistral)
|
29 |
+
- And 10+ more models!
|
30 |
|
31 |
+
## π Quick Start
|
32 |
|
33 |
+
### 1. Get API Key
|
34 |
+
- Sign up at [OpenRouter.ai](https://openrouter.ai)
|
35 |
+
- Go to [Keys](https://openrouter.ai/keys)
|
36 |
+
- Create new key
|
37 |
|
38 |
+
### 2. Set API Key in Space
|
39 |
+
- Go to `Settings` β `Variables and secrets`
|
40 |
+
- Add new secret:
|
41 |
+
- Name: `OPENROUTER_API_KEY`
|
42 |
+
- Value: `sk-or-v1-xxxxx`
|
43 |
|
44 |
+
### 3. Start Chatting!
|
45 |
+
- Select your preferred model
|
46 |
+
- Type your message
|
47 |
+
- Enjoy AI responses!
|
48 |
+
|
49 |
+
## π‘ Features
|
50 |
+
|
51 |
+
### π€ Multi-Model Support
|
52 |
+
Switch between different AI models with a single dropdown:
|
53 |
+
- **OpenAI**: GPT-4, GPT-3.5
|
54 |
+
- **Anthropic**: Claude 3 series
|
55 |
+
- **Google**: Gemini, PaLM
|
56 |
+
- **Open Source**: Llama, Mistral, Yi
|
57 |
+
|
58 |
+
### βοΈ Advanced Controls
|
59 |
+
- **Temperature**: Control creativity (0 = focused, 2 = creative)
|
60 |
+
- **Max Tokens**: Limit response length
|
61 |
+
- **System Prompt**: Set custom instructions
|
62 |
+
- **Streaming**: Real-time response generation
|
63 |
+
|
64 |
+
### π¨ Beautiful UI
|
65 |
+
- Clean, modern interface
|
66 |
+
- Mobile responsive
|
67 |
+
- Dark/Light theme support
|
68 |
+
- Conversation history
|
69 |
+
|
70 |
+
## π Usage Examples
|
71 |
+
|
72 |
+
### Basic Chat
|