feat(webui): refine output timeline and model controls (#4108)
* feat(webui): refine output timeline and composer queue * feat(webui): add provider model picker * fix(webui): polish model settings and heartbeat checks * chore: keep heartbeat changes out of webui pr * refactor(webui): isolate settings routes * fix(providers): align minimax anthropic test * fix(providers): keep minimax anthropic base sdk-compatible * fix(providers): normalize anthropic base urls
This commit is contained in:
@@ -27,6 +27,7 @@ _INLINE_MARKDOWN_IMAGE_EXTS: frozenset[str] = frozenset({
|
||||
".jpeg",
|
||||
".webp",
|
||||
".gif",
|
||||
".svg",
|
||||
})
|
||||
_INLINE_MARKDOWN_VIDEO_EXTS: frozenset[str] = frozenset({
|
||||
".mp4",
|
||||
@@ -87,7 +88,12 @@ def rewrite_local_markdown_images(
|
||||
|
||||
|
||||
def _media_kind_from_name(name: str) -> str:
|
||||
return "video" if Path(name).suffix.lower() in _INLINE_MARKDOWN_VIDEO_EXTS else "image"
|
||||
ext = Path(name).suffix.lower()
|
||||
if ext in _INLINE_MARKDOWN_IMAGE_EXTS:
|
||||
return "image"
|
||||
if ext in _INLINE_MARKDOWN_VIDEO_EXTS:
|
||||
return "video"
|
||||
return "file"
|
||||
|
||||
|
||||
def webui_transcript_path(session_key: str) -> Path:
|
||||
|
||||
Reference in New Issue
Block a user