Skip to content

Commit

Permalink
GRPC clients version 11.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
clarifai-prod committed Jan 21, 2025
1 parent ca5134f commit f02b96d
Show file tree
Hide file tree
Showing 7 changed files with 781 additions and 767 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
11.0.2
11.0.3
2 changes: 1 addition & 1 deletion clarifai_grpc/channel/http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from clarifai_grpc.channel.errors import ApiError

CLIENT_VERSION = "11.0.2"
CLIENT_VERSION = "11.0.3"
OS_VER = os.sys.platform
PYTHON_VERSION = ".".join(
map(
Expand Down
620 changes: 310 additions & 310 deletions clarifai_grpc/grpc/api/resources_pb2.py

Large diffs are not rendered by default.

12 changes: 11 additions & 1 deletion clarifai_grpc/grpc/api/resources_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5247,6 +5247,8 @@ class Output(google.protobuf.message.Message):
MODEL_FIELD_NUMBER: builtins.int
INPUT_FIELD_NUMBER: builtins.int
DATA_FIELD_NUMBER: builtins.int
PROMPT_TOKENS_FIELD_NUMBER: builtins.int
COMPLETION_TOKENS_FIELD_NUMBER: builtins.int
id: builtins.str
"""One of these outputs per Input"""
@property
Expand All @@ -5272,6 +5274,10 @@ class Output(google.protobuf.message.Message):
"""The output data for this Output. For example if we have a concept model then the predicted
concepts will appear here.
"""
prompt_tokens: builtins.int
"""Number of prompt tokens as reported by the model or third-party API."""
completion_tokens: builtins.int
"""Number of completion tokens as reported by the model or third-party API."""
def __init__(
self,
*,
Expand All @@ -5281,9 +5287,11 @@ class Output(google.protobuf.message.Message):
model: global___Model | None = ...,
input: global___Input | None = ...,
data: global___Data | None = ...,
prompt_tokens: builtins.int = ...,
completion_tokens: builtins.int = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["created_at", b"created_at", "data", b"data", "input", b"input", "model", b"model", "status", b"status"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["created_at", b"created_at", "data", b"data", "id", b"id", "input", b"input", "model", b"model", "status", b"status"]) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["completion_tokens", b"completion_tokens", "created_at", b"created_at", "data", b"data", "id", b"id", "input", b"input", "model", b"model", "prompt_tokens", b"prompt_tokens", "status", b"status"]) -> None: ...

global___Output = Output

Expand Down Expand Up @@ -5717,6 +5725,8 @@ class Filter(google.protobuf.message.Message):
- in order to enable this, you need to set the field to an empty object, i.e. `{"data": {"regions": [{"region_info": {"polygon":{}}}]}}`
- data.regions[].region_info.span - filter only span annotations
- in order to enable this, you need to set the field to an empty object, i.e. `{"data": {"regions": [{"region_info": {"span":{}}}]}}`
- data.regions[].track_id - filter annotations by track_id
- in order to enable this, you need to provide "track_id_value" i.e. `{"data": {"regions": [{"track_id" : "track_id_value"}]}}`
- data.time_segments[].time_info - filter only time-segment annotations
- in order to enable this, you need to set the field to an empty object, i.e. `{"data": {"time_segments": [{"time_info": {}}]}}`
Expand Down
904 changes: 452 additions & 452 deletions clarifai_grpc/grpc/api/service_pb2.py

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion clarifai_grpc/grpc/api/service_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4525,6 +4525,7 @@ class PostModelVersionsUploadConfig(google.protobuf.message.Message):
MODEL_VERSION_FIELD_NUMBER: builtins.int
TOTAL_SIZE_FIELD_NUMBER: builtins.int
IS_V3_FIELD_NUMBER: builtins.int
STORAGE_REQUEST_SIZE_FIELD_NUMBER: builtins.int
@property
def user_app_id(self) -> proto.clarifai.api.resources_pb2.UserAppIDSet: ...
model_id: builtins.str
Expand All @@ -4536,6 +4537,8 @@ class PostModelVersionsUploadConfig(google.protobuf.message.Message):
"""Number of bytes in the model files to be uploaded"""
is_v3: builtins.bool
"""Whether the uploaded package will be a .tar.gz which contains a Dockerfile or the standard .zip"""
storage_request_size: builtins.int
"""Number of bytes requested for the build process."""
def __init__(
self,
*,
Expand All @@ -4544,9 +4547,10 @@ class PostModelVersionsUploadConfig(google.protobuf.message.Message):
model_version: proto.clarifai.api.resources_pb2.ModelVersion | None = ...,
total_size: builtins.int = ...,
is_v3: builtins.bool = ...,
storage_request_size: builtins.int = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["model_version", b"model_version", "user_app_id", b"user_app_id"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["is_v3", b"is_v3", "model_id", b"model_id", "model_version", b"model_version", "total_size", b"total_size", "user_app_id", b"user_app_id"]) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["is_v3", b"is_v3", "model_id", b"model_id", "model_version", b"model_version", "storage_request_size", b"storage_request_size", "total_size", b"total_size", "user_app_id", b"user_app_id"]) -> None: ...

global___PostModelVersionsUploadConfig = PostModelVersionsUploadConfig

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setuptools.setup(
name="clarifai-grpc",
version="11.0.2",
version="11.0.3",
author="Clarifai",
author_email="[email protected]",
description="Clarifai gRPC API Client",
Expand Down

0 comments on commit f02b96d

Please sign in to comment.