-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.yaml
More file actions
83 lines (83 loc) · 2.43 KB
/
main.yaml
File metadata and controls
83 lines (83 loc) · 2.43 KB
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
version: "1"
debug: true
browser:
fingerprint-chromium-path: "/Applications/Chromium.app/Contents/MacOS/Chromium"
# fingerprint-chromium-path: "/usr/bin/ungoogled-chromium"
args:
- "--fingerprint=1000"
- "--timezone=America/Los_Angeles"
- "--lang=en-US"
- "--accept-lang=en-US"
user-data-dir: "/tmp/user-data"
keep-user-data: false
proxy-url: ""
api-port: "2048"
headless: false
logfile: "any-ai-proxy.log"
tokens: # Global tokens for API validation (optional)
- "global-token-1"
- "global-token-2"
instance:
- name: "gemini-aistudio"
adapter: "gemini-aistudio"
text-file-prompt-min-size: 1000
proxy-url: ""
url: "https://aistudio.google.com/prompts/new_chat"
sniff-url:
- "https://alkalimakersuite-pa.clients6.google.com/$rpc/google.internal.alkali.applications.makersuite.v1.MakerSuiteService/GenerateContent"
auth:
files:
- "auth/gemini-aistudio-1.json"
- "auth/gemini-aistudio-2.json"
check: "ms-settings-menu"
runner:
init: "init-system"
chat_completions: "chat_completions"
context_canceled: "context-canceled"
error_check: "error-check"
tokens: # Instance-specific tokens for API validation (optional)
- "gemini-token-3"
- "gemini-token-4"
- name: "chatgpt"
adapter: "chatgpt"
proxy-url: ""
url: "https://chatgpt.com/"
sniff-url:
- "https://chatgpt.com/backend-api/conversation"
- "https://chatgpt.com/backend-api/f/conversation"
auth:
files:
- "auth/chatgpt.json"
check: 'div[id="sidebar-header"]'
runner:
init: "init"
chat_completions: "chat_completions"
context_canceled: "context-canceled"
- name: "grok"
adapter: "grok"
proxy-url: ""
url: "https://grok.com/"
sniff-url:
- "https://grok.com/rest/app-chat/conversations/new"
auth:
files:
- "auth/grok.json"
check: 'a[href="/chat#private"]'
runner:
init: "init-system"
chat_completions: "chat_completions"
context_canceled: "context-canceled"
- name: "claude"
adapter: "claude"
proxy-url: ""
url: "https://claude.ai/"
sniff-url:
- "https://claude.ai/api/organizations/*/chat_conversations/*/completion"
auth:
files:
- "auth/claude.json"
check: 'span.text-start.block.truncate'
runner:
init: "init-system"
chat_completions: "chat_completions"
context_canceled: "context-canceled"