test(e2e): define PromptCacheOptions before ChatBody so its subclasses build

This commit is contained in:
ryan-crabbe-berri 2026-10-15 14:49:38 -07:00
parent b97387b50b
commit 98d610a294

View file

@ -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.