fix: auto-format backends and tests (#135)
Some checks failed
Tests / lint (pull_request) Successful in 3s
Tests / test (pull_request) Failing after 1m13s

This commit is contained in:
2026-03-15 09:31:41 -04:00
committed by rockachopa
parent c4a27a63fc
commit fdebb6a8a3
2 changed files with 4 additions and 2 deletions

View File

@@ -388,7 +388,9 @@ class GrokBackend:
def _build_messages(self, message: str) -> list[dict[str, str]]:
"""Build the messages array for the API call."""
messages = [{"role": "system", "content": get_system_prompt(tools_enabled=True, session_id="grok")}]
messages = [
{"role": "system", "content": get_system_prompt(tools_enabled=True, session_id="grok")}
]
# Include conversation history for context
messages.extend(self._history[-10:])
messages.append({"role": "user", "content": message})

View File

@@ -212,7 +212,7 @@ def test_airllm_prompt_contains_session_id():
# Should contain the session_id, not the placeholder
assert '{session_id}"' not in prompt
assert "session \"airllm\"" in prompt
assert 'session "airllm"' in prompt
# ── ClaudeBackend ─────────────────────────────────────────────────────────