Skip to content

Commit 7cba8e7

Browse files
committed
fix: fix PR problems
1 parent e213d89 commit 7cba8e7

File tree

10 files changed

+96
-255
lines changed

10 files changed

+96
-255
lines changed

examples/assistant/chat_with_assistant.ipynb

+30-61
Large diffs are not rendered by default.

examples/crud/assistant_crud.ipynb

+17-52
Large diffs are not rendered by default.

examples/crud/retrieval_crud.ipynb

+34-86
Large diffs are not rendered by default.

examples/inference/chat_completion.ipynb

+11-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"from taskingai.inference import *\n",
3232
"import json\n",
3333
"# choose an available chat_completion model from your project\n",
34-
"model_id = \"YOUR_MODEL_ID\""
34+
"model_id = \"YOUR_CHAT_COMPLETION_MODEL_ID\""
3535
],
3636
"metadata": {
3737
"collapsed": false
@@ -265,6 +265,16 @@
265265
"collapsed": false
266266
},
267267
"id": "4f3290f87635152a"
268+
},
269+
{
270+
"cell_type": "code",
271+
"execution_count": null,
272+
"outputs": [],
273+
"source": [],
274+
"metadata": {
275+
"collapsed": false
276+
},
277+
"id": "f9a7066d18575dc9"
268278
}
269279
],
270280
"metadata": {

taskingai/client/models/entities/__init__.py

-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
from .chat_completion_system_message import *
3131
from .chat_completion_usage import *
3232
from .chat_completion_user_message import *
33-
from .chat_memory import *
34-
from .chat_memory_message import *
3533
from .chunk import *
3634
from .collection import *
3735
from .file_id_data import *

taskingai/client/models/entities/assistant_memory.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,4 @@
2020

2121
class AssistantMemory(BaseModel):
2222
type: AssistantMemoryType = Field(...)
23-
max_messages: Optional[int] = Field(None, ge=1, le=1024)
24-
max_tokens: Optional[int] = Field(None, ge=1, le=8192)
23+
max_tokens: Optional[int] = Field(None, ge=0, le=8192)

taskingai/client/models/entities/chat_memory.py

-26
This file was deleted.

taskingai/client/models/entities/chat_memory_message.py

-24
This file was deleted.

taskingai/client/models/entities/tool_type.py

+1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@
1717

1818

1919
class ToolType(str, Enum):
20+
ACTION = "action"
2021
PLUGIN = "plugin"

taskingai/retrieval/collection.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ def create_collection(
117117
:param embedding_model_id: The ID of an available embedding model in the project.
118118
:param capacity: The maximum number of embeddings that can be stored in the collection.
119119
:param name: The name of the collection.
120+
:param type: The type of the collection.
120121
:param description: The description of the collection.
121122
:param metadata: The collection metadata. It can store up to 16 key-value pairs where each key's length is less than 64 and value's length is less than 512.
122123
:return: The created collection object.
@@ -149,12 +150,12 @@ async def a_create_collection(
149150
:param embedding_model_id: The ID of an available embedding model in the project.
150151
:param capacity: The maximum number of embeddings that can be stored in the collection.
151152
:param name: The name of the collection.
153+
:param type: The type of the collection.
152154
:param description: The description of the collection.
153155
:param metadata: The collection metadata. It can store up to 16 key-value pairs where each key's length is less than 64 and value's length is less than 512.
154156
:return: The created collection object.
155157
"""
156158

157-
# todo verify parameters
158159
body = CollectionCreateRequest(
159160
embedding_model_id=embedding_model_id,
160161
capacity=capacity,

0 commit comments

Comments
 (0)