airia 0.1.24__py3-none-any.whl → 0.1.25__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.
@@ -2,4 +2,4 @@ from .async_library import AsyncLibrary
2
2
  from .base_library import BaseLibrary
3
3
  from .sync_library import Library
4
4
 
5
- __all__ = ["AsyncLibrary", "BaseLibrary", "Library"]
5
+ __all__ = ["AsyncLibrary", "BaseLibrary", "Library"]
@@ -65,14 +65,14 @@ class AsyncLibrary(BaseLibrary):
65
65
 
66
66
  Example:
67
67
  ```python
68
- async with AiriaAsyncClient(api_key="your_api_key") as client:
69
- response = await client.library.get_models(
70
- search="gpt",
71
- providers="OpenAI",
72
- page_size=10
73
- )
74
- for model in response.models:
75
- print(f"Model: {model.name} (ID: {model.id})")
68
+ client = AiriaAsyncClient(api_key="your_api_key")
69
+ response = await client.library.get_models(
70
+ search="gpt",
71
+ providers="OpenAI",
72
+ page_size=10
73
+ )
74
+ for model in response.models:
75
+ print(f"Model: {model.name} (ID: {model.id})")
76
76
  ```
77
77
  """
78
78
  request_data = self._prepare_get_models_request(
@@ -97,4 +97,4 @@ class AsyncLibrary(BaseLibrary):
97
97
  )
98
98
 
99
99
  resp = await self._request_handler.make_request("GET", request_data)
100
- return GetLibraryModelsResponse(**resp)
100
+ return GetLibraryModelsResponse(**resp)
@@ -97,4 +97,4 @@ class Library(BaseLibrary):
97
97
  )
98
98
 
99
99
  resp = self._request_handler.make_request("GET", request_data)
100
- return GetLibraryModelsResponse(**resp)
100
+ return GetLibraryModelsResponse(**resp)
@@ -17,7 +17,9 @@ class TokenPriceConversion(BaseModel):
17
17
  """
18
18
 
19
19
  input_token_price_1k: Optional[str] = Field(
20
- None, alias="inputTokenPrice1K", description="Gets or sets the input token cost."
20
+ None,
21
+ alias="inputTokenPrice1K",
22
+ description="Gets or sets the input token cost.",
21
23
  )
22
24
  output_token_price_1k: Optional[str] = Field(
23
25
  None,
@@ -108,24 +110,28 @@ class LibraryModel(BaseModel):
108
110
  examples=["CHATGPT-4o, CHATGPT-4Turbo."],
109
111
  )
110
112
  display_name: Optional[str] = Field(
111
- None, alias="displayName", description="Gets the display name of the library model."
113
+ None,
114
+ alias="displayName",
115
+ description="Gets the display name of the library model.",
112
116
  )
113
117
  price: str = Field(description="Gets or sets the price.")
114
118
  input_token_price: Optional[str] = Field(
115
119
  None, alias="inputTokenPrice", description="Gets or sets the input token cost."
116
120
  )
117
121
  output_token_price: Optional[str] = Field(
118
- None, alias="outputTokenPrice", description="Gets or sets the output token cost."
122
+ None,
123
+ alias="outputTokenPrice",
124
+ description="Gets or sets the output token cost.",
119
125
  )
120
126
  price_type: str = Field(alias="priceType", description="Gets the price type.")
121
127
  prompt_id: Optional[UUID] = Field(
122
128
  None, alias="promptId", description="Gets the PromptId."
123
129
  )
124
130
  url: Optional[str] = Field(None, description="Gets the Url.")
