Add description field to prompt blocks
Some checks failed
openapi_client Python package / build (3.11) (push) Failing after 46s
openapi_client Python package / build (3.10) (push) Failing after 48s
openapi_client Python package / build (3.7) (push) Failing after 5s
openapi_client Python package / build (3.8) (push) Failing after 5s
openapi_client Python package / build (3.9) (push) Failing after 5s

This commit is contained in:
NikitolProject 2024-09-01 13:28:42 +03:00
parent f4acd7dfd1
commit 4f1fcde0ce
7 changed files with 11 additions and 16 deletions

View File

@ -69,16 +69,4 @@ setup.cfg
setup.py
test-requirements.txt
test/__init__.py
test/test_chats_api.py
test/test_domain_client_chat.py
test/test_domain_client_message.py
test/test_domain_company_create_request.py
test/test_domain_company_function.py
test/test_domain_company_update_request.py
test/test_domain_get_chats_response.py
test/test_domain_get_me_response.py
test/test_domain_metrics_response.py
test/test_domain_prompt_block.py
test/test_get_me_api.py
test/test_metrics_api.py
tox.ini

View File

@ -31,7 +31,7 @@ class DomainCompanyCreateRequest(BaseModel):
functions: Optional[List[DomainCompanyFunction]] = None
integration_url: StrictStr
name: StrictStr
prompt_blocks: Optional[List[DomainPromptBlock]] = None
prompt_blocks: List[DomainPromptBlock]
token: StrictStr
__properties: ClassVar[List[str]] = ["functions", "integration_url", "name", "prompt_blocks", "token"]

View File

@ -27,8 +27,9 @@ class DomainPromptBlock(BaseModel):
DomainPromptBlock
""" # noqa: E501
content: Optional[StrictStr] = None
description: Optional[StrictStr] = None
name: Optional[StrictStr] = None
__properties: ClassVar[List[str]] = ["content", "name"]
__properties: ClassVar[List[str]] = ["content", "description", "name"]
model_config = ConfigDict(
populate_by_name=True,
@ -82,6 +83,7 @@ class DomainPromptBlock(BaseModel):
_obj = cls.model_validate({
"content": obj.get("content"),
"description": obj.get("description"),
"name": obj.get("name")
})
return _obj

View File

@ -8,7 +8,7 @@ Name | Type | Description | Notes
**functions** | [**List[DomainCompanyFunction]**](DomainCompanyFunction.md) | | [optional]
**integration_url** | **str** | |
**name** | **str** | |
**prompt_blocks** | [**List[DomainPromptBlock]**](DomainPromptBlock.md) | | [optional]
**prompt_blocks** | [**List[DomainPromptBlock]**](DomainPromptBlock.md) | |
**token** | **str** | |
## Example

View File

@ -6,6 +6,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**content** | **str** | | [optional]
**description** | **str** | | [optional]
**name** | **str** | | [optional]
## Example

View File

@ -604,6 +604,7 @@
"required": [
"integration_url",
"name",
"prompt_blocks",
"token"
],
"properties": {
@ -779,6 +780,9 @@
"content": {
"type": "string"
},
"description": {
"type": "string"
},
"name": {
"type": "string"
}

View File

@ -21,7 +21,7 @@ from setuptools import setup, find_packages # noqa: H301
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
NAME = "openapi-client"
VERSION = "1.3.0"
VERSION = "1.4.0"
PYTHON_REQUIRES = ">=3.7"
REQUIRES = [
"urllib3 >= 1.25.3, < 2.1.0",