feat: Implement configurable OpenWebUI base URL for deployment scripts and update documentation.

This commit is contained in:
fujie
2026-03-11 23:32:00 +08:00
parent 5fe66a5803
commit fdf95a2825
13 changed files with 203 additions and 128 deletions

View File

@@ -1886,19 +1886,9 @@ class Filter:
"""
Check if compression should be skipped.
Returns True if:
1. The base model includes 'copilot_sdk'
"""
# Check if base model includes copilot_sdk
if __model__:
base_model_id = __model__.get("base_model_id", "")
if "copilot_sdk" in base_model_id.lower():
return True
# Also check model in body
model_id = body.get("model", "")
if "copilot_sdk" in model_id.lower():
if body.get("is_copilot_model", False):
return True
return False
async def inlet(

View File

@@ -114,6 +114,7 @@ class Filter:
# Check if it's a Copilot model
is_copilot_model = self._is_copilot_model(current_model)
body["is_copilot_model"] = is_copilot_model
await self._emit_debug_log(
__event_emitter__,