litellm/tests/llm_translation/test_together_ai.py
devin-ai-integration[bot] 805bb6888b
test: make 38 legacy live base-class translation tests offline (#45351)
* test: make 38 legacy live base-class translation tests offline

* test: tighten offline base-class translation test assertions

* test: cover remaining nova invoke and xai base copies offline

* test: assert outbound bodies, restore dropped providers and fix shared tool dict mutation in base chat translation tests

* test: assert outbound thinking bodies and streamed thinking blocks across anthropic and bedrock converse

* test: restore volcengine/voyage max_retries and openai timestamp_granularities coverage, assert rerank id/meta/cost and scope the interactions transport fixture

* test: call the raw provider helper for thinking stream cases

* test: flatten thinking blocks before collecting signatures

---------

Co-authored-by: yuneng <yuneng@berri.ai>
2026-10-08 23:18:25 +00:00

20 lines
567 B
Python

"""
Test TogetherAI LLM
"""
from base_llm_unit_tests import BaseLLMChatTest
from tests._live_test_helpers import cheapest_together_chat_model
import json
from datetime import datetime
from unittest.mock import AsyncMock
import litellm
import pytest
class TestTogetherAI(BaseLLMChatTest):
test_basic_tool_calling = None
test_function_calling_with_tool_response = None
def get_base_completion_call_args(self) -> dict:
litellm.set_verbose = True
return {"model": cheapest_together_chat_model(function_calling=True, response_schema=True)}