Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/api_reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,7 @@ Anthropic.
messages if there is a multientity context.
- `parameter_controls` (`Optional[ParameterControls] = None`): Optional JSON object that defines
interactive parameter controls. The object must contain an api_version and sections array.
- `description` (`str = ""`): A description of the bot.



Expand Down
2 changes: 2 additions & 0 deletions src/fastapi_poe/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,7 @@ class SettingsResponse(BaseModel):
messages if there is a multientity context.
- `parameter_controls` (`Optional[ParameterControls] = None`): Optional JSON object that defines
interactive parameter controls. The object must contain an api_version and sections array.
- `description` (`str = ""`): A description of the bot.

"""

Expand All @@ -697,6 +698,7 @@ class SettingsResponse(BaseModel):
rate_card: Optional[str] = None
cost_label: Optional[str] = None
parameter_controls: Optional[ParameterControls] = None
description: Optional[str] = None


class AttachmentUploadResponse(BaseModel):
Expand Down
4 changes: 4 additions & 0 deletions tests/test_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ def test_default_response_version(self) -> None:
response = SettingsResponse()
assert response.response_version == 2

def test_description(self) -> None:
response = SettingsResponse(description="My bot description")
assert response.description == "My bot description"


def test_extra_attrs() -> None:
with pytest.raises(pydantic.ValidationError):
Expand Down
Loading