llmir 0.0.6__py3-none-any.whl → 0.0.8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- llmir/adapter/__init__.py +2 -1
- llmir/adapter/openai.py +0 -2
- {llmir-0.0.6.dist-info → llmir-0.0.8.dist-info}/METADATA +1 -1
- {llmir-0.0.6.dist-info → llmir-0.0.8.dist-info}/RECORD +6 -6
- {llmir-0.0.6.dist-info → llmir-0.0.8.dist-info}/WHEEL +0 -0
- {llmir-0.0.6.dist-info → llmir-0.0.8.dist-info}/top_level.txt +0 -0
llmir/adapter/__init__.py
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
from .openai import to_openai, OpenAIMessage, OpenAIMessageToolResponse, OpenAIContents, OpenAITextContent, OpenAIImageURLContent, OpenAIImageURLURL, OpenAIToolCallContent, OpenAIToolCallFunction
|
|
1
|
+
from .openai import to_openai, OpenAIMessages, OpenAIMessage, OpenAIMessageToolResponse, OpenAIContents, OpenAITextContent, OpenAIImageURLContent, OpenAIImageURLURL, OpenAIToolCallContent, OpenAIToolCallFunction
|
|
2
2
|
|
|
3
3
|
__all__ = [
|
|
4
4
|
"to_openai",
|
|
5
|
+
"OpenAIMessages",
|
|
5
6
|
"OpenAIMessage",
|
|
6
7
|
"OpenAIMessageToolResponse",
|
|
7
8
|
"OpenAIContents",
|
llmir/adapter/openai.py
CHANGED
|
@@ -39,7 +39,6 @@ class OpenAIMessage(TypedDict):
|
|
|
39
39
|
class OpenAIMessageToolResponse(TypedDict):
|
|
40
40
|
role: Literal["tool"]
|
|
41
41
|
tool_call_id: str
|
|
42
|
-
name: str
|
|
43
42
|
content: str
|
|
44
43
|
|
|
45
44
|
|
|
@@ -68,7 +67,6 @@ def to_openai(messages: list[AIMessages]) -> list[OpenAIMessages]:
|
|
|
68
67
|
OpenAIMessageToolResponse(
|
|
69
68
|
role=role,
|
|
70
69
|
tool_call_id=message.id,
|
|
71
|
-
name=message.name,
|
|
72
70
|
content=text,
|
|
73
71
|
)
|
|
74
72
|
)
|
|
@@ -5,9 +5,9 @@ llmir/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
5
5
|
llmir/rich_repr.py,sha256=ZGAfpcPkYJSUpFdir8B1MoORVFBSzVckCrRHVVkJIj4,559
|
|
6
6
|
llmir/roles.py,sha256=B9PmxTHAb8XoiA9en_J1yIP19woddzx4SRUz5XkUxFc,133
|
|
7
7
|
llmir/tools.py,sha256=fpkC3IafHqZJnwo7imtHdkTdGLBHQuR6DtdztXZrlWg,147
|
|
8
|
-
llmir/adapter/__init__.py,sha256=
|
|
9
|
-
llmir/adapter/openai.py,sha256=
|
|
10
|
-
llmir-0.0.
|
|
11
|
-
llmir-0.0.
|
|
12
|
-
llmir-0.0.
|
|
13
|
-
llmir-0.0.
|
|
8
|
+
llmir/adapter/__init__.py,sha256=UWfxC24Yll1GBataj4Aur_6RsdQwHQ1fV4ycTUhu7OA,479
|
|
9
|
+
llmir/adapter/openai.py,sha256=cRgX-pKyfNx8sFrC9afgVx4phKpbx3YODfUQA7vp-oA,4114
|
|
10
|
+
llmir-0.0.8.dist-info/METADATA,sha256=92pI6hxaAZVHEbqmtuwfgOECkap7N_Z3vgtSa84l7jE,177
|
|
11
|
+
llmir-0.0.8.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
12
|
+
llmir-0.0.8.dist-info/top_level.txt,sha256=fm538OsNUSYa_71IPztSSN2PBCvcbaD5PmUIzaO5hQs,6
|
|
13
|
+
llmir-0.0.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|