File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed
py/packages/genkit/src/genkit/core Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -372,7 +372,7 @@ export const GenerateActionOutputConfig = z.object({
372372
373373export const GenerateActionOptionsSchema = z . object ( {
374374 /** A model name (e.g. `vertexai/gemini-1.0-pro`). */
375- model : z . string ( ) ,
375+ model : z . string ( ) . optional ( ) ,
376376 /** Retrieved documents to be used as context for this generation. */
377377 docs : z . array ( DocumentDataSchema ) . optional ( ) ,
378378 /** Conversation history for multi-turn prompting when supported by the underlying model. */
Original file line number Diff line number Diff line change 469469 }
470470 },
471471 "required" : [
472- " model" ,
473472 " messages"
474473 ],
475474 "additionalProperties" : false
Original file line number Diff line number Diff line change @@ -951,7 +951,7 @@ class GenerateActionOptions(BaseModel):
951951 """Model for generateactionoptions data."""
952952
953953 model_config = ConfigDict (extra = 'forbid' , populate_by_name = True )
954- model : str
954+ model : str | None = None
955955 docs : list [DocumentData ] | None = None
956956 messages : list [Message ]
957957 tools : list [str ] | None = None
You can’t perform that action at this time.
0 commit comments