mirror of
https://github.com/Significant-Gravitas/Auto-GPT.git
synced 2025-01-07 03:17:23 +08:00
feat: default for is featured (#9061)
<!-- Clearly explain the need for these changes: --> defaults is_featured to false
This commit is contained in:
parent
746f3d4e41
commit
bb8a37911c
@ -99,7 +99,7 @@ class Profile(pydantic.BaseModel):
|
|||||||
description: str
|
description: str
|
||||||
links: list[str]
|
links: list[str]
|
||||||
avatar_url: str
|
avatar_url: str
|
||||||
is_featured: bool
|
is_featured: bool = False
|
||||||
|
|
||||||
|
|
||||||
class StoreSubmission(pydantic.BaseModel):
|
class StoreSubmission(pydantic.BaseModel):
|
||||||
|
@ -416,13 +416,13 @@ To create a webhook-triggered block, follow these additional steps on top of the
|
|||||||
|
|
||||||
To add support for a new webhook provider, you'll need to create a WebhooksManager that implements the `BaseWebhooksManager` interface:
|
To add support for a new webhook provider, you'll need to create a WebhooksManager that implements the `BaseWebhooksManager` interface:
|
||||||
|
|
||||||
```python title="backend/integrations/webhooks/base.py"
|
```python title="backend/integrations/webhooks/_base.py"
|
||||||
--8<-- "autogpt_platform/backend/backend/integrations/webhooks/base.py:BaseWebhooksManager1"
|
--8<-- "autogpt_platform/backend/backend/integrations/webhooks/_base.py:BaseWebhooksManager1"
|
||||||
|
|
||||||
--8<-- "autogpt_platform/backend/backend/integrations/webhooks/base.py:BaseWebhooksManager2"
|
--8<-- "autogpt_platform/backend/backend/integrations/webhooks/_base.py:BaseWebhooksManager2"
|
||||||
--8<-- "autogpt_platform/backend/backend/integrations/webhooks/base.py:BaseWebhooksManager3"
|
--8<-- "autogpt_platform/backend/backend/integrations/webhooks/_base.py:BaseWebhooksManager3"
|
||||||
--8<-- "autogpt_platform/backend/backend/integrations/webhooks/base.py:BaseWebhooksManager4"
|
--8<-- "autogpt_platform/backend/backend/integrations/webhooks/_base.py:BaseWebhooksManager4"
|
||||||
--8<-- "autogpt_platform/backend/backend/integrations/webhooks/base.py:BaseWebhooksManager5"
|
--8<-- "autogpt_platform/backend/backend/integrations/webhooks/_base.py:BaseWebhooksManager5"
|
||||||
```
|
```
|
||||||
|
|
||||||
And add a reference to your `WebhooksManager` class in `WEBHOOK_MANAGERS_BY_NAME`:
|
And add a reference to your `WebhooksManager` class in `WEBHOOK_MANAGERS_BY_NAME`:
|
||||||
|
Loading…
Reference in New Issue
Block a user