Skip to content

Commit 9e1dc7e

Browse files
author
ks-release-bot
committed
chore(release): regenerate ksapi v1.159.0 from ks-backend
1 parent 5bfe751 commit 9e1dc7e

7 files changed

Lines changed: 13 additions & 8 deletions

File tree

‎docs/UserMessageRequest.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**input_text** | **str** | User input text. Mock agent dev controls may be embedded here (e.g. /mock duration=5 wps=3 scenario=tool_call_once). | [optional] [default to '']
9-
**fast_mode** | **bool** | Answer with the faster, lower-cost chat profile. Ignored when the tenant pins a chat profile and on workflow-run threads. | [optional] [default to False]
9+
**fast_mode** | **bool** | Answer with the faster, lower-cost chat profile. Omit to use the tenant's default_fast_mode; true/false overrides it for this message. Ignored when the tenant pins a chat profile and on workflow-run threads. | [optional]
1010

1111
## Example
1212

‎ksapi/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
""" # noqa: E501
1515

1616

17-
__version__ = "1.158.2"
17+
__version__ = "1.159.0"
1818

1919
# Define package exports
2020
__all__ = [

‎ksapi/api_client.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def __init__(
9191
self.default_headers[header_name] = header_value
9292
self.cookie = cookie
9393
# Set default User-Agent.
94-
self.user_agent = 'OpenAPI-Generator/1.158.2/python'
94+
self.user_agent = 'OpenAPI-Generator/1.159.0/python'
9595
self.client_side_validation = configuration.client_side_validation
9696

9797
def __enter__(self):

‎ksapi/configuration.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ def to_debug_report(self) -> str:
562562
"OS: {env}\n"\
563563
"Python Version: {pyversion}\n"\
564564
"Version of the API: 0.1.0\n"\
565-
"SDK Package Version: 1.158.2".\
565+
"SDK Package Version: 1.159.0".\
566566
format(env=sys.platform, pyversion=sys.version)
567567

568568
def get_host_settings(self) -> List[HostSetting]:

‎ksapi/models/user_message_request.py‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class UserMessageRequest(BaseModel):
2828
UserMessageRequest
2929
""" # noqa: E501
3030
input_text: Optional[StrictStr] = Field(default='', description="User input text. Mock agent dev controls may be embedded here (e.g. /mock duration=5 wps=3 scenario=tool_call_once).")
31-
fast_mode: Optional[StrictBool] = Field(default=False, description="Answer with the faster, lower-cost chat profile. Ignored when the tenant pins a chat profile and on workflow-run threads.")
31+
fast_mode: Optional[StrictBool] = Field(default=None, description="Answer with the faster, lower-cost chat profile. Omit to use the tenant's default_fast_mode; true/false overrides it for this message. Ignored when the tenant pins a chat profile and on workflow-run threads.")
3232
__properties: ClassVar[List[str]] = ["input_text", "fast_mode"]
3333

3434
model_config = ConfigDict(
@@ -70,6 +70,11 @@ def to_dict(self) -> Dict[str, Any]:
7070
exclude=excluded_fields,
7171
exclude_none=True,
7272
)
73+
# set to None if fast_mode (nullable) is None
74+
# and model_fields_set contains the field
75+
if self.fast_mode is None and "fast_mode" in self.model_fields_set:
76+
_dict['fast_mode'] = None
77+
7378
return _dict
7479

7580
@classmethod
@@ -83,7 +88,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
8388

8489
_obj = cls.model_validate({
8590
"input_text": obj.get("input_text") if obj.get("input_text") is not None else '',
86-
"fast_mode": obj.get("fast_mode") if obj.get("fast_mode") is not None else False
91+
"fast_mode": obj.get("fast_mode")
8792
})
8893
return _obj
8994

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "ksapi"
3-
version = "1.158.2"
3+
version = "1.159.0"
44
description = "Knowledge Stack API"
55
authors = [
66
{name = "OpenAPI Generator Community",email = "team@openapitools.org"},

‎setup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# prerequisite: setuptools
2020
# http://pypi.python.org/pypi/setuptools
2121
NAME = "ksapi"
22-
VERSION = "1.158.2"
22+
VERSION = "1.159.0"
2323
PYTHON_REQUIRES = ">= 3.9"
2424
REQUIRES = [
2525
"urllib3 >= 2.1.0, < 3.0.0",

0 commit comments

Comments
 (0)