125
- provider: Optional[str] = Field(
126
- None, description="Gets the provider of the model."
131
+ provider: Optional[str] = Field(None, description="Gets the provider of the model.")
132
+ rating: int = Field(
133
+ description="Gets or sets the average user rating of the model."
127
134
  )
128
- rating: int = Field(description="Gets or sets the average user rating of the model.")
129
135
  tags: List[str] = Field(description="Gets or sets the related tags.")
130
136
  available: bool = Field(
131
137
  description="Gets or sets a value indicating whether the model is available."
@@ -150,7 +156,9 @@ class LibraryModel(BaseModel):
150
156
  description="Gets or sets a direct link to the license for the model.",
151
157
  )
152
158
  released_at: Optional[datetime] = Field(
153
- None, alias="releasedAt", description="Gets or sets the date the model was released."
159
+ None,
160
+ alias="releasedAt",
161
+ description="Gets or sets the date the model was released.",
154
162
  )
155
163
  deprecated_at: Optional[datetime] = Field(
156
164
  None,
@@ -182,7 +190,8 @@ class LibraryModel(BaseModel):
182
190
  description="Gets a value indicating whether the model supports response streaming.",
183
191
  )
184
192
  context_window: int = Field(
185
- alias="contextWindow", description="Gets the context window size for this model."
193
+ alias="contextWindow",
194
+ description="Gets the context window size for this model.",
186
195
  )
187
196
  max_output_tokens: int = Field(
188
197
  alias="maxOutputTokens",
@@ -204,5 +213,6 @@ class GetLibraryModelsResponse(BaseModel):
204
213
  description="Gets or sets Models that the library allows provisioning."
205
214
  )
206
215
  total_count: int = Field(
207
- alias="totalCount", description="Gets or sets the total count of models in the library."
208
- )
216
+ alias="totalCount",
217
+ description="Gets or sets the total count of models in the library.",
218
+ )
@@ -309,7 +309,7 @@ class Deployment(BaseModel):
309
309
  alias="isRecommended",
310
310
  description="Whether this is a recommended/featured deployment",
311
311
  )
312
- tags: List[str] = Field(description="The Tags")
312
+ tags: Optional[List[str]] = Field(description="The Tags", default=None)
313
313
  conversation_type: str = Field(
314
314
  alias="conversationType", description="The Conversation Start Type"
315
315
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: airia
3
- Version: 0.1.24
3
+ Version: 0.1.25
4
4
  Summary: Python SDK for Airia API
5
5
  Author-email: Airia LLC <support@airia.com>
6
6
  License: MIT
@@ -26,10 +26,10 @@ airia/client/deployments/__init__.py,sha256=Xu_MqbeUrtqYE4tH6hbmvUk8eQScWJ6MEyYF
26
26
  airia/client/deployments/async_deployments.py,sha256=IqRQZtkulBxxuviHpbcoi4UFQ-XRH4oRqZ90Q4H-FXs,4321
27
27
  airia/client/deployments/base_deployments.py,sha256=luiw4Fuj2YxD0j0-rXrsWkae_CNipxwRV7wIrHBFxpI,3230
28
28
  airia/client/deployments/sync_deployments.py,sha256=gEq2M0uUi5GLw8lxf8QasAHx48FZHzzRwrt7TAcyA9s,4230
29
- airia/client/library/__init__.py,sha256=jlcw1FEbKn7bN2ox-5aeJp3VQk4qb5iUbyjxbE2lsjo,165
30
- airia/client/library/async_library.py,sha256=JwGTmkQNZivGbxscUPB2X3pRSguJawjSOaGG0ajtT54,4279
29
+ airia/client/library/__init__.py,sha256=QuZgSjwbJ2nmvbWEy56YP_35VSs3IB9tt7YbBM-h94Y,166
30
+ airia/client/library/async_library.py,sha256=fRG3eUxZkXDMnDTAt18KxD1LQMC5VB6cssWu85451TA,4239
31
31
  airia/client/library/base_library.py,sha256=VkcWr25fp2es2sRB97tORQmtAi59NZ6YRzwLymlQHIk,4664
32
- airia/client/library/sync_library.py,sha256=MTyH3-JDGhteA1C3Xe2Xd0sRsb1E-0HZnUzvYOQNuw8,4190
32
+ airia/client/library/sync_library.py,sha256=u_oBscUTYRNcsDbxCgpx_UvY5UAGgum2DW7eWt8y_i8,4191
33
33
  airia/client/pipeline_execution/__init__.py,sha256=7qEZsPRTLySC71zlwYioBuJs6B4BwRCgFL3TQyFWXmc,175
34
34
  airia/client/pipeline_execution/async_pipeline_execution.py,sha256=bbQguB4-KNVgDDUMWgkaeLBH0fG-esLch39nmGWwyOU,18022
35
35
  airia/client/pipeline_execution/base_pipeline_execution.py,sha256=dkLb9zUrs0FSN5uZcjce9joOi80UavQxMmqTNTuRMiw,9608
@@ -60,12 +60,12 @@ airia/types/api/deployments/__init__.py,sha256=ONQgkKr_8i6FhcBsHyzT4mYOP_H0OPUAs
60
60
  airia/types/api/deployments/get_deployment.py,sha256=KBr9edTu-e-tC3u9bpAdz0CMWzk0DFQxusrVU6OZ7mc,4398
61
61
  airia/types/api/deployments/get_deployments.py,sha256=5Dm7pTkEFmIZ4p4Scle9x9p3Nqy5tnXxeft3H4O_Fa8,8718
62
62
  airia/types/api/library/__init__.py,sha256=b2TLWT90EhQ41f8LcGMtvzEftd3ol_eKc41ian6zXX8,201
63
- airia/types/api/library/_library_models.py,sha256=sROM8OEFRWxvl3A6x-0PAezPwrh5UKV2e_7iUdDCIHs,10399
63
+ airia/types/api/library/_library_models.py,sha256=d0YbmKNuUDXrieSRZh1IkhW_2aKrnaU08yuxqij98Dg,10486
64
64
  airia/types/api/pipeline_execution/__init__.py,sha256=jlBLNN3yzd9TBQEfi7JJWlp3ur2NfXmON3YDnMkYdEY,674
65
65
  airia/types/api/pipeline_execution/_pipeline_execution.py,sha256=4E8rmr3Ok9EHkTzHjeZHQFlQVIXQIXIpbEeDtKAh3sQ,6425
66
66
  airia/types/api/pipelines_config/__init__.py,sha256=tNYV8AEGsKMfH4nMb-KGDfH1kvHO2b6VSoTB7TYQ7N8,2188
67
67
  airia/types/api/pipelines_config/export_pipeline_definition.py,sha256=UdXoG2c_MpzRF7apLz-4K-wsSyu_Jw0xAliCkCWlFD8,38156
68
- airia/types/api/pipelines_config/get_pipeline_config.py,sha256=UEGnvzBPHAJMJEcMOKLZWXenaL96iyYoWt0zZjyzEUg,23514
68
+ airia/types/api/pipelines_config/get_pipeline_config.py,sha256=gvyp_xGpxr3Elcsu04JSQRPDvjmxRCPDAAR0rbE-oGs,23538
69
69
  airia/types/api/pipelines_config/get_pipelines_config.py,sha256=RbiX5zISxzGRxzPGHe7QpO-Ro-0woQsPGLxtiP4Y4K4,15955
70
70
  airia/types/api/project/__init__.py,sha256=ervHvCeqt08JkMRsSrG1ZnQshE70of-8kf4VeW2HG9c,113
71
71
  airia/types/api/project/get_projects.py,sha256=Ot8mq6VnXrGXZs7FQ0UuRYSyuCeER7YeCCZlGb4ZyQo,3646
@@ -75,8 +75,8 @@ airia/types/api/store/get_files.py,sha256=v22zmOuTSFqzrS73L5JL_FgBeF5a5wutv1nK4I
75
75
  airia/types/sse/__init__.py,sha256=KWnNTfsQnthfrU128pUX6ounvSS7DvjC-Y21FE-OdMk,1863
76
76
  airia/types/sse/sse_messages.py,sha256=asq9KG5plT2XSgQMz-Nqo0WcKlXvE8UT3E-WLhCegPk,30244
77
77
  airia/utils/sse_parser.py,sha256=XCTkuaroYWaVQOgBq8VpbseQYSAVruF69AvKUwZQKTA,4251
78
- airia-0.1.24.dist-info/licenses/LICENSE,sha256=R3ClUMMKPRItIcZ0svzyj2taZZnFYw568YDNzN9KQ1Q,1066
79
- airia-0.1.24.dist-info/METADATA,sha256=uoX2TWhod1iwgEwwv2v1mK1MBi90vCS2Rw_EPEBLFM0,4506
80
- airia-0.1.24.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
81
- airia-0.1.24.dist-info/top_level.txt,sha256=qUQEKfs_hdOYTwjKj1JZbRhS5YeXDNaKQaVTrzabS6w,6
82
- airia-0.1.24.dist-info/RECORD,,
78
+ airia-0.1.25.dist-info/licenses/LICENSE,sha256=R3ClUMMKPRItIcZ0svzyj2taZZnFYw568YDNzN9KQ1Q,1066
79
+ airia-0.1.25.dist-info/METADATA,sha256=CCM7eRPfX8s5savWvXwPE_V6nOpHHhssC0EPANJh7_Y,4506
80
+ airia-0.1.25.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
81
+ airia-0.1.25.dist-info/top_level.txt,sha256=qUQEKfs_hdOYTwjKj1JZbRhS5YeXDNaKQaVTrzabS6w,6
82
+ airia-0.1.25.dist-info/RECORD,,
File without changes