mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-09-30 22:03:14 +00:00
* feat(dashboard): stream agent chat via @langchain/react v2 protocol Replace the bespoke SSE + React Query polling path with LangGraph’s v2 event stream through credentialed dashboard proxies. Run starts go through stream commands; mid-run follow-ups still queue via /messages. * fix import path * fix tests after rebase * format * PR feedback * improved model fallback * fix image handling * embrace sdk * cleanup * cr * more cleanup * fix cors * harden security --------- Co-authored-by: open-swe[bot] <215916821+open-swe[bot]@users.noreply.github.com> Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
13 lines
477 B
Python
13 lines
477 B
Python
from __future__ import annotations
|
|
|
|
from agent.utils.model import anthropic_effort_for, anthropic_thinking_for
|
|
|
|
|
|
def test_anthropic_uses_adaptive_thinking_and_effort() -> None:
|
|
assert anthropic_thinking_for("high") == {"type": "adaptive", "display": "summarized"}
|
|
assert anthropic_effort_for("high") == "high"
|
|
|
|
|
|
def test_anthropic_ignores_unknown_effort() -> None:
|
|
assert anthropic_thinking_for("unknown") is None
|
|
assert anthropic_effort_for("unknown") is None
|