Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion genkit-tools/common/src/types/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ export const GenerateActionOutputConfig = z.object({

export const GenerateActionOptionsSchema = z.object({
/** A model name (e.g. `vertexai/gemini-1.0-pro`). */
model: z.string(),
model: z.string().optional(),
/** Retrieved documents to be used as context for this generation. */
docs: z.array(DocumentDataSchema).optional(),
/** Conversation history for multi-turn prompting when supported by the underlying model. */
Expand Down
1 change: 0 additions & 1 deletion genkit-tools/genkit-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,6 @@
}
},
"required": [
"model",
"messages"
],
"additionalProperties": false
Expand Down
2 changes: 1 addition & 1 deletion py/packages/genkit/src/genkit/core/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@ class GenerateActionOptions(BaseModel):
"""Model for generateactionoptions data."""

model_config = ConfigDict(extra='forbid', populate_by_name=True)
model: str
model: str | None = None
docs: list[DocumentData] | None = None
messages: list[Message]
tools: list[str] | None = None
Expand Down
Loading