huggingface-hub 0.34.5__py3-none-any.whl → 0.34.6__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.

Potentially problematic release.


This version of huggingface-hub might be problematic. Click here for more details.

@@ -46,7 +46,7 @@ import sys
46
46
  from typing import TYPE_CHECKING
47
47
 
48
48
 
49
- __version__ = "0.34.5"
49
+ __version__ = "0.34.6"
50
50
 
51
51
  # Alphabetical order of definitions is ensured in tests
52
52
  # WARNING: any comment added in this dictionary definition will be lost when
@@ -133,7 +133,7 @@ class InferenceClient:
133
133
  Note: for better compatibility with OpenAI's client, `model` has been aliased as `base_url`. Those 2
134
134
  arguments are mutually exclusive. If a URL is passed as `model` or `base_url` for chat completion, the `(/v1)/chat/completions` suffix path will be appended to the URL.
135
135
  provider (`str`, *optional*):
136
- Name of the provider to use for inference. Can be `"black-forest-labs"`, `"cerebras"`, `"cohere"`, `"fal-ai"`, `"featherless-ai"`, `"fireworks-ai"`, `"groq"`, `"hf-inference"`, `"hyperbolic"`, `"nebius"`, `"novita"`, `"nscale"`, `"openai"`, `"replicate"`, `"sambanova"`, `"scaleway"` or `"together"`.
136
+ Name of the provider to use for inference. Can be `"black-forest-labs"`, `"cerebras"`, `"cohere"`, `"fal-ai"`, `"featherless-ai"`, `"fireworks-ai"`, `"groq"`, `"hf-inference"`, `"hyperbolic"`, `"nebius"`, `"novita"`, `"nscale"`, `"openai"`, `publicai`, `"replicate"`, `"sambanova"`, `"scaleway"` or `"together"`.
137
137
  Defaults to "auto" i.e. the first of the providers available for the model, sorted by the user's order in https://hf.co/settings/inference-providers.
138
138
  If model is a URL or `base_url` is passed, then `provider` is not used.
139
139
  token (`str`, *optional*):
@@ -121,7 +121,7 @@ class AsyncInferenceClient:
121
121
  Note: for better compatibility with OpenAI's client, `model` has been aliased as `base_url`. Those 2
122
122
  arguments are mutually exclusive. If a URL is passed as `model` or `base_url` for chat completion, the `(/v1)/chat/completions` suffix path will be appended to the URL.
123
123
  provider (`str`, *optional*):
124
- Name of the provider to use for inference. Can be `"black-forest-labs"`, `"cerebras"`, `"cohere"`, `"fal-ai"`, `"featherless-ai"`, `"fireworks-ai"`, `"groq"`, `"hf-inference"`, `"hyperbolic"`, `"nebius"`, `"novita"`, `"nscale"`, `"openai"`, `"replicate"`, `"sambanova"`, `"scaleway"` or `"together"`.
124
+ Name of the provider to use for inference. Can be `"black-forest-labs"`, `"cerebras"`, `"cohere"`, `"fal-ai"`, `"featherless-ai"`, `"fireworks-ai"`, `"groq"`, `"hf-inference"`, `"hyperbolic"`, `"nebius"`, `"novita"`, `"nscale"`, `"openai"`, `publicai`, `"replicate"`, `"sambanova"`, `"scaleway"` or `"together"`.
125
125
  Defaults to "auto" i.e. the first of the providers available for the model, sorted by the user's order in https://hf.co/settings/inference-providers.
126
126
  If model is a URL or `base_url` is passed, then `provider` is not used.
127
127
  token (`str`, *optional*):
