Skip to content

Commit 1d88a83

Browse files
jameszyaoSimsonW
authored andcommitted
fix: add max_tokens to query_chunks api schema
1 parent 1152ba9 commit 1d88a83

File tree

152 files changed

+405
-240
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

152 files changed

+405
-240
lines changed

taskingai/client/apis/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
99
Author: James Yao
1010
Organization: TaskingAI
11-
Created: 03-Mar-2024
1211
License: Apache 2.0
1312
"""
1413

taskingai/client/apis/api_bulk_create_actions.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
99
Author: James Yao
1010
Organization: TaskingAI
11-
Created: 03-Mar-2024
1211
License: Apache 2.0
1312
"""
1413

@@ -18,7 +17,10 @@
1817
__all__ = ["api_bulk_create_actions", "async_api_bulk_create_actions"]
1918

2019

21-
def api_bulk_create_actions(payload: ActionBulkCreateRequest, **kwargs) -> ActionBulkCreateResponse:
20+
def api_bulk_create_actions(
21+
payload: ActionBulkCreateRequest,
22+
**kwargs,
23+
) -> ActionBulkCreateResponse:
2224
# get api client
2325
sync_api_client = get_api_client(async_client=False)
2426

@@ -48,7 +50,10 @@ def api_bulk_create_actions(payload: ActionBulkCreateRequest, **kwargs) -> Actio
4850
)
4951

5052

51-
async def async_api_bulk_create_actions(payload: ActionBulkCreateRequest, **kwargs) -> ActionBulkCreateResponse:
53+
async def async_api_bulk_create_actions(
54+
payload: ActionBulkCreateRequest,
55+
**kwargs,
56+
) -> ActionBulkCreateResponse:
5257
# get api client
5358
async_api_client = get_api_client(async_client=True)
5459

taskingai/client/apis/api_chat_completion.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
99
Author: James Yao
1010
Organization: TaskingAI
11-
Created: 03-Mar-2024
1211
License: Apache 2.0
1312
"""
1413

@@ -18,7 +17,10 @@
1817
__all__ = ["api_chat_completion", "async_api_chat_completion"]
1918

2019

21-
def api_chat_completion(payload: ChatCompletionRequest, **kwargs) -> ChatCompletionResponse:
20+
def api_chat_completion(
21+
payload: ChatCompletionRequest,
22+
**kwargs,
23+
) -> ChatCompletionResponse:
2224
# get api client
2325
sync_api_client = get_api_client(async_client=False)
2426

@@ -48,7 +50,10 @@ def api_chat_completion(payload: ChatCompletionRequest, **kwargs) -> ChatComplet
4850
)
4951

5052

51-
async def async_api_chat_completion(payload: ChatCompletionRequest, **kwargs) -> ChatCompletionResponse:
53+
async def async_api_chat_completion(
54+
payload: ChatCompletionRequest,
55+
**kwargs,
56+
) -> ChatCompletionResponse:
5257
# get api client
5358
async_api_client = get_api_client(async_client=True)
5459

taskingai/client/apis/api_create_assistant.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
99
Author: James Yao
1010
Organization: TaskingAI
11-
Created: 03-Mar-2024
1211
License: Apache 2.0
1312
"""
1413

@@ -18,7 +17,10 @@
1817
__all__ = ["api_create_assistant", "async_api_create_assistant"]
1918

2019

21-
def api_create_assistant(payload: AssistantCreateRequest, **kwargs) -> AssistantCreateResponse:
20+
def api_create_assistant(
21+
payload: AssistantCreateRequest,
22+
**kwargs,
23+
) -> AssistantCreateResponse:
2224
# get api client
2325
sync_api_client = get_api_client(async_client=False)
2426

@@ -48,7 +50,10 @@ def api_create_assistant(payload: AssistantCreateRequest, **kwargs) -> Assistant
4850
)
4951

5052

51-
async def async_api_create_assistant(payload: AssistantCreateRequest, **kwargs) -> AssistantCreateResponse:
53+
async def async_api_create_assistant(
54+
payload: AssistantCreateRequest,
55+
**kwargs,
56+
) -> AssistantCreateResponse:
5257
# get api client
5358
async_api_client = get_api_client(async_client=True)
5459

