Skip to content

Commit

Permalink
fix invoke llm raise error
Browse files Browse the repository at this point in the history
  • Loading branch information
hjlarry committed Jan 15, 2025
1 parent 98b139c commit fc3d64a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/core/plugin/entities/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class RequestInvokeLLM(BaseRequestInvokeModel):

model_type: ModelType = ModelType.LLM
mode: str
completion_params: dict[str, Any] = Field(default_factory=dict)
completion_params: Optional[dict[str, Any]] = Field(default_factory=dict)
prompt_messages: list[PromptMessage] = Field(default_factory=list)
tools: Optional[list[PromptMessageTool]] = Field(default_factory=list)
stop: Optional[list[str]] = Field(default_factory=list)
Expand Down

0 comments on commit fc3d64a

Please sign in to comment.