refactor: update configuration settings, enhance public API integration, and streamline service imports while removing deprecated files
This commit is contained in:
1 parent
7f0db522ae
commit
928faabbac
55 files changed
+2700
-506
No files matched your search
+25
-25
@@ -2,8 +2,8 @@
|
||||
app_url = "http://127.0.0.1:8000"
|
||||
app_key = "grok2api"
|
||||
api_key = ""
|
||||
public_enabled = true
|
||||
public_key = ""
|
||||
public_enabled = false
|
||||
image_format = "url"
|
||||
video_format = "html"
|
||||
temporary = true
|
||||
@@ -20,34 +20,13 @@ cf_clearance = ""
|
||||
browser = "chrome136"
|
||||
user_agent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36"
|
||||
|
||||
[voice]
|
||||
timeout = 120
|
||||
|
||||
[chat]
|
||||
concurrent = 10
|
||||
timeout = 60
|
||||
stream_timeout = 60
|
||||
|
||||
[video]
|
||||
concurrent = 10
|
||||
timeout = 60
|
||||
stream_timeout = 60
|
||||
|
||||
[retry]
|
||||
max_retry = 3
|
||||
retry_status_codes = [401,429,403]
|
||||
retry_backoff_base = 0.5
|
||||
retry_backoff_factor = 2.0
|
||||
retry_backoff_max = 30.0
|
||||
retry_budget = 90.0
|
||||
|
||||
[image]
|
||||
timeout = 120
|
||||
stream_timeout = 120
|
||||
final_timeout = 15
|
||||
nsfw = true
|
||||
medium_min_bytes = 30000
|
||||
final_min_bytes = 100000
|
||||
retry_backoff_factor = 2
|
||||
retry_backoff_max = 30
|
||||
retry_budget = 90
|
||||
|
||||
[token]
|
||||
auto_refresh = true
|
||||
@@ -61,6 +40,27 @@ reload_interval_sec = 30
|
||||
enable_auto_clean = true
|
||||
limit_mb = 1024
|
||||
|
||||
[chat]
|
||||
concurrent = 10
|
||||
timeout = 60
|
||||
stream_timeout = 60
|
||||
|
||||
[image]
|
||||
timeout = 120
|
||||
stream_timeout = 120
|
||||
final_timeout = 15
|
||||
nsfw = true
|
||||
medium_min_bytes = 30000
|
||||
final_min_bytes = 100000
|
||||
|
||||
[video]
|
||||
concurrent = 10
|
||||
timeout = 60
|
||||
stream_timeout = 60
|
||||
|
||||
[voice]
|
||||
timeout = 120
|
||||
|
||||
[asset]
|
||||
upload_concurrent = 30
|
||||
upload_timeout = 60
|
||||
|
||||
Reference in new issue
Block a user