Update main.py
Browse files
main.py
CHANGED
@@ -24,11 +24,7 @@ app = FastAPI()
|
|
24 |
BASE_URL = "https://aichatonlineorg.erweima.ai/aichatonline"
|
25 |
APP_SECRET = os.getenv("APP_SECRET","666")
|
26 |
ACCESS_TOKEN = os.getenv("SD_ACCESS_TOKEN","")
|
27 |
-
headers = {
|
28 |
-
':authority:': 'sider.ai',
|
29 |
-
':method:': 'POST',
|
30 |
-
':path:': '/api/v3/completion/text',
|
31 |
-
':scheme:': 'https',
|
32 |
'accept': '*/*',
|
33 |
'accept-encoding:': 'gzip, deflate, br, zstd',
|
34 |
'accept-language': 'en-US,en;q=0.9',
|
|
|
24 |
BASE_URL = "https://aichatonlineorg.erweima.ai/aichatonline"
|
25 |
APP_SECRET = os.getenv("APP_SECRET","666")
|
26 |
ACCESS_TOKEN = os.getenv("SD_ACCESS_TOKEN","")
|
27 |
+
headers = {
|
|
|
|
|
|
|
|
|
28 |
'accept': '*/*',
|
29 |
'accept-encoding:': 'gzip, deflate, br, zstd',
|
30 |
'accept-language': 'en-US,en;q=0.9',
|