refac: modularize backend IV
This commit is contained in:
parent
c88ba1e5a4
commit
3a9854c5db
8 changed files with 822 additions and 666 deletions
7
state.py
7
state.py
|
|
@ -69,6 +69,13 @@ app_state = {
|
|||
"httpx_clients": {}, # endpoint -> httpx.AsyncClient(UDS transport) for .sock endpoints
|
||||
}
|
||||
|
||||
# Default outbound HTTP headers attached to every backend request.
|
||||
default_headers = {
|
||||
"HTTP-Referer": "https://nomyo.ai",
|
||||
"Referer": "https://nomyo.ai",
|
||||
"X-Title": "NOMYO Router",
|
||||
}
|
||||
|
||||
# ------------------------------------------------------------------
|
||||
# Token Count Buffer (for write-behind pattern)
|
||||
# ------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue