mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
add clear type hints to litellm.messages.create functions
This commit is contained in:
parent
c030c88b50
commit
b5aa441a00
1 changed files with 5 additions and 2 deletions
|
@ -9,6 +9,9 @@ from typing import Dict, List, Optional, Union
|
|||
from litellm.llms.anthropic.experimental_pass_through.handler import (
|
||||
anthropic_messages as _async_anthropic_messages,
|
||||
)
|
||||
from litellm.types.llms.anthropic_messages.anthropic_response import (
|
||||
AnthropicMessagesResponse,
|
||||
)
|
||||
|
||||
|
||||
async def acreate(
|
||||
|
@ -26,7 +29,7 @@ async def acreate(
|
|||
top_k: Optional[int] = None,
|
||||
top_p: Optional[float] = None,
|
||||
**kwargs
|
||||
) -> Dict:
|
||||
) -> AnthropicMessagesResponse:
|
||||
"""
|
||||
Async wrapper for Anthropic's messages API
|
||||
|
||||
|
@ -82,7 +85,7 @@ async def create(
|
|||
top_k: Optional[int] = None,
|
||||
top_p: Optional[float] = None,
|
||||
**kwargs
|
||||
) -> Dict:
|
||||
) -> AnthropicMessagesResponse:
|
||||
"""
|
||||
Async wrapper for Anthropic's messages API
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue