Skip to content

Commit

Permalink
🐛Fixed legacy bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
carefree0910 committed Jan 17, 2024
1 parent 3cc8724 commit 409e690
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions cfdraw/.web/src/schema/_python.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,10 @@ export interface IPythonQAPlugin extends IPythonPlugin {
};
}
export interface IPythonChatPlugin extends IPythonPlugin {
pluginInfo: IPythonPluginInfo & {
initialText: IStr;
};
pluginInfo: IPythonPluginInfo &
IPythonPluginWithSubmitPluginInfo & {
initialText: IStr;
};
}

// web
Expand Down
2 changes: 1 addition & 1 deletion cfdraw/schema/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ class IQAPluginInfo(IPluginInfo):
)


class IChatPluginInfo(IPluginInfo):
class IChatPluginInfo(IWorkflowPluginInfo):
"""This should align with `IPythonChatPlugin` at `cfdraw/.web/src/schema/_python.ts`"""

initialText: IStr = Field(
Expand Down

0 comments on commit 409e690

Please sign in to comment.