@@ -36,6 +36,7 @@ from .nebius import (
36
36
  from .novita import NovitaConversationalTask, NovitaTextGenerationTask, NovitaTextToVideoTask
37
37
  from .nscale import NscaleConversationalTask, NscaleTextToImageTask
38
38
  from .openai import OpenAIConversationalTask
39
+ from .publicai import PublicAIConversationalTask
39
40
  from .replicate import ReplicateImageToImageTask, ReplicateTask, ReplicateTextToImageTask, ReplicateTextToSpeechTask
40
41
  from .sambanova import SambanovaConversationalTask, SambanovaFeatureExtractionTask
41
42
  from .scaleway import ScalewayConversationalTask, ScalewayFeatureExtractionTask
@@ -59,6 +60,7 @@ PROVIDER_T = Literal[
59
60
  "novita",
60
61
  "nscale",
61
62
  "openai",
63
+ "publicai",
62
64
  "replicate",
63
65
  "sambanova",
64
66
  "scaleway",
@@ -146,6 +148,9 @@ PROVIDERS: Dict[PROVIDER_T, Dict[str, TaskProviderHelper]] = {
146
148
  "openai": {
147
149
  "conversational": OpenAIConversationalTask(),
148
150
  },
151
+ "publicai": {
152
+ "conversational": PublicAIConversationalTask(),
153
+ },
149
154
  "replicate": {
150
155
  "image-to-image": ReplicateImageToImageTask(),
151
156
  "text-to-image": ReplicateTextToImageTask(),
@@ -0,0 +1,6 @@
1
+ from ._common import BaseConversationalTask
2
+
3
+
4
+ class PublicAIConversationalTask(BaseConversationalTask):
5
+ def __init__(self):
6
+ super().__init__(provider="publicai", base_url="https://api.publicai.co")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huggingface-hub
3
- Version: 0.34.5
3
+ Version: 0.34.6
4
4
  Summary: Client library to download and publish models, datasets and other repos on the huggingface.co hub
5
5
  Home-page: https://github.com/huggingface/huggingface_hub
6
6
  Author: Hugging Face, Inc.
@@ -1,4 +1,4 @@
1
- huggingface_hub/__init__.py,sha256=rv3FvQosoKR8MvPywT4KVkRA8MmMN0CmBPLTjmVp_LI,51837
1
+ huggingface_hub/__init__.py,sha256=j7m_bZSSM4gLyigyokdviLXlCTvxB4L6PhJvWJdjIZ8,51837
2
2
  huggingface_hub/_commit_api.py,sha256=68HxFnJE2s-QmGZRHQav5kOMTseYV_ZQi04ADaQmZUk,38979
3
3
  huggingface_hub/_commit_scheduler.py,sha256=tfIoO1xWHjTJ6qy6VS6HIoymDycFPg0d6pBSZprrU2U,14679
4
4
  huggingface_hub/_inference_endpoints.py,sha256=ahmbPcEXsJ_JcMb9TDgdkD8Z2z9uytkFG3_1o6dTm8g,17598
@@ -57,10 +57,10 @@ huggingface_hub/commands/upload_large_folder.py,sha256=_1id84BFtbL8HgFRKZ-el_uPr
57
57
  huggingface_hub/commands/user.py,sha256=MjG1lwMq1p5QAlBolFnRX_pUxE3Kd3UiPl-nEEQSgXg,7537
58
58
  huggingface_hub/commands/version.py,sha256=rGpCbvxImY9eQqXrshYt609Iws27R75WARmKQrIo6Ok,1390
59
59
  huggingface_hub/inference/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
60
- huggingface_hub/inference/_client.py,sha256=__SCWGGXY6tivLdWJUiL5YZXYEyaOXNOMmwo_6UksZo,165054
60
+ huggingface_hub/inference/_client.py,sha256=spSP-ZgIoke13PdEMFgyTlctXwR671oIUqICWfkxsRA,165066
61
61
  huggingface_hub/inference/_common.py,sha256=6qAIauugyl1eHk0FhWdjBNEXBNF33_VXC8lc1GR8t7s,15874
62
62
  huggingface_hub/inference/_generated/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
63
- huggingface_hub/inference/_generated/_async_client.py,sha256=7u6ZvDz6nDQ5fhs2qaBAVDw4QZgshGZiBeq-hdRZoL0,171289
63
+ huggingface_hub/inference/_generated/_async_client.py,sha256=5WMicjLgtVmO3gaPFfwcwxYFaSFGkLXuhg19r1aU5M0,171301
64
64
  huggingface_hub/inference/_generated/types/__init__.py,sha256=9WvrGQ8aThtKSNzZF06j-CIE2ZuItne8FFnea1p1u38,6557
65
65
  huggingface_hub/inference/_generated/types/audio_classification.py,sha256=Jg3mzfGhCSH6CfvVvgJSiFpkz6v4nNA0G4LJXacEgNc,1573
66
66
  huggingface_hub/inference/_generated/types/audio_to_audio.py,sha256=2Ep4WkePL7oJwcp5nRJqApwviumGHbft9HhXE9XLHj4,891
@@ -103,7 +103,7 @@ huggingface_hub/inference/_mcp/constants.py,sha256=AnOp_oR5Vty0d5J3AynGGNK9i1I9K
103
103
  huggingface_hub/inference/_mcp/mcp_client.py,sha256=ndaTcZZPbU1ZTNUeB9-WdaOx7bHD3lsrXnKxCeiwpUg,15788
104
104
  huggingface_hub/inference/_mcp/types.py,sha256=ic8VSR9JY1d-vPWsBVXYtXtIU669-HbGQ3m12Szs7BQ,815
105
105
  huggingface_hub/inference/_mcp/utils.py,sha256=VsRWl0fuSZDS0zNT9n7FOMSlzA0UBbP8p8xWKWDt2Pc,4093
106
- huggingface_hub/inference/_providers/__init__.py,sha256=j3kMOwM1nopVGZeYAbw78sv0yvQiwB2Nzpm9pQqqnSg,8594
106
+ huggingface_hub/inference/_providers/__init__.py,sha256=0tJIYaeg1vO0aiIsddvknZsB0Af_0AaN_qYtdk9hGSw,8740
107
107
  huggingface_hub/inference/_providers/_common.py,sha256=mUL5T9v3iqM1d7cYIh0qEyVC8w7UliQz_LEni2srekI,11350
108
108
  huggingface_hub/inference/_providers/black_forest_labs.py,sha256=wO7qgRyNyrIKlZtvL3vJEbS4-D19kfoXZk6PDh1dTis,2842
109
109
  huggingface_hub/inference/_providers/cerebras.py,sha256=QOJ-1U-os7uE7p6eUnn_P_APq-yQhx28be7c3Tq2EuA,210
@@ -118,6 +118,7 @@ huggingface_hub/inference/_providers/nebius.py,sha256=VJpTF2JZ58rznc9wxdk-57vwF8
118
118
  huggingface_hub/inference/_providers/novita.py,sha256=HGVC8wPraRQUuI5uBoye1Y4Wqe4X116B71GhhbWy5yM,2514
119
119
  huggingface_hub/inference/_providers/nscale.py,sha256=qWUsWinQmUbNUqehyKn34tVoWehu8gd-OZ2F4uj2SWM,1802
120
120
  huggingface_hub/inference/_providers/openai.py,sha256=GCVYeNdjWIgpQQ7E_Xv8IebmdhTi0S6WfFosz3nLtps,1089
121
+ huggingface_hub/inference/_providers/publicai.py,sha256=1I2W6rORloB5QHSvky4njZO2XKLTwA-kPdNoauoT5rg,210
121
122
  huggingface_hub/inference/_providers/replicate.py,sha256=BuLb1x4nUlH5SfazBwvMiFwwcs-OS99U87m3QWdx2is,3810
122
123
  huggingface_hub/inference/_providers/sambanova.py,sha256=Unt3H3jr_kgI9vzRjmmW1DFyoEuPkKCcgIIloiOj3j8,2037
123
124
  huggingface_hub/inference/_providers/scaleway.py,sha256=Jy81kXWbXCHBpx6xmyzdEfXGSyhUfjKOLHuDSvhHWGo,1209
@@ -159,9 +160,9 @@ huggingface_hub/utils/insecure_hashlib.py,sha256=iAaepavFZ5Dhfa5n8KozRfQprKmvcjS
159
160
  huggingface_hub/utils/logging.py,sha256=0A8fF1yh3L9Ka_bCDX2ml4U5Ht0tY8Dr3JcbRvWFuwo,4909
160
161
  huggingface_hub/utils/sha.py,sha256=OFnNGCba0sNcT2gUwaVCJnldxlltrHHe0DS_PCpV3C4,2134
161
162
  huggingface_hub/utils/tqdm.py,sha256=xAKcyfnNHsZ7L09WuEM5Ew5-MDhiahLACbbN2zMmcLs,10671
162
- huggingface_hub-0.34.5.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
163
- huggingface_hub-0.34.5.dist-info/METADATA,sha256=67CHYP_fg-DqvhmXT82RONWfD5P-YOKwqc8INQsDWSY,14699
164
- huggingface_hub-0.34.5.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
165
- huggingface_hub-0.34.5.dist-info/entry_points.txt,sha256=HIzLhjwPTO7U_ncpW4AkmzAuaadr1ajmYagW5mdb5TM,217
166
- huggingface_hub-0.34.5.dist-info/top_level.txt,sha256=8KzlQJAY4miUvjAssOAJodqKOw3harNzuiwGQ9qLSSk,16
167
- huggingface_hub-0.34.5.dist-info/RECORD,,
163
+ huggingface_hub-0.34.6.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
164
+ huggingface_hub-0.34.6.dist-info/METADATA,sha256=ou-fe37y0UrKNCTl1d253DWCXXW_yYqCx1bMujSc6io,14699
165
+ huggingface_hub-0.34.6.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
166
+ huggingface_hub-0.34.6.dist-info/entry_points.txt,sha256=HIzLhjwPTO7U_ncpW4AkmzAuaadr1ajmYagW5mdb5TM,217
167
+ huggingface_hub-0.34.6.dist-info/top_level.txt,sha256=8KzlQJAY4miUvjAssOAJodqKOw3harNzuiwGQ9qLSSk,16
168
+ huggingface_hub-0.34.6.dist-info/RECORD,,