fix(agent): enhance 413 error handling and improve conversation history management in tests

This commit is contained in:
teknium1 2026-02-27 23:04:32 -08:00
parent 2c817ce4a5
commit 19f28a633a
4 changed files with 23 additions and 5 deletions

View file

@ -468,7 +468,7 @@ class TestBuildApiKwargs:
kwargs = agent._build_api_kwargs(messages)
assert kwargs["model"] == agent.model
assert kwargs["messages"] is messages
assert kwargs["timeout"] == 600.0
assert kwargs["timeout"] == 900.0
def test_provider_preferences_injected(self, agent):
agent.providers_allowed = ["Anthropic"]