taskingai/client/apis/api_create_chat.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
99
Author: James Yao
1010
Organization: TaskingAI
11-
Created: 03-Mar-2024
1211
License: Apache 2.0
1312
"""
1413

@@ -18,7 +17,11 @@
1817
__all__ = ["api_create_chat", "async_api_create_chat"]
1918

2019

21-
def api_create_chat(assistant_id: str, payload: ChatCreateRequest, **kwargs) -> ChatCreateResponse:
20+
def api_create_chat(
21+
assistant_id: str,
22+
payload: ChatCreateRequest,
23+
**kwargs,
24+
) -> ChatCreateResponse:
2225
# get api client
2326
sync_api_client = get_api_client(async_client=False)
2427

@@ -50,7 +53,11 @@ def api_create_chat(assistant_id: str, payload: ChatCreateRequest, **kwargs) ->
5053
)
5154

5255

53-
async def async_api_create_chat(assistant_id: str, payload: ChatCreateRequest, **kwargs) -> ChatCreateResponse:
56+
async def async_api_create_chat(
57+
assistant_id: str,
58+
payload: ChatCreateRequest,
59+
**kwargs,
60+
) -> ChatCreateResponse:
5461
# get api client
5562
async_api_client = get_api_client(async_client=True)
5663

taskingai/client/apis/api_create_chunk.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
99
Author: James Yao
1010
Organization: TaskingAI
11-
Created: 03-Mar-2024
1211
License: Apache 2.0
1312
"""
1413

@@ -18,7 +17,11 @@
1817
__all__ = ["api_create_chunk", "async_api_create_chunk"]
1918

2019

21-
def api_create_chunk(collection_id: str, payload: ChunkCreateRequest, **kwargs) -> ChunkCreateResponse:
20+
def api_create_chunk(
21+
collection_id: str,
22+
payload: ChunkCreateRequest,
23+
**kwargs,
24+
) -> ChunkCreateResponse:
2225
# get api client
2326
sync_api_client = get_api_client(async_client=False)
2427

@@ -50,7 +53,11 @@ def api_create_chunk(collection_id: str, payload: ChunkCreateRequest, **kwargs)
5053
)
5154

5255

53-
async def async_api_create_chunk(collection_id: str, payload: ChunkCreateRequest, **kwargs) -> ChunkCreateResponse:
56+
async def async_api_create_chunk(
57+
collection_id: str,
58+
payload: ChunkCreateRequest,
59+
**kwargs,
60+
) -> ChunkCreateResponse:
5461
# get api client
5562
async_api_client = get_api_client(async_client=True)
5663

taskingai/client/apis/api_create_collection.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
99
Author: James Yao
1010
Organization: TaskingAI
11-
Created: 03-Mar-2024
1211
License: Apache 2.0
1312
"""
1413

@@ -18,7 +17,10 @@
1817
__all__ = ["api_create_collection", "async_api_create_collection"]
1918

2019

21-
def api_create_collection(payload: CollectionCreateRequest, **kwargs) -> CollectionCreateResponse:
20+
def api_create_collection(
21+
payload: CollectionCreateRequest,
22+
**kwargs,
23+
) -> CollectionCreateResponse:
2224
# get api client
2325
sync_api_client = get_api_client(async_client=False)
2426

@@ -48,7 +50,10 @@ def api_create_collection(payload: CollectionCreateRequest, **kwargs) -> Collect
4850
)
4951

5052

51-
async def async_api_create_collection(payload: CollectionCreateRequest, **kwargs) -> CollectionCreateResponse:
53+
async def async_api_create_collection(
54+
payload: CollectionCreateRequest,
55+
**kwargs,
56+
) -> CollectionCreateResponse:
5257
# get api client
5358
async_api_client = get_api_client(async_client=True)
5459

taskingai/client/apis/api_create_message.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
99
Author: James Yao
1010
Organization: TaskingAI
11-
Created: 03-Mar-2024
1211
License: Apache 2.0
1312
"""
1413

@@ -19,7 +18,10 @@
1918

2019

2120
def api_create_message(
22-
assistant_id: str, chat_id: str, payload: MessageCreateRequest, **kwargs
21+
assistant_id: str,
22+
chat_id: str,
23+
payload: MessageCreateRequest,
24+
**kwargs,
2325
) -> MessageCreateResponse:
2426
# get api client
2527
sync_api_client = get_api_client(async_client=False)
@@ -54,7 +56,10 @@ def api_create_message(
5456

5557

5658
async def async_api_create_message(
57-
assistant_id: str, chat_id: str, payload: MessageCreateRequest, **kwargs
59+
assistant_id: str,
60+
chat_id: str,
61+
payload: MessageCreateRequest,
62+
**kwargs,
5863
) -> MessageCreateResponse:
5964
# get api client
6065
async_api_client = get_api_client(async_client=True)

taskingai/client/apis/api_create_record.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
99
Author: James Yao
1010
Organization: TaskingAI
11-
Created: 03-Mar-2024
1211
License: Apache 2.0
1312
"""
1413

@@ -18,7 +17,11 @@
1817
__all__ = ["api_create_record", "async_api_create_record"]
1918

2019

21-
def api_create_record(collection_id: str, payload: RecordCreateRequest, **kwargs) -> RecordCreateResponse:
20+
def api_create_record(
21+
collection_id: str,
22+
payload: RecordCreateRequest,
23+
**kwargs,
24+
) -> RecordCreateResponse:
2225
# get api client
2326
sync_api_client = get_api_client(async_client=False)
2427

@@ -50,7 +53,11 @@ def api_create_record(collection_id: str, payload: RecordCreateRequest, **kwargs
5053
)
5154

5255

53-
async def async_api_create_record(collection_id: str, payload: RecordCreateRequest, **kwargs) -> RecordCreateResponse:
56+
async def async_api_create_record(
57+
collection_id: str,
58+
payload: RecordCreateRequest,
59+
**kwargs,
60+
) -> RecordCreateResponse:
5461
# get api client
5562
async_api_client = get_api_client(async_client=True)
5663

taskingai/client/apis/api_delete_action.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
99
Author: James Yao
1010
Organization: TaskingAI
11-
Created: 03-Mar-2024
1211
License: Apache 2.0
1312
"""
1413

@@ -18,7 +17,10 @@
1817
__all__ = ["api_delete_action", "async_api_delete_action"]
1918

2019

21-
def api_delete_action(action_id: str, **kwargs) -> BaseEmptyResponse:
20+
def api_delete_action(
21+
action_id: str,
22+
**kwargs,
23+
) -> BaseEmptyResponse:
2224
# get api client
2325
sync_api_client = get_api_client(async_client=False)
2426

@@ -50,7 +52,10 @@ def api_delete_action(action_id: str, **kwargs) -> BaseEmptyResponse:
5052
)
5153

5254

53-
async def async_api_delete_action(action_id: str, **kwargs) -> BaseEmptyResponse:
55+
async def async_api_delete_action(
56+
action_id: str,
57+
**kwargs,
58+
) -> BaseEmptyResponse:
5459
# get api client
5560
async_api_client = get_api_client(async_client=True)
5661

taskingai/client/apis/api_delete_assistant.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
99
Author: James Yao
1010
Organization: TaskingAI
11-
Created: 03-Mar-2024
1211
License: Apache 2.0
1312
"""
1413

@@ -18,7 +17,10 @@
1817
__all__ = ["api_delete_assistant", "async_api_delete_assistant"]
1918

2019

21-
def api_delete_assistant(assistant_id: str, **kwargs) -> BaseEmptyResponse:
20+
def api_delete_assistant(
21+
assistant_id: str,
22+
**kwargs,
23+
) -> BaseEmptyResponse:
2224
# get api client
2325
sync_api_client = get_api_client(async_client=False)
2426

@@ -50,7 +52,10 @@ def api_delete_assistant(assistant_id: str, **kwargs) -> BaseEmptyResponse:
5052
)
5153

5254

53-
async def async_api_delete_assistant(assistant_id: str, **kwargs) -> BaseEmptyResponse:
55+
async def async_api_delete_assistant(
56+
assistant_id: str,
57+
**kwargs,
58+
) -> BaseEmptyResponse:
5459
# get api client
5560
async_api_client = get_api_client(async_client=True)
5661

taskingai/client/apis/api_delete_chat.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
99
Author: James Yao
1010
Organization: TaskingAI
11-
Created: 03-Mar-2024
1211
License: Apache 2.0
1312
"""
1413

@@ -18,7 +17,11 @@
1817
__all__ = ["api_delete_chat", "async_api_delete_chat"]
1918

2019

21-
def api_delete_chat(assistant_id: str, chat_id: str, **kwargs) -> BaseEmptyResponse:
20+
def api_delete_chat(
21+
assistant_id: str,
22+
chat_id: str,
23+
**kwargs,
24+
) -> BaseEmptyResponse:
2225
# get api client
2326
sync_api_client = get_api_client(async_client=False)
2427

@@ -51,7 +54,11 @@ def api_delete_chat(assistant_id: str, chat_id: str, **kwargs) -> BaseEmptyRespo
5154
)
5255

5356

54-
async def async_api_delete_chat(assistant_id: str, chat_id: str, **kwargs) -> BaseEmptyResponse:
57+
async def async_api_delete_chat(
58+
assistant_id: str,
59+
chat_id: str,
60+
**kwargs,
61+
) -> BaseEmptyResponse:
5562
# get api client
5663
async_api_client = get_api_client(async_client=True)
5764

0 commit comments

Comments
 (0)