mirror of
https://github.com/Ladebeze66/llm_ticket3.git
synced 2026-03-28 05:43:49 +01:00
31 lines
762 B
Python
31 lines
762 B
Python
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
|
|
from __future__ import annotations
|
|
from mistralai.types import BaseModel
|
|
import pydantic
|
|
from typing import List, Union
|
|
from typing_extensions import Annotated, TypeAliasType, TypedDict
|
|
|
|
|
|
InputsTypedDict = TypeAliasType("InputsTypedDict", Union[str, List[str]])
|
|
r"""Text to embed."""
|
|
|
|
|
|
Inputs = TypeAliasType("Inputs", Union[str, List[str]])
|
|
r"""Text to embed."""
|
|
|
|
|
|
class EmbeddingRequestTypedDict(TypedDict):
|
|
model: str
|
|
r"""ID of the model to use."""
|
|
inputs: InputsTypedDict
|
|
r"""Text to embed."""
|
|
|
|
|
|
class EmbeddingRequest(BaseModel):
|
|
model: str
|
|
r"""ID of the model to use."""
|
|
|
|
inputs: Annotated[Inputs, pydantic.Field(alias="input")]
|
|
r"""Text to embed."""
|