mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
tidy(nodes): remove no-op model_config
Because we now customize the JSON Schema creation for GraphExecutionState, the model_config did nothing.
This commit is contained in:
parent
e93bd15392
commit
7e71effa17
@ -7,7 +7,6 @@ from typing import Annotated, Any, Optional, TypeVar, Union, get_args, get_origi
|
|||||||
import networkx as nx
|
import networkx as nx
|
||||||
from pydantic import (
|
from pydantic import (
|
||||||
BaseModel,
|
BaseModel,
|
||||||
ConfigDict,
|
|
||||||
GetJsonSchemaHandler,
|
GetJsonSchemaHandler,
|
||||||
field_validator,
|
field_validator,
|
||||||
)
|
)
|
||||||
@ -804,22 +803,6 @@ class GraphExecutionState(BaseModel):
|
|||||||
json_schema = handler.resolve_ref_schema(json_schema)
|
json_schema = handler.resolve_ref_schema(json_schema)
|
||||||
return json_schema
|
return json_schema
|
||||||
|
|
||||||
model_config = ConfigDict(
|
|
||||||
json_schema_extra={
|
|
||||||
"required": [
|
|
||||||
"id",
|
|
||||||
"graph",
|
|
||||||
"execution_graph",
|
|
||||||
"executed",
|
|
||||||
"executed_history",
|
|
||||||
"results",
|
|
||||||
"errors",
|
|
||||||
"prepared_source_mapping",
|
|
||||||
"source_prepared_mapping",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
def next(self) -> Optional[BaseInvocation]:
|
def next(self) -> Optional[BaseInvocation]:
|
||||||
"""Gets the next node ready to execute."""
|
"""Gets the next node ready to execute."""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user