mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
45 lines
1.5 KiB
Python
45 lines
1.5 KiB
Python
from typing import Any, Dict, Iterable, List, Literal, Optional, Union
|
|
|
|
import httpx
|
|
|
|
from litellm.types.llms.openai import (
|
|
Reasoning,
|
|
ResponseIncludable,
|
|
ResponseInputParam,
|
|
ResponseTextConfigParam,
|
|
ToolChoice,
|
|
ToolParam,
|
|
)
|
|
|
|
|
|
async def aresponses():
|
|
pass
|
|
|
|
|
|
def responses(
|
|
input: Union[str, ResponseInputParam],
|
|
model: str,
|
|
include: Optional[List[ResponseIncludable]] = None,
|
|
instructions: Optional[str] = None,
|
|
max_output_tokens: Optional[int] = None,
|
|
metadata: Optional[Dict[str, Any]] = None,
|
|
parallel_tool_calls: Optional[bool] = None,
|
|
previous_response_id: Optional[str] = None,
|
|
reasoning: Optional[Reasoning] = None,
|
|
store: Optional[bool] = None,
|
|
stream: Optional[bool] = None,
|
|
temperature: Optional[float] = None,
|
|
text: Optional[ResponseTextConfigParam] = None,
|
|
tool_choice: Optional[ToolChoice] = None,
|
|
tools: Optional[Iterable[ToolParam]] = None,
|
|
top_p: Optional[float] = None,
|
|
truncation: Optional[Literal["auto", "disabled"]] = None,
|
|
user: Optional[str] = None,
|
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
extra_headers: Optional[Dict[str, Any]] = None,
|
|
extra_query: Optional[Dict[str, Any]] = None,
|
|
extra_body: Optional[Dict[str, Any]] = None,
|
|
timeout: Optional[Union[float, httpx.Timeout]] = None,
|
|
):
|
|
pass
|