Skip to content

Commit 4d199a7

Browse files
authored
tests: Enable xai integration tests. (#709)
* tests: Enable `xai` integration tests. * Set drop_params also for `xai`
1 parent ab4bfd3 commit 4d199a7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/tests-integration.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
3232
MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }}
3333
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
34+
XAI_API_KEY: ${{ secrets.XAI_API_KEY }}
3435
run: pytest tests/integration/frameworks -v -k "TINYAGENT" --cov --cov-report=xml --cov-append
3536

3637
- name: Upload coverage reports to Codecov

tests/integration/frameworks/test_agent.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ class Steps(BaseModel):
114114
"anthropic/claude-3-5-haiku-latest",
115115
"gemini/gemini-2.5-flash",
116116
"openai/gpt-4.1-nano",
117+
"xai/grok-3-mini-latest",
117118
DEFAULT_SMALL_MODEL_ID,
118119
],
119120
)
@@ -152,7 +153,7 @@ def write_file(text: str) -> None:
152153
pytest.skip(f"{env_check['missing_keys']} needed for {model_id}")
153154

154155
model_args = get_default_agent_model_args(agent_framework)
155-
if "gemini" in model_id:
156+
if "gemini" in model_id or "xai" in model_id:
156157
model_args["drop_params"] = True
157158

158159
tools = [

0 commit comments

Comments
 (0)