mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-09 23:07:41 +00:00
0f63cbea59
* add BaseInteractionsTest * add interactions_api_handler * init bridge * init LiteLLMResponsesInteractionsConfig * LiteLLMResponsesInteractionsHandler * mv test * fixes api spec * docs * fix transform+iterators * docs fix * fix iterator
25 lines
620 B
Python
25 lines
620 B
Python
"""
|
|
Tests for Gemini Interactions API.
|
|
|
|
Inherits from BaseInteractionsTest to run the same test suite against Gemini.
|
|
"""
|
|
|
|
import os
|
|
|
|
from tests.test_litellm.interactions.base_interactions_test import (
|
|
BaseInteractionsTest,
|
|
)
|
|
|
|
|
|
class TestGeminiInteractions(BaseInteractionsTest):
|
|
"""Test Gemini Interactions API using the base test suite."""
|
|
|
|
def get_model(self) -> str:
|
|
"""Return the Gemini model string."""
|
|
return "gemini/gemini-2.5-flash"
|
|
|
|
def get_api_key(self) -> str:
|
|
"""Return the Gemini API key from environment."""
|
|
return os.getenv("GEMINI_API_KEY", "")
|
|
|