File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -3907,24 +3907,25 @@ def __init__(
39073907
39083908class TextEmbedding (AttrDict [Any ]):
39093909 """
3910- :arg model_id: (required)
39113910 :arg model_text: (required)
3911+ :arg model_id: Model ID is required for all dense_vector fields but
3912+ may be inferred for semantic_text fields
39123913 """
39133914
3914- model_id : Union [str , DefaultType ]
39153915 model_text : Union [str , DefaultType ]
3916+ model_id : Union [str , DefaultType ]
39163917
39173918 def __init__ (
39183919 self ,
39193920 * ,
3920- model_id : Union [str , DefaultType ] = DEFAULT ,
39213921 model_text : Union [str , DefaultType ] = DEFAULT ,
3922+ model_id : Union [str , DefaultType ] = DEFAULT ,
39223923 ** kwargs : Any ,
39233924 ):
3924- if model_id is not DEFAULT :
3925- kwargs ["model_id" ] = model_id
39263925 if model_text is not DEFAULT :
39273926 kwargs ["model_text" ] = model_text
3927+ if model_id is not DEFAULT :
3928+ kwargs ["model_id" ] = model_id
39283929 super ().__init__ (kwargs )
39293930
39303931
You can’t perform that action at this time.
0 commit comments