-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
44 lines (35 loc) · 1.13 KB
/
config.py
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
from datetime import datetime
import os
APP_URL = os.getenv("APP_URL", "http://localhost:9876")
APP_VERSION = "0.0.2"
APP_STARTED_AT = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
MESSAGE_COMPLETE = "Complete"
MESSAGE_ASSISTANT = "Assistant"
MESSAGE_VISION = "Vision"
MESSAGE_TYPES = [
MESSAGE_COMPLETE,
MESSAGE_ASSISTANT,
MESSAGE_VISION,
]
DEFAULT_MESSAGES_COMPLETE = [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Write a story about 50 words."},
]
DEFAULT_MESSAGES_ASSISTANT = [
{"role": "assistant", "content": "You are a helpful assistant."},
{"role": "user", "content": "Write a story about 50 words."},
]
DEFAULT_MESSAGES_VISION = [
{
"role": "user",
"content": [
{"type": "text", "text": "What's in this image?"},
{
"type": "image_url",
"image_url": {
"url": "https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg",
},
},
],
}
]