Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions tests/integration_tests/test_text_generation/test_generate.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
"""Integration tests for text generation across all providers."""

import pytest
from celeste_text_generation import TextGenerationOutput, TextGenerationUsage
from celeste_text_generation.parameters import TextGenerationParameters

from celeste import Capability, Provider, create_client

Expand All @@ -19,14 +17,15 @@
)
@pytest.mark.integration
@pytest.mark.asyncio
async def test_generate(
provider: Provider, model: str, parameters: TextGenerationParameters
) -> None:
async def test_generate(provider: Provider, model: str, parameters: dict) -> None:
"""Test text generation with max_tokens parameter across all providers.

This test demonstrates that the unified API works identically across
all providers using the same code - proving the abstraction value.
"""
# Import here to avoid circular import during pytest collection
from celeste_text_generation import TextGenerationOutput, TextGenerationUsage

# Arrange
client = create_client(
capability=Capability.TEXT_GENERATION,
Expand Down
Loading