forked from juzeon/poe-openai-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.example
32 lines (25 loc) · 1.1 KB
/
.env.example
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
# The port number for the proxy service. The proxied OpenAI API endpoint will be: http://localhost:8080/v1/chat/completions
PORT = 8080
# A list of poe tokens. You can get them from the cookies on poe.com, they look like this: p-b=fdasac5a1dfa6%3D%3D
# TOKENS = "fdasac5a1dfa6%3D%3D,token2,token3"
TOKENS = "fdasac5a1dfa6%3D%3D"
# header auth
AuthKey = "sk-123456"
# The proxy that will be used to connect to poe.com. Leave it blank if you do not use a proxy | todo
proxy = ""
# Use leading prompts to indicate roles if enabled. You'd better disable it if you are using tools like https://github.com/TheR1D/shell_gpt
# 0:disable, 1:enable, 2:auto detect
# Example:
# ||>User:
# Hello!
# ||Assistant:
# Hello! How can I assist you today?
SIMULATE_ROLES = 0
# Rate limit. Default to 10 api calls per token in 1 minute
RATE_LIMIT = 10
# Cool down of seconds. One same token cannot be used more than once in n seconds
COOL_DOWN = 10
# Timeout of seconds per response chunk
# This timeout will now reset every time a chunk is received
# so there's no need for a very large value to compensate for a very long reply
TIMEOUT = 60