qanswer_sdk 3.1330.0__py3-none-any.whl → 3.1331.0__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.
qanswer_sdk/__init__.py CHANGED
@@ -14,7 +14,7 @@
14
14
  """ # noqa: E501
15
15
 
16
16
 
17
- __version__ = "3.1330.0"
17
+ __version__ = "3.1331.0"
18
18
 
19
19
  # import apis into sdk package
20
20
  from qanswer_sdk.api.admin_api import AdminApi
@@ -53,6 +53,7 @@ class ToolLLMApi:
53
53
  def create_llm_endpoint(
54
54
  self,
55
55
  llm_endpoint_create: LLMEndpointCreate,
56
+ organization_id: Optional[StrictInt] = None,
56
57
  _request_timeout: Union[
57
58
  None,
58
59
  Annotated[StrictFloat, Field(gt=0)],
@@ -71,6 +72,8 @@ class ToolLLMApi:
71
72
 
72
73
  :param llm_endpoint_create: (required)
73
74
  :type llm_endpoint_create: LLMEndpointCreate
75
+ :param organization_id:
76
+ :type organization_id: int
74
77
  :param _request_timeout: timeout setting for this request. If one
75
78
  number provided, it will be total request
76
79
  timeout. It can also be a pair (tuple) of
@@ -95,6 +98,7 @@ class ToolLLMApi:
95
98
 
96
99
  _param = self._create_llm_endpoint_serialize(
97
100
  llm_endpoint_create=llm_endpoint_create,
101
+ organization_id=organization_id,
98
102
  _request_auth=_request_auth,
99
103
  _content_type=_content_type,
100
104
  _headers=_headers,
@@ -119,6 +123,7 @@ class ToolLLMApi:
119
123
  def create_llm_endpoint_with_http_info(
120
124
  self,
121
125
  llm_endpoint_create: LLMEndpointCreate,
126
+ organization_id: Optional[StrictInt] = None,
122
127
  _request_timeout: Union[
123
128
  None,
124
129
  Annotated[StrictFloat, Field(gt=0)],
@@ -137,6 +142,8 @@ class ToolLLMApi:
137
142
 
138
143
  :param llm_endpoint_create: (required)
139
144
  :type llm_endpoint_create: LLMEndpointCreate
145
+ :param organization_id:
146
+ :type organization_id: int
140
147
  :param _request_timeout: timeout setting for this request. If one
141
148
  number provided, it will be total request
142
149
  timeout. It can also be a pair (tuple) of
@@ -161,6 +168,7 @@ class ToolLLMApi:
161
168
 
162
169
  _param = self._create_llm_endpoint_serialize(
163
170
  llm_endpoint_create=llm_endpoint_create,
171
+ organization_id=organization_id,
164
172
  _request_auth=_request_auth,
165
173
  _content_type=_content_type,
166
174
  _headers=_headers,
@@ -185,6 +193,7 @@ class ToolLLMApi:
185
193
  def create_llm_endpoint_without_preload_content(
186
194
  self,
187
195
  llm_endpoint_create: LLMEndpointCreate,
196
+ organization_id: Optional[StrictInt] = None,
188
197
  _request_timeout: Union[
189
198
  None,
190
199
  Annotated[StrictFloat, Field(gt=0)],
@@ -203,6 +212,8 @@ class ToolLLMApi:
203
212
 
204
213
  :param llm_endpoint_create: (required)
205
214
  :type llm_endpoint_create: LLMEndpointCreate
215
+ :param organization_id:
216
+ :type organization_id: int
206
217
  :param _request_timeout: timeout setting for this request. If one
207
218
  number provided, it will be total request
208
219
  timeout. It can also be a pair (tuple) of
@@ -227,6 +238,7 @@ class ToolLLMApi:
227
238
 
228
239
  _param = self._create_llm_endpoint_serialize(
229
240
  llm_endpoint_create=llm_endpoint_create,
241
+ organization_id=organization_id,
230
242
  _request_auth=_request_auth,
231
243
  _content_type=_content_type,
232
244
  _headers=_headers,
@@ -246,6 +258,7 @@ class ToolLLMApi:
246
258
  def _create_llm_endpoint_serialize(
247
259
  self,
248
260
  llm_endpoint_create,
261
+ organization_id,
249
262
  _request_auth,
250
263
  _content_type,
251
264
  _headers,
@@ -268,6 +281,10 @@ class ToolLLMApi:
268
281
 
269
282
  # process the path parameters
270
283
  # process the query parameters
284
+ if organization_id is not None:
285
+
286
+ _query_params.append(('organization_id', organization_id))
287
+
271
288
  # process the header parameters
272
289
  # process the form parameters
273
290
  # process the body parameter
@@ -325,6 +342,7 @@ class ToolLLMApi:
325
342
  def delete_llm_endpoint(
326
343
  self,
327
344
  id: StrictInt,
345
+ organization_id: Optional[StrictInt] = None,
328
346
  _request_timeout: Union[
329
347
  None,
330
348
  Annotated[StrictFloat, Field(gt=0)],
@@ -343,6 +361,8 @@ class ToolLLMApi:
343
361
 
344
362
  :param id: (required)
345
363
  :type id: int
364
+ :param organization_id:
365
+ :type organization_id: int
346
366
  :param _request_timeout: timeout setting for this request. If one
347
367
  number provided, it will be total request
348
368
  timeout. It can also be a pair (tuple) of
@@ -367,6 +387,7 @@ class ToolLLMApi:
367
387
 
368
388
  _param = self._delete_llm_endpoint_serialize(
369
389
  id=id,
390
+ organization_id=organization_id,
370
391
  _request_auth=_request_auth,
371
392
  _content_type=_content_type,
372
393
  _headers=_headers,
@@ -391,6 +412,7 @@ class ToolLLMApi:
391
412
  def delete_llm_endpoint_with_http_info(
392
413
  self,
393
414
  id: StrictInt,
415
+ organization_id: Optional[StrictInt] = None,
394
416
  _request_timeout: Union[
395
417
  None,
396
418
  Annotated[StrictFloat, Field(gt=0)],
@@ -409,6 +431,8 @@ class ToolLLMApi:
409
431
 
410
432
  :param id: (required)
411
433
  :type id: int
434
+ :param organization_id:
435
+ :type organization_id: int
412
436
  :param _request_timeout: timeout setting for this request. If one
413
437
  number provided, it will be total request
414
438
  timeout. It can also be a pair (tuple) of
@@ -433,6 +457,7 @@ class ToolLLMApi:
433
457
 
434
458
  _param = self._delete_llm_endpoint_serialize(
435
459
  id=id,
460
+ organization_id=organization_id,
436
461
  _request_auth=_request_auth,
437
462
  _content_type=_content_type,
438
463
  _headers=_headers,
@@ -457,6 +482,7 @@ class ToolLLMApi:
457
482
  def delete_llm_endpoint_without_preload_content(
458
483
  self,
459
484
  id: StrictInt,
485
+ organization_id: Optional[StrictInt] = None,
460
486
  _request_timeout: Union[
461
487
  None,
462
488
  Annotated[StrictFloat, Field(gt=0)],
@@ -475,6 +501,8 @@ class ToolLLMApi:
475
501
 
476
502
  :param id: (required)
477
503
  :type id: int
504
+ :param organization_id:
505
+ :type organization_id: int
478
506
  :param _request_timeout: timeout setting for this request. If one
479
507
  number provided, it will be total request
480
508
  timeout. It can also be a pair (tuple) of
@@ -499,6 +527,7 @@ class ToolLLMApi:
499
527
 
500
528
  _param = self._delete_llm_endpoint_serialize(
501
529
  id=id,
530
+ organization_id=organization_id,
502
531
  _request_auth=_request_auth,
503
532
  _content_type=_content_type,
504
533
  _headers=_headers,
@@ -518,6 +547,7 @@ class ToolLLMApi:
518
547
  def _delete_llm_endpoint_serialize(
519
548
  self,
520
549
  id,
550
+ organization_id,
521
551
  _request_auth,
522
552
  _content_type,
523
553
  _headers,
@@ -542,6 +572,10 @@ class ToolLLMApi:
542
572
  if id is not None:
543
573
  _path_params['id'] = id
544
574
  # process the query parameters
575
+ if organization_id is not None:
576
+
577
+ _query_params.append(('organization_id', organization_id))
578
+
545
579
  # process the header parameters
546
580
  # process the form parameters
547
581
  # process the body parameter
@@ -4543,6 +4577,7 @@ class ToolLLMApi:
4543
4577
  self,
4544
4578
  id: StrictInt,
4545
4579
  llm_endpoint_update: LLMEndpointUpdate,
4580
+ organization_id: Optional[StrictInt] = None,
4546
4581
  _request_timeout: Union[
4547
4582
  None,
4548
4583
  Annotated[StrictFloat, Field(gt=0)],
@@ -4563,6 +4598,8 @@ class ToolLLMApi:
4563
4598
  :type id: int
4564
4599
  :param llm_endpoint_update: (required)
4565
4600
  :type llm_endpoint_update: LLMEndpointUpdate
4601
+ :param organization_id:
4602
+ :type organization_id: int
4566
4603
  :param _request_timeout: timeout setting for this request. If one
4567
4604
  number provided, it will be total request
4568
4605
  timeout. It can also be a pair (tuple) of
@@ -4588,6 +4625,7 @@ class ToolLLMApi:
4588
4625
  _param = self._update_llm_endpoint_serialize(
4589
4626
  id=id,
4590
4627
  llm_endpoint_update=llm_endpoint_update,
4628
+ organization_id=organization_id,
4591
4629
  _request_auth=_request_auth,
4592
4630
  _content_type=_content_type,
4593
4631
  _headers=_headers,
@@ -4613,6 +4651,7 @@ class ToolLLMApi:
4613
4651
  self,
4614
4652
  id: StrictInt,
4615
4653
  llm_endpoint_update: LLMEndpointUpdate,
4654
+ organization_id: Optional[StrictInt] = None,
4616
4655
  _request_timeout: Union[
4617
4656
  None,
4618
4657
  Annotated[StrictFloat, Field(gt=0)],
@@ -4633,6 +4672,8 @@ class ToolLLMApi:
4633
4672
  :type id: int
4634
4673
  :param llm_endpoint_update: (required)
4635
4674
  :type llm_endpoint_update: LLMEndpointUpdate
4675
+ :param organization_id:
4676
+ :type organization_id: int
4636
4677
  :param _request_timeout: timeout setting for this request. If one
4637
4678
  number provided, it will be total request
4638
4679
  timeout. It can also be a pair (tuple) of
@@ -4658,6 +4699,7 @@ class ToolLLMApi:
4658
4699
  _param = self._update_llm_endpoint_serialize(
4659
4700
  id=id,
4660
4701
  llm_endpoint_update=llm_endpoint_update,
4702
+ organization_id=organization_id,
4661
4703
  _request_auth=_request_auth,
4662
4704
  _content_type=_content_type,
4663
4705
  _headers=_headers,
@@ -4683,6 +4725,7 @@ class ToolLLMApi:
4683
4725
  self,
4684
4726
  id: StrictInt,
4685
4727
  llm_endpoint_update: LLMEndpointUpdate,
4728
+ organization_id: Optional[StrictInt] = None,
4686
4729
  _request_timeout: Union[
4687
4730
  None,
4688
4731
  Annotated[StrictFloat, Field(gt=0)],
@@ -4703,6 +4746,8 @@ class ToolLLMApi:
4703
4746
  :type id: int
4704
4747
  :param llm_endpoint_update: (required)
4705
4748
  :type llm_endpoint_update: LLMEndpointUpdate
4749
+ :param organization_id:
4750
+ :type organization_id: int
4706
4751
  :param _request_timeout: timeout setting for this request. If one
4707
4752
  number provided, it will be total request
4708
4753
  timeout. It can also be a pair (tuple) of
@@ -4728,6 +4773,7 @@ class ToolLLMApi:
4728
4773
  _param = self._update_llm_endpoint_serialize(
4729
4774
  id=id,
4730
4775
  llm_endpoint_update=llm_endpoint_update,
4776
+ organization_id=organization_id,
4731
4777
  _request_auth=_request_auth,
4732
4778
  _content_type=_content_type,
4733
4779
  _headers=_headers,
@@ -4748,6 +4794,7 @@ class ToolLLMApi:
4748
4794
  self,
4749
4795
  id,
4750
4796
  llm_endpoint_update,
4797
+ organization_id,
4751
4798
  _request_auth,
4752
4799
  _content_type,
4753
4800
  _headers,
@@ -4772,6 +4819,10 @@ class ToolLLMApi:
4772
4819
  if id is not None:
4773
4820
  _path_params['id'] = id
4774
4821
  # process the query parameters
4822
+ if organization_id is not None:
4823
+
4824
+ _query_params.append(('organization_id', organization_id))
4825
+
4775
4826
  # process the header parameters
4776
4827
  # process the form parameters
4777
4828
  # process the body parameter
qanswer_sdk/api_client.py CHANGED
@@ -90,7 +90,7 @@ class ApiClient:
90
90
  self.default_headers[header_name] = header_value
91
91
  self.cookie = cookie
92
92
  # Set default User-Agent.
93
- self.user_agent = 'OpenAPI-Generator/3.1330.0/python'
93
+ self.user_agent = 'OpenAPI-Generator/3.1331.0/python'
94
94
  self.client_side_validation = configuration.client_side_validation
95
95
 
96
96
  def __enter__(self):
@@ -421,7 +421,7 @@ conf = qanswer_sdk.Configuration(
421
421
  "OS: {env}\n"\
422
422
  "Python Version: {pyversion}\n"\
423
423
  "Version of the API: 1.0\n"\
424
- "SDK Package Version: 3.1330.0".\
424
+ "SDK Package Version: 3.1331.0".\
425
425
  format(env=sys.platform, pyversion=sys.version)
426
426
 
427
427
  def get_host_settings(self):
qanswer_sdk/models/llm.py CHANGED
@@ -35,11 +35,12 @@ class Llm(BaseModel):
35
35
  cost_output_token: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="costOutputToken")
36
36
  sensitivity_level: Optional[StrictStr] = Field(default=None, alias="sensitivityLevel")
37
37
  is_active: Optional[StrictBool] = Field(default=None, alias="isActive")
38
+ is_shared: Optional[StrictBool] = Field(default=None, alias="isShared")
38
39
  logo: Optional[Logo] = None
39
40
  organization_llms: Optional[List[OrganizationLlm]] = Field(default=None, alias="organizationLlms")
40
41
  user_chatbot_settings: Optional[List[UserChatbotSetting]] = Field(default=None, alias="userChatbotSettings")
41
42
  llm_consumptions: Optional[List[LlmConsumption]] = Field(default=None, alias="llmConsumptions")
42
- __properties: ClassVar[List[str]] = ["id", "pythonId", "name", "displayName", "costInputToken", "costOutputToken", "sensitivityLevel", "isActive", "logo", "organizationLlms", "userChatbotSettings", "llmConsumptions"]
43
+ __properties: ClassVar[List[str]] = ["id", "pythonId", "name", "displayName", "costInputToken", "costOutputToken", "sensitivityLevel", "isActive", "isShared", "logo", "organizationLlms", "userChatbotSettings", "llmConsumptions"]
43
44
 
44
45
  model_config = ConfigDict(
45
46
  populate_by_name=True,
@@ -124,6 +125,7 @@ class Llm(BaseModel):
124
125
  "costOutputToken": obj.get("costOutputToken"),
125
126
  "sensitivityLevel": obj.get("sensitivityLevel"),
126
127
  "isActive": obj.get("isActive"),
128
+ "isShared": obj.get("isShared"),
127
129
  "logo": Logo.from_dict(obj["logo"]) if obj.get("logo") is not None else None,
128
130
  "organizationLlms": [OrganizationLlm.from_dict(_item) for _item in obj["organizationLlms"]] if obj.get("organizationLlms") is not None else None,
129
131
  "userChatbotSettings": [UserChatbotSetting.from_dict(_item) for _item in obj["userChatbotSettings"]] if obj.get("userChatbotSettings") is not None else None,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qanswer_sdk
3
- Version: 3.1330.0
3
+ Version: 3.1331.0
4
4
  Summary: QAnswer: Api Documentation
5
5
  Home-page: https://github.com/GIT_USER_ID/GIT_REPO_ID
6
6
  License: NoLicense
@@ -228,7 +228,7 @@ print(response.answer)
228
228
  ## 📌 Versioning
229
229
 
230
230
  This SDK follows the version of the QAnswer API.
231
- The current version is: `3.1330.0 (branch: main)`
231
+ The current version is: `3.1331.0 (branch: main)`
232
232
 
233
233
  ---
234
234
 
@@ -1,4 +1,4 @@
1
- qanswer_sdk/__init__.py,sha256=AEXavDzuCYndPvkmy-2E_nH9wQ9z_r9PYUb7rjexF80,28027
1
+ qanswer_sdk/__init__.py,sha256=tNiJ18qy9aqL_9MfA3VQpZZpNTEdQcUaqIGrEoMP5iA,28027
2
2
  qanswer_sdk/api/__init__.py,sha256=Lxp9OLgOUg7jmcAophNG7okim03ZaxIPxhXg-mo9y3A,3157
3
3
  qanswer_sdk/api/admin_api.py,sha256=qy0V6peMJklmAUrDh_sZsC1dlAGu7iehosOve7QU5F4,177877
4
4
  qanswer_sdk/api/ai_assistant_access_rights_api.py,sha256=g8vytIW8KUxZo2vcLFEdxOkvR3dTgjR5ow1mTA0erR0,197831
@@ -42,13 +42,13 @@ qanswer_sdk/api/task_sparql2text_api.py,sha256=ZTmFwWNxTGi0Useie4zvZkKfYWhLci6mV
42
42
  qanswer_sdk/api/task_text2sparql_api.py,sha256=gBK7VGdZz6MM8TRLz0wF0wrMYgJrtBvAAAtJ8uFJBCU,35540
43
43
  qanswer_sdk/api/task_text_classification_api.py,sha256=oqI4-s1pN4_m5oqAlLr92i5I6ycLhkEZg454D2X7XE4,36358
44
44
  qanswer_sdk/api/tool_embedder_api.py,sha256=_-UjF_sQpLUaNdDNrFPydvCRa96bFGi5CmOMxwNbJNE,152553
45
- qanswer_sdk/api/tool_llm_api.py,sha256=NagpzoyhZxTT4ArcIL17Tf50FKxsZJaMvl2HaR4byTM,190796
45
+ qanswer_sdk/api/tool_llm_api.py,sha256=isQs7qoWheR2b9ds02BGBN_VfshETDkSCG-8N_zMK74,192767
46
46
  qanswer_sdk/api/unit_organizations_api.py,sha256=1Z7zaqxSl6ZomXrZyLNaA-cW5RIehddTYjNG3qVAFuk,193541
47
47
  qanswer_sdk/api/unit_teams_api.py,sha256=Soc3QkvulKcEUUkz_JIh08qGhO15pMFhTxy8Y0XKrVY,145189
48
48
  qanswer_sdk/api/unit_user_api.py,sha256=vg0B7xjc94OahBN_kBxsw7IxWCOKML_J_umdFNPMd9g,318314
49
- qanswer_sdk/api_client.py,sha256=9fkM6KrP-YRchHUP928do49K9W14UeD-WO38kGwujhg,27387
49
+ qanswer_sdk/api_client.py,sha256=YNR2D-6DuU666RDCTIyzhVJkPomBYaEAdwbqQVlBGk4,27387
50
50
  qanswer_sdk/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
51
- qanswer_sdk/configuration.py,sha256=SElzZWmCMUQs_aGxWEjwu8geDjabhe5sSAxGiM4wk7o,16184
51
+ qanswer_sdk/configuration.py,sha256=0BFXkk5DYWaz0_PUdUeQEUMICfTrM2HByueCuiImuSA,16184
52
52
  qanswer_sdk/exceptions.py,sha256=BCaz7REoUyrBq8zuVBNTmEHGvJfM1YyLSyOnkB1XQLU,5907
53
53
  qanswer_sdk/models/__init__.py,sha256=R0gQYugDIp84VeaCgTltV0vMXaZAgFxH8M2iTJTC-_M,24398
54
54
  qanswer_sdk/models/access_pdf_payload_model.py,sha256=0oamrJeAIZdpjmcWby_PFmz-GrXD0ObDU3ecRpf7nRI,3626
@@ -194,7 +194,7 @@ qanswer_sdk/models/list_feedback_response.py,sha256=mqLxmJq0sUSmHelJqafXQPkE5HSx
194
194
  qanswer_sdk/models/list_files_connector_response.py,sha256=MZygcOm7LdHtIT06LVcKr_EIEfbmo747bJEWE1XKXDg,3241
195
195
  qanswer_sdk/models/list_socket_events.py,sha256=xnHSMPgZSc98cnoR6Ko7FcaZnXJ01vHYXkF5BWbHcrI,3248
196
196
  qanswer_sdk/models/list_synonyms_model.py,sha256=cRIazEYTbRS_iefZiFDGayStaUSXrmwI4cbk_U5ZS4A,2603
197
- qanswer_sdk/models/llm.py,sha256=_YQzSb3FBVRtqRMLAUU6V5OjWnNUV3His4uezyYdA4k,6142
197
+ qanswer_sdk/models/llm.py,sha256=iQa9jbPB7koABjYtPFhYE1y8hJKxKRYHt63PAgBOfXU,6275
198
198
  qanswer_sdk/models/llm_consumption.py,sha256=hixBfU9SWHPUf1qOKSwVfC_a-cyMKqD8tAwsRtot_LI,4298
199
199
  qanswer_sdk/models/llm_context_ranges.py,sha256=88TlPLQ6wFD2S-bZa-E3RByULjX0AOqZ5aN9DYYg3a8,2880
200
200
  qanswer_sdk/models/llm_context_ranges_response.py,sha256=8KLj0k9kbSuRxgwF09py-eDfN5sE82HgP00bgPU7ZPY,2861
@@ -379,6 +379,6 @@ qanswer_sdk/models/website_connector_settings.py,sha256=mlKuTG7Nsmv4XyEDUpVlg8ZO
379
379
  qanswer_sdk/models/widget_configs.py,sha256=H38KJ4wCup7MXD-PeTHaF0xnR1VZmCTSIxNNmQzIPVc,3703
380
380
  qanswer_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
381
381
  qanswer_sdk/rest.py,sha256=9cpA9eEQsfuHcThVnF2c7CEK0HCJYGyGZnWqmfkQpT8,9344
382
- qanswer_sdk-3.1330.0.dist-info/METADATA,sha256=0KBrKzmpqSvYGGbiam1rqJtjacqur2MKc6TlE2Prpuw,6532
383
- qanswer_sdk-3.1330.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
384
- qanswer_sdk-3.1330.0.dist-info/RECORD,,
382
+ qanswer_sdk-3.1331.0.dist-info/METADATA,sha256=YM-3n8ZbKSRpFEc9kzWZIN8O9c18gVixQ_6aCwZnrw8,6532
383
+ qanswer_sdk-3.1331.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
384
+ qanswer_sdk-3.1331.0.dist-info/RECORD,,