mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-30 06:43:27 +00:00
test(e2e): define PromptCacheOptions before ChatBody so its subclasses build
This commit is contained in:
parent
b97387b50b
commit
98d610a294
1 changed files with 4 additions and 4 deletions
|
|
@ -360,6 +360,10 @@ class ChatStreamOptions(BaseModel):
|
|||
include_usage: bool
|
||||
|
||||
|
||||
class PromptCacheOptions(BaseModel):
|
||||
mode: Literal["implicit", "explicit"]
|
||||
|
||||
|
||||
class ChatBody(BaseModel):
|
||||
model: str
|
||||
messages: Sequence[ChatTurn]
|
||||
|
|
@ -1360,10 +1364,6 @@ class CacheControlInjectionPoint(BaseModel):
|
|||
index: int | None = None
|
||||
|
||||
|
||||
class PromptCacheOptions(BaseModel):
|
||||
mode: Literal["implicit", "explicit"]
|
||||
|
||||
|
||||
class LiteLLMParamsBody(BaseModel):
|
||||
"""POST /model/new litellm_params: `model` is the only required field; `api_key`
|
||||
et al may be an `os.environ/FOO` reference the proxy resolves at call time.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue