mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-17 04:26:20 +00:00
allow using litellm.messages.acreate and litellm.messages.create
This commit is contained in:
@@ -26,6 +26,7 @@ from litellm._logging import (
|
||||
log_level,
|
||||
)
|
||||
import re
|
||||
from .messages import *
|
||||
from litellm.constants import (
|
||||
DEFAULT_BATCH_SIZE,
|
||||
DEFAULT_FLUSH_INTERVAL_SECONDS,
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
"""
|
||||
Interface for Anthropic's messages API
|
||||
|
||||
Use this to call LLMs in Anthropic /messages Request/Response format
|
||||
"""
|
||||
|
||||
from litellm.llms.anthropic.experimental_pass_through.handler import (
|
||||
anthropic_messages as _async_anthropic_messages,
|
||||
)
|
||||
|
||||
|
||||
async def acreate(*args, **kwargs):
|
||||
"""
|
||||
Wrapper around Anthropic's messages API
|
||||
"""
|
||||
return await _async_anthropic_messages(*args, **kwargs)
|
||||
Reference in New Issue
Block a user