mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-11 03:38:38 +00:00
32 lines
1.1 KiB
Python
32 lines
1.1 KiB
Python
import os
|
|
import sys
|
|
|
|
|
|
import pytest
|
|
|
|
# sys.path.insert(
|
|
# 0, os.path.abspath("../..")
|
|
# ) # noqa
|
|
# ) # Adds the parent directory to the system path
|
|
|
|
from base_llm_unit_tests import BaseLLMChatTest
|
|
from litellm.llms.groq.chat.transformation import GroqChatConfig
|
|
|
|
class TestGroq(BaseLLMChatTest):
|
|
def get_base_completion_call_args(self) -> dict:
|
|
return {
|
|
"model": "groq/llama-3.3-70b-versatile",
|
|
}
|
|
|
|
def test_tool_call_no_arguments(self, tool_call_no_arguments):
|
|
"""Test that tool calls with no arguments is translated correctly. Relevant issue: https://github.com/BerriAI/litellm/issues/6833"""
|
|
pass
|
|
|
|
def test_tool_call_with_empty_enum_property(self):
|
|
pass
|
|
|
|
@pytest.mark.parametrize("model", ["groq/qwen/qwen3-32b", "groq/openai/gpt-oss-20b", "groq/openai/gpt-oss-120b"])
|
|
def test_reasoning_effort_in_supported_params(self, model):
|
|
"""Test that reasoning_effort is in the list of supported parameters for Groq"""
|
|
supported_params = GroqChatConfig().get_supported_openai_params(model=model)
|
|
assert "reasoning_effort" in supported_params
|