o
    i                     @  s   d Z ddlmZ ddlmZmZmZmZmZ ddl	m
Z
 ddlmZmZmZ ddlmZmZmZ edeeee f Z	 edeeee f Z	 G d	d
 d
eZG dd deZdS )zACode generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.    )annotations)	BaseModelNullableOptionalNullableUNSETUNSET_SENTINEL)model_serializer)ListOptionalUnion)NotRequiredTypeAliasType	TypedDict!FIMCompletionRequestStopTypedDictFIMCompletionRequestStopc                   @  sp   e Zd ZU ded< 	 ded< 	 ded< 	 ded< 	 ded	< 	 d
ed< 	 ded< 	 ded< 	 ded< 	 ded< dS )FIMCompletionRequestTypedDictstrmodelpromptzNotRequired[Nullable[float]]temperaturezNotRequired[float]top_pzNotRequired[Nullable[int]]
max_tokenszNotRequired[bool]streamz.NotRequired[FIMCompletionRequestStopTypedDict]stoprandom_seedzNotRequired[Nullable[str]]suffix
min_tokensN)__name__
__module____qualname____annotations__ r!   r!   k/var/www/html/karishye-ai-python/venv/lib/python3.10/site-packages/mistralai/models/fimcompletionrequest.pyr      s*   
 r   c                   @  s   e Zd ZU ded< 	 ded< 	 eZded< 	 dZded< 	 eZd	ed
< 	 dZded< 	 dZ	ded< 	 eZ
d	ed< 	 eZded< 	 eZd	ed< 	 edddd ZdS )FIMCompletionRequestr   r   r   zOptionalNullable[float]r      zOptional[float]r   zOptionalNullable[int]r   FzOptional[bool]r   Nz"Optional[FIMCompletionRequestStop]r   r   zOptionalNullable[str]r   r   wrap)modec                 C  s   g d}g d}g }|| }i }t | j D ]D\}}|jp|}	||	}
||	d  |	|v o2|	|v }| j|hp=|	|v }|
d urK|
tkrK|
||	< q|
tkr[|	|vsW|r[|r[|
||	< q|S )N)r   r   r   r   r   r   r   r   )r   r   r   r   r   )	typemodel_fieldsitemsaliasgetpop__pydantic_fields_set__intersectionr   )selfhandleroptional_fieldsnullable_fieldsnull_default_fields
serializedmnfkvaloptional_nullableis_setr!   r!   r"   serialize_modelR   s(   



z$FIMCompletionRequest.serialize_model)r   r   r   r    r   r   r   r   r   r   r   r   r   r   r<   r!   r!   r!   r"   r#   0   s.   
 r#   N)__doc__
__future__r   mistralai.typesr   r   r   r   r   pydanticr   typingr	   r
   r   typing_extensionsr   r   r   r   r   r   r   r#   r!   r!   r!   r"   <module>   s     