Skip to content

Commit 1c63a17

Browse files
author
ks-release-bot
committed
chore(release): regenerate ksapi v1.158.0 from ks-backend
1 parent 447520f commit 1c63a17

8 files changed

Lines changed: 13 additions & 9 deletions

File tree

‎docs/UserMessageRequest.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +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]
910

1011
## Example
1112

‎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.157.0"
17+
__version__ = "1.158.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.157.0/python'
94+
self.user_agent = 'OpenAPI-Generator/1.158.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.157.0".\
565+
"SDK Package Version: 1.158.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: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import re # noqa: F401
1818
import json
1919

20-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
20+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
2121
from typing import Any, ClassVar, Dict, Optional
2222
from typing import Optional, Set
2323
from typing_extensions import Self
@@ -28,7 +28,8 @@ 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-
__properties: ClassVar[List[str]] = ["input_text"]
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.")
32+
__properties: ClassVar[List[str]] = ["input_text", "fast_mode"]
3233

3334
model_config = ConfigDict(
3435
validate_by_name=True,
@@ -81,7 +82,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
8182
return cls.model_validate(obj)
8283

8384
_obj = cls.model_validate({
84-
"input_text": obj.get("input_text") if obj.get("input_text") is not None else ''
85+
"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
8587
})
8688
return _obj
8789

‎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.157.0"
3+
version = "1.158.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.157.0"
22+
VERSION = "1.158.0"
2323
PYTHON_REQUIRES = ">= 3.9"
2424
REQUIRES = [
2525
"urllib3 >= 2.1.0, < 3.0.0",

‎test/test_user_message_request.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ def make_instance(self, include_optional) -> UserMessageRequest:
3535
model = UserMessageRequest()
3636
if include_optional:
3737
return UserMessageRequest(
38-
input_text = ''
38+
input_text = '',
39+
fast_mode = True
3940
)
4041
else:
4142
return UserMessageRequest(

0 commit comments

Comments
 (0)