v2.11.1 (#721)
Co-authored-by: Clément Drouin <clement.drouin@mistral.ai> Co-authored-by: Clément Sirieix <clement.sirieix@mistral.ai> Co-authored-by: Guillaume LE GOFF <guillaume.lgf@gmail.com> Co-authored-by: Mert Unsal <mertunsal1905@gmail.com> Co-authored-by: Michel Thomazo <51709227+michelTho@users.noreply.github.com> Co-authored-by: Quentin <quentin.torroba@mistral.ai> Co-authored-by: Val <102326092+vdeva@users.noreply.github.com> Co-authored-by: Vincent G <10739306+VinceOPS@users.noreply.github.com> Co-authored-by: maximevoisin-pm <maxime.voisin@mistral.ai> Co-authored-by: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
adb1ca74ce
commit
cf3f4ca58f
143 changed files with 3457 additions and 1351 deletions
|
|
@ -35,13 +35,10 @@ def build_mistral_provider() -> ProviderConfig:
|
|||
)
|
||||
|
||||
|
||||
def build_acp_agent_loop(
|
||||
*, provider: ProviderConfig | None = None, enable_browser_sign_in: bool = True
|
||||
) -> VibeAcpAgentLoop:
|
||||
def build_acp_agent_loop(*, provider: ProviderConfig | None = None) -> VibeAcpAgentLoop:
|
||||
return VibeAcpAgentLoop(
|
||||
onboarding_context_loader=lambda: OnboardingContext(
|
||||
provider=provider or build_mistral_provider(),
|
||||
enable_experimental_browser_sign_in=enable_browser_sign_in,
|
||||
provider=provider or build_mistral_provider()
|
||||
)
|
||||
)
|
||||
|
||||
|
|
@ -65,7 +62,7 @@ class TestACPInitialize:
|
|||
),
|
||||
)
|
||||
assert response.agent_info == Implementation(
|
||||
name="@mistralai/mistral-vibe", title="Mistral Vibe", version="2.11.0"
|
||||
name="@mistralai/mistral-vibe", title="Mistral Vibe", version="2.11.1"
|
||||
)
|
||||
|
||||
assert response.auth_methods is not None
|
||||
|
|
@ -97,7 +94,7 @@ class TestACPInitialize:
|
|||
),
|
||||
)
|
||||
assert response.agent_info == Implementation(
|
||||
name="@mistralai/mistral-vibe", title="Mistral Vibe", version="2.11.0"
|
||||
name="@mistralai/mistral-vibe", title="Mistral Vibe", version="2.11.1"
|
||||
)
|
||||
|
||||
assert response.auth_methods is not None
|
||||
|
|
@ -143,16 +140,6 @@ class TestACPInitialize:
|
|||
assert delegated_browser_auth_method.name == BROWSER_AUTH_NAME
|
||||
assert delegated_browser_auth_method.description == BROWSER_AUTH_DESCRIPTION
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_initialize_omits_browser_auth_when_experimental_flag_disabled(
|
||||
self,
|
||||
) -> None:
|
||||
acp_agent_loop = build_acp_agent_loop(enable_browser_sign_in=False)
|
||||
|
||||
response = await acp_agent_loop.initialize(protocol_version=PROTOCOL_VERSION)
|
||||
|
||||
assert response.auth_methods == []
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_initialize_omits_browser_auth_when_provider_unsupported(
|
||||
self,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue