-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
41 lines (29 loc) · 1.49 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
#!/usr/bin/env python3
from pathlib import Path
downloads_dir = Path.home() / 'Downloads'
parent_dir = Path(__file__).parent
chatgpt_exported_conversations_json_path = parent_dir / 'conversations.json'
chatgpt_linear_conversations_json_path = parent_dir / 'linear_conversations.json'
alfred_title_max_length = 74
alfred_subtitle_max_length = 108
message_preview_len = 100
chatgpt_data_export_zip_glob_pattern = r'*[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]-????-??-??-??-??-??.zip'
chatgpt_data_export_zip_regex_pattern = (
r'[0-9a-f]{64}-\d{4}-\d{2}-\d{2}-\d{2}-\d{2}-\d{2}.zip'
)
generated_dir = parent_dir / 'generated'
generated_dir.mkdir(exist_ok=True)
assets_dir = parent_dir / 'assets'
gpt_4_icon_path = assets_dir / 'GPT-4.png'
gpt_4_plugins_icon_path = assets_dir / 'gpt-4-plugins-purple.png'
gpt_4_code_interpreter_icon_path = assets_dir / 'gpt-4-code-interpreter.png'
gpt_4_gizmo_icon_path = assets_dir / 'rg-icon.png'
alfred_workflow_cache_key = 'chatgpt-alfred-workflow'
pre_computed_rows_json = generated_dir / 'pre_computed_rows.json'
pre_computed_alfred_json = generated_dir / 'pre_computed_alfred.json'
pre_computed_rows_msgpack = generated_dir / 'pre_computed_rows.msgpack'
# cSpell:disable
dalle_non_sense_messages = {
r'DALL·E returned some images. They are already displayed to the user. DO NOT UNDER ANY CIRCUMSTANCES list the DALL·E prompts or images in your response.'
}
# cSpell:enable