Skip to content

Commit

Permalink
edit: using settings_model
Browse files Browse the repository at this point in the history
`settings_model` preferred to `settings_schema`
small typo in the readme
  • Loading branch information
kodaline committed Dec 22, 2023
1 parent c297bdc commit 70dc7d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ The script will prompt you to write the name of your plugin and make an initial

> **Important**
> A new release of your plugin is triggered every time you set a new `version` in the `plugin.json` file.
> Please, remember to set it correctly every time to want to release an update.
> Please, remember to set it correctly every time you want to release an update.
4 changes: 2 additions & 2 deletions my_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ class MySettings(BaseModel):
optional_date: date = 1679616000

@plugin
def settings_schema():
return MySettings.schema()
def settings_model():
return MySettings

@tool
def get_the_day(tool_input, cat):
Expand Down

0 comments on commit 70dc7d2

Please sign in to comment.