frogml-core 0.0.113__py3-none-any.whl → 0.0.115__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.
- frogml_core/__init__.py +1 -1
- frogml_core/clients/administration/authentication/client.py +2 -2
- frogml_core/clients/batch_job_management/client.py +4 -4
- frogml_core/clients/build_orchestrator/build_model_request_getter.py +6 -6
- frogml_core/clients/build_orchestrator/client.py +12 -12
- frogml_core/clients/build_orchestrator/internal_client.py +10 -10
- frogml_core/frogml_client/build_api_helpers/build_api_steps.py +3 -3
- frogml_core/inner/build_logic/constants/upload_tag.py +7 -7
- frogml_core/inner/build_logic/interface/context_interface.py +1 -1
- frogml_core/inner/build_logic/phases/phase_010_fetch_model/fetch_strategy_manager/strategy/strategy.py +4 -4
- frogml_core/inner/build_logic/phases/phase_010_fetch_model/set_version_step.py +3 -3
- frogml_core/inner/build_logic/phases/phase_020_remote_register_frogml_build/start_remote_build_step.py +3 -3
- frogml_core/inner/build_logic/phases/phase_020_remote_register_frogml_build/upload_step.py +11 -9
- frogml_core/inner/build_logic/tools/ignore_files.py +3 -3
- frogml_core/inner/di_configuration/__init__.py +0 -6
- frogml_core/model/adapters/__init__.py +1 -1
- frogml_core/model/analytics_logging.py +1 -1
- frogml_core/model/tools/adapters/input.py +6 -6
- frogml_core/model/tools/adapters/output.py +8 -8
- frogml_core/model/tools/run_model_locally.py +2 -2
- frogml_core/model/utils/feature_utils.py +1 -1
- {frogml_core-0.0.113.dist-info → frogml_core-0.0.115.dist-info}/METADATA +1 -1
- {frogml_core-0.0.113.dist-info → frogml_core-0.0.115.dist-info}/RECORD +30 -137
- frogml_services_mock/mocks/analytics_api.py +6 -6
- frogml_services_mock/mocks/ecosystem_service_api.py +2 -2
- frogml_services_mock/mocks/frogml_mocks.py +0 -11
- frogml_services_mock/services_mock.py +4 -52
- frogml_storage/__init__.py +1 -1
- frogml_core/clients/prompt_manager/__init__.py +0 -0
- frogml_core/clients/prompt_manager/model_descriptor_mapper.py +0 -196
- frogml_core/clients/prompt_manager/prompt_manager_client.py +0 -190
- frogml_core/clients/prompt_manager/prompt_proto_mapper.py +0 -264
- frogml_core/clients/vector_store/__init__.py +0 -2
- frogml_core/clients/vector_store/management_client.py +0 -127
- frogml_core/clients/vector_store/serving_client.py +0 -157
- frogml_core/clients/workspace_manager/__init__.py +0 -1
- frogml_core/clients/workspace_manager/client.py +0 -224
- frogml_core/llmops/__init__.py +0 -0
- frogml_core/llmops/generation/__init__.py +0 -0
- frogml_core/llmops/generation/_steaming.py +0 -78
- frogml_core/llmops/generation/base.py +0 -5
- frogml_core/llmops/generation/chat/__init__.py +0 -0
- frogml_core/llmops/generation/chat/openai/LICENSE.txt +0 -201
- frogml_core/llmops/generation/chat/openai/types/__init__.py +0 -0
- frogml_core/llmops/generation/chat/openai/types/chat/__init__.py +0 -0
- frogml_core/llmops/generation/chat/openai/types/chat/chat_completion.py +0 -88
- frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_assistant_message_param.py +0 -65
- frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_chunk.py +0 -153
- frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_content_part_text_param.py +0 -28
- frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_function_call_option_param.py +0 -25
- frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_function_message_param.py +0 -33
- frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_message.py +0 -56
- frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_message_param.py +0 -34
- frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_message_tool_call.py +0 -46
- frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_message_tool_call_param.py +0 -44
- frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_named_tool_choice_param.py +0 -32
- frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_role.py +0 -20
- frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_system_message_param.py +0 -35
- frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_token_logprob.py +0 -71
- frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_tool_choice_option_param.py +0 -28
- frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_tool_message_param.py +0 -31
- frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_tool_param.py +0 -29
- frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_user_message_param.py +0 -35
- frogml_core/llmops/generation/chat/openai/types/chat/completion_create_params.py +0 -279
- frogml_core/llmops/generation/chat/openai/types/completion_choice.py +0 -47
- frogml_core/llmops/generation/chat/openai/types/completion_create_params.py +0 -209
- frogml_core/llmops/generation/chat/openai/types/completion_usage.py +0 -30
- frogml_core/llmops/generation/chat/openai/types/model.py +0 -35
- frogml_core/llmops/generation/chat/openai/types/shared/__init__.py +0 -3
- frogml_core/llmops/generation/chat/openai/types/shared/error_object.py +0 -27
- frogml_core/llmops/generation/chat/openai/types/shared/function_definition.py +0 -49
- frogml_core/llmops/generation/chat/openai/types/shared/function_parameters.py +0 -20
- frogml_core/llmops/generation/chat/openai/types/shared_params/__init__.py +0 -2
- frogml_core/llmops/generation/chat/openai/types/shared_params/function_definition.py +0 -49
- frogml_core/llmops/generation/chat/openai/types/shared_params/function_parameters.py +0 -22
- frogml_core/llmops/generation/streaming.py +0 -26
- frogml_core/llmops/model/__init__.py +0 -0
- frogml_core/llmops/model/descriptor.py +0 -40
- frogml_core/llmops/prompt/__init__.py +0 -0
- frogml_core/llmops/prompt/base.py +0 -136
- frogml_core/llmops/prompt/chat/__init__.py +0 -0
- frogml_core/llmops/prompt/chat/message.py +0 -24
- frogml_core/llmops/prompt/chat/template.py +0 -113
- frogml_core/llmops/prompt/chat/value.py +0 -10
- frogml_core/llmops/prompt/manager.py +0 -138
- frogml_core/llmops/prompt/template.py +0 -24
- frogml_core/llmops/prompt/value.py +0 -14
- frogml_core/llmops/provider/__init__.py +0 -0
- frogml_core/llmops/provider/chat.py +0 -44
- frogml_core/llmops/provider/openai/__init__.py +0 -0
- frogml_core/llmops/provider/openai/client.py +0 -126
- frogml_core/llmops/provider/openai/provider.py +0 -93
- frogml_core/vector_store/__init__.py +0 -4
- frogml_core/vector_store/client.py +0 -151
- frogml_core/vector_store/collection.py +0 -429
- frogml_core/vector_store/filters.py +0 -359
- frogml_core/vector_store/inference_client.py +0 -105
- frogml_core/vector_store/rest_helpers.py +0 -81
- frogml_core/vector_store/utils/__init__.py +0 -0
- frogml_core/vector_store/utils/filter_utils.py +0 -23
- frogml_core/vector_store/utils/upsert_utils.py +0 -218
- frogml_proto/qwak/prompt/v1/prompt/prompt_manager_service_pb2.py +0 -77
- frogml_proto/qwak/prompt/v1/prompt/prompt_manager_service_pb2.pyi +0 -417
- frogml_proto/qwak/prompt/v1/prompt/prompt_manager_service_pb2_grpc.py +0 -441
- frogml_proto/qwak/prompt/v1/prompt/prompt_pb2.py +0 -69
- frogml_proto/qwak/prompt/v1/prompt/prompt_pb2.pyi +0 -415
- frogml_proto/qwak/prompt/v1/prompt/prompt_pb2_grpc.py +0 -4
- frogml_proto/qwak/vectors/v1/collection/collection_pb2.py +0 -46
- frogml_proto/qwak/vectors/v1/collection/collection_pb2.pyi +0 -287
- frogml_proto/qwak/vectors/v1/collection/collection_pb2_grpc.py +0 -4
- frogml_proto/qwak/vectors/v1/collection/collection_service_pb2.py +0 -60
- frogml_proto/qwak/vectors/v1/collection/collection_service_pb2.pyi +0 -258
- frogml_proto/qwak/vectors/v1/collection/collection_service_pb2_grpc.py +0 -304
- frogml_proto/qwak/vectors/v1/collection/event/collection_event_pb2.py +0 -28
- frogml_proto/qwak/vectors/v1/collection/event/collection_event_pb2.pyi +0 -41
- frogml_proto/qwak/vectors/v1/collection/event/collection_event_pb2_grpc.py +0 -4
- frogml_proto/qwak/vectors/v1/filters_pb2.py +0 -52
- frogml_proto/qwak/vectors/v1/filters_pb2.pyi +0 -297
- frogml_proto/qwak/vectors/v1/filters_pb2_grpc.py +0 -4
- frogml_proto/qwak/vectors/v1/vector_pb2.py +0 -38
- frogml_proto/qwak/vectors/v1/vector_pb2.pyi +0 -142
- frogml_proto/qwak/vectors/v1/vector_pb2_grpc.py +0 -4
- frogml_proto/qwak/vectors/v1/vector_service_pb2.py +0 -53
- frogml_proto/qwak/vectors/v1/vector_service_pb2.pyi +0 -243
- frogml_proto/qwak/vectors/v1/vector_service_pb2_grpc.py +0 -201
- frogml_proto/qwak/workspace/workspace_pb2.py +0 -50
- frogml_proto/qwak/workspace/workspace_pb2.pyi +0 -331
- frogml_proto/qwak/workspace/workspace_pb2_grpc.py +0 -4
- frogml_proto/qwak/workspace/workspace_service_pb2.py +0 -84
- frogml_proto/qwak/workspace/workspace_service_pb2.pyi +0 -393
- frogml_proto/qwak/workspace/workspace_service_pb2_grpc.py +0 -507
- frogml_services_mock/mocks/prompt_manager_service.py +0 -281
- frogml_services_mock/mocks/vector_serving_api.py +0 -159
- frogml_services_mock/mocks/vectors_management_api.py +0 -97
- frogml_services_mock/mocks/workspace_manager_service_mock.py +0 -202
- /frogml_core/model/adapters/output_adapters/{qwak_with_default_fallback.py → frogml_with_default_fallback.py} +0 -0
- {frogml_core-0.0.113.dist-info → frogml_core-0.0.115.dist-info}/WHEEL +0 -0
@@ -1,34 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Copyright 2024 OpenAI
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
|
-
|
16
|
-
from __future__ import annotations
|
17
|
-
|
18
|
-
from typing import Union
|
19
|
-
|
20
|
-
from .chat_completion_assistant_message_param import ChatCompletionAssistantMessageParam
|
21
|
-
from .chat_completion_function_message_param import ChatCompletionFunctionMessageParam
|
22
|
-
from .chat_completion_system_message_param import ChatCompletionSystemMessageParam
|
23
|
-
from .chat_completion_tool_message_param import ChatCompletionToolMessageParam
|
24
|
-
from .chat_completion_user_message_param import ChatCompletionUserMessageParam
|
25
|
-
|
26
|
-
__all__ = ["ChatCompletionMessageParam"]
|
27
|
-
|
28
|
-
ChatCompletionMessageParam = Union[
|
29
|
-
ChatCompletionSystemMessageParam,
|
30
|
-
ChatCompletionUserMessageParam,
|
31
|
-
ChatCompletionAssistantMessageParam,
|
32
|
-
ChatCompletionToolMessageParam,
|
33
|
-
ChatCompletionFunctionMessageParam,
|
34
|
-
]
|
@@ -1,46 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Copyright 2024 OpenAI
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
|
-
|
16
|
-
from dataclasses import dataclass
|
17
|
-
|
18
|
-
from typing_extensions import Literal
|
19
|
-
|
20
|
-
__all__ = ["ChatCompletionMessageToolCall", "Function"]
|
21
|
-
|
22
|
-
|
23
|
-
@dataclass
|
24
|
-
class Function:
|
25
|
-
arguments: str
|
26
|
-
"""
|
27
|
-
The arguments to call the function with, as generated by the model in JSON
|
28
|
-
format. Note that the model does not always generate valid JSON, and may
|
29
|
-
hallucinate parameters not defined by your function schema. Validate the
|
30
|
-
arguments in your code before calling your function.
|
31
|
-
"""
|
32
|
-
|
33
|
-
name: str
|
34
|
-
"""The name of the function to call."""
|
35
|
-
|
36
|
-
|
37
|
-
@dataclass
|
38
|
-
class ChatCompletionMessageToolCall:
|
39
|
-
id: str
|
40
|
-
"""The ID of the tool call."""
|
41
|
-
|
42
|
-
function: Function
|
43
|
-
"""The function that the model called."""
|
44
|
-
|
45
|
-
type: Literal["function"]
|
46
|
-
"""The type of the tool. Currently, only `function` is supported."""
|
frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_message_tool_call_param.py
DELETED
@@ -1,44 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Copyright 2024 OpenAI
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
|
-
|
16
|
-
from __future__ import annotations
|
17
|
-
|
18
|
-
from typing_extensions import Literal, Required, TypedDict
|
19
|
-
|
20
|
-
__all__ = ["ChatCompletionMessageToolCallParam", "Function"]
|
21
|
-
|
22
|
-
|
23
|
-
class Function(TypedDict, total=False):
|
24
|
-
arguments: Required[str]
|
25
|
-
"""
|
26
|
-
The arguments to call the function with, as generated by the model in JSON
|
27
|
-
format. Note that the model does not always generate valid JSON, and may
|
28
|
-
hallucinate parameters not defined by your function schema. Validate the
|
29
|
-
arguments in your code before calling your function.
|
30
|
-
"""
|
31
|
-
|
32
|
-
name: Required[str]
|
33
|
-
"""The name of the function to call."""
|
34
|
-
|
35
|
-
|
36
|
-
class ChatCompletionMessageToolCallParam(TypedDict, total=False):
|
37
|
-
id: Required[str]
|
38
|
-
"""The ID of the tool call."""
|
39
|
-
|
40
|
-
function: Required[Function]
|
41
|
-
"""The function that the model called."""
|
42
|
-
|
43
|
-
type: Required[Literal["function"]]
|
44
|
-
"""The type of the tool. Currently, only `function` is supported."""
|
frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_named_tool_choice_param.py
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Copyright 2024 OpenAI
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
|
-
|
16
|
-
from __future__ import annotations
|
17
|
-
|
18
|
-
from typing_extensions import Literal, Required, TypedDict
|
19
|
-
|
20
|
-
__all__ = ["ChatCompletionNamedToolChoiceParam", "Function"]
|
21
|
-
|
22
|
-
|
23
|
-
class Function(TypedDict, total=False):
|
24
|
-
name: Required[str]
|
25
|
-
"""The name of the function to call."""
|
26
|
-
|
27
|
-
|
28
|
-
class ChatCompletionNamedToolChoiceParam(TypedDict, total=False):
|
29
|
-
function: Required[Function]
|
30
|
-
|
31
|
-
type: Required[Literal["function"]]
|
32
|
-
"""The type of the tool. Currently, only `function` is supported."""
|
@@ -1,20 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Copyright 2024 OpenAI
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
|
-
|
16
|
-
from typing_extensions import Literal
|
17
|
-
|
18
|
-
__all__ = ["ChatCompletionRole"]
|
19
|
-
|
20
|
-
ChatCompletionRole = Literal["system", "user", "assistant", "tool", "function"]
|
frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_system_message_param.py
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Copyright 2024 OpenAI
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
|
-
|
16
|
-
from __future__ import annotations
|
17
|
-
|
18
|
-
from typing_extensions import Literal, Required, TypedDict
|
19
|
-
|
20
|
-
__all__ = ["ChatCompletionSystemMessageParam"]
|
21
|
-
|
22
|
-
|
23
|
-
class ChatCompletionSystemMessageParam(TypedDict, total=False):
|
24
|
-
content: Required[str]
|
25
|
-
"""The contents of the system message."""
|
26
|
-
|
27
|
-
role: Required[Literal["system"]]
|
28
|
-
"""The role of the messages author, in this case `system`."""
|
29
|
-
|
30
|
-
name: str
|
31
|
-
"""An optional name for the participant.
|
32
|
-
|
33
|
-
Provides the model information to differentiate between participants of the same
|
34
|
-
role.
|
35
|
-
"""
|
@@ -1,71 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Copyright 2024 OpenAI
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
|
-
|
16
|
-
from dataclasses import dataclass
|
17
|
-
from typing import List, Optional
|
18
|
-
|
19
|
-
__all__ = ["ChatCompletionTokenLogprob", "TopLogprob"]
|
20
|
-
|
21
|
-
|
22
|
-
@dataclass
|
23
|
-
class TopLogprob:
|
24
|
-
token: str
|
25
|
-
"""The token."""
|
26
|
-
|
27
|
-
logprob: float
|
28
|
-
"""The log probability of this token, if it is within the top 20 most likely
|
29
|
-
tokens.
|
30
|
-
|
31
|
-
Otherwise, the value `-9999.0` is used to signify that the token is very
|
32
|
-
unlikely.
|
33
|
-
"""
|
34
|
-
|
35
|
-
bytes: Optional[List[int]] = None
|
36
|
-
"""A list of integers representing the UTF-8 bytes representation of the token.
|
37
|
-
|
38
|
-
Useful in instances where characters are represented by multiple tokens and
|
39
|
-
their byte representations must be combined to generate the correct text
|
40
|
-
representation. Can be `null` if there is no bytes representation for the token.
|
41
|
-
"""
|
42
|
-
|
43
|
-
|
44
|
-
@dataclass
|
45
|
-
class ChatCompletionTokenLogprob:
|
46
|
-
token: str
|
47
|
-
"""The token."""
|
48
|
-
|
49
|
-
logprob: float
|
50
|
-
"""The log probability of this token, if it is within the top 20 most likely
|
51
|
-
tokens.
|
52
|
-
|
53
|
-
Otherwise, the value `-9999.0` is used to signify that the token is very
|
54
|
-
unlikely.
|
55
|
-
"""
|
56
|
-
|
57
|
-
top_logprobs: List[TopLogprob]
|
58
|
-
"""List of the most likely tokens and their log probability, at this token
|
59
|
-
position.
|
60
|
-
|
61
|
-
In rare cases, there may be fewer than the number of requested `top_logprobs`
|
62
|
-
returned.
|
63
|
-
"""
|
64
|
-
|
65
|
-
bytes: Optional[List[int]] = None
|
66
|
-
"""A list of integers representing the UTF-8 bytes representation of the token.
|
67
|
-
|
68
|
-
Useful in instances where characters are represented by multiple tokens and
|
69
|
-
their byte representations must be combined to generate the correct text
|
70
|
-
representation. Can be `null` if there is no bytes representation for the token.
|
71
|
-
"""
|
frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_tool_choice_option_param.py
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Copyright 2024 OpenAI
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
|
-
|
16
|
-
from __future__ import annotations
|
17
|
-
|
18
|
-
from typing import Union
|
19
|
-
|
20
|
-
from typing_extensions import Literal
|
21
|
-
|
22
|
-
from .chat_completion_named_tool_choice_param import ChatCompletionNamedToolChoiceParam
|
23
|
-
|
24
|
-
__all__ = ["ChatCompletionToolChoiceOptionParam"]
|
25
|
-
|
26
|
-
ChatCompletionToolChoiceOptionParam = Union[
|
27
|
-
Literal["none", "auto"], ChatCompletionNamedToolChoiceParam
|
28
|
-
]
|
@@ -1,31 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Copyright 2024 OpenAI
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
|
-
|
16
|
-
from __future__ import annotations
|
17
|
-
|
18
|
-
from typing_extensions import Literal, Required, TypedDict
|
19
|
-
|
20
|
-
__all__ = ["ChatCompletionToolMessageParam"]
|
21
|
-
|
22
|
-
|
23
|
-
class ChatCompletionToolMessageParam(TypedDict, total=False):
|
24
|
-
content: Required[str]
|
25
|
-
"""The contents of the tool message."""
|
26
|
-
|
27
|
-
role: Required[Literal["tool"]]
|
28
|
-
"""The role of the messages author, in this case `tool`."""
|
29
|
-
|
30
|
-
tool_call_id: Required[str]
|
31
|
-
"""Tool call that this message is responding to."""
|
@@ -1,29 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Copyright 2024 OpenAI
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
|
-
|
16
|
-
from __future__ import annotations
|
17
|
-
|
18
|
-
from typing_extensions import Literal, Required, TypedDict
|
19
|
-
|
20
|
-
from ...types import shared_params
|
21
|
-
|
22
|
-
__all__ = ["ChatCompletionToolParam"]
|
23
|
-
|
24
|
-
|
25
|
-
class ChatCompletionToolParam(TypedDict, total=False):
|
26
|
-
function: Required[shared_params.FunctionDefinition]
|
27
|
-
|
28
|
-
type: Required[Literal["function"]]
|
29
|
-
"""The type of the tool. Currently, only `function` is supported."""
|
@@ -1,35 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Copyright 2024 OpenAI
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
|
-
|
16
|
-
from __future__ import annotations
|
17
|
-
|
18
|
-
from typing_extensions import Literal, Required, TypedDict
|
19
|
-
|
20
|
-
__all__ = ["ChatCompletionUserMessageParam"]
|
21
|
-
|
22
|
-
|
23
|
-
class ChatCompletionUserMessageParam(TypedDict, total=False):
|
24
|
-
content: Required[str]
|
25
|
-
"""The contents of the user message."""
|
26
|
-
|
27
|
-
role: Required[Literal["user"]]
|
28
|
-
"""The role of the messages author, in this case `user`."""
|
29
|
-
|
30
|
-
name: str
|
31
|
-
"""An optional name for the participant.
|
32
|
-
|
33
|
-
Provides the model information to differentiate between participants of the same
|
34
|
-
role.
|
35
|
-
"""
|