qanswer_sdk 3.1508.0__py3-none-any.whl → 3.1510.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.
Files changed (126) hide show
  1. qanswer_sdk/__init__.py +31 -24
  2. qanswer_sdk/api/__init__.py +0 -1
  3. qanswer_sdk/api/admin_api.py +914 -142
  4. qanswer_sdk/api/ai_assistant_access_rights_api.py +883 -280
  5. qanswer_sdk/api/ai_assistant_api.py +289 -61
  6. qanswer_sdk/api/branding_api.py +6 -6
  7. qanswer_sdk/api/connector_website_api.py +287 -0
  8. qanswer_sdk/api/connectors_api.py +863 -11
  9. qanswer_sdk/api/connectors_data_api.py +28 -27
  10. qanswer_sdk/api/mcp_api.py +1103 -469
  11. qanswer_sdk/api/payment_api.py +3 -3
  12. qanswer_sdk/api/socket_api.py +0 -245
  13. qanswer_sdk/api/task_ai_excel_api.py +288 -0
  14. qanswer_sdk/api/task_report_copilot_api.py +49 -122
  15. qanswer_sdk/api/tool_embedder_api.py +552 -1
  16. qanswer_sdk/api/tool_llm_api.py +1059 -10
  17. qanswer_sdk/api/unit_organizations_api.py +1240 -165
  18. qanswer_sdk/api/unit_user_api.py +506 -0
  19. qanswer_sdk/api_client.py +1 -1
  20. qanswer_sdk/configuration.py +1 -1
  21. qanswer_sdk/models/__init__.py +30 -22
  22. qanswer_sdk/models/access_pdf_payload_model.py +6 -4
  23. qanswer_sdk/models/add_qn_a_request.py +5 -3
  24. qanswer_sdk/models/{assistant_template.py → ai_assistant_clone_response.py} +9 -19
  25. qanswer_sdk/models/ai_assistant_dto.py +4 -2
  26. qanswer_sdk/models/ai_assistant_filter_dto.py +3 -1
  27. qanswer_sdk/models/{user_dataset_access_control_origin_header.py → ai_assistant_restricted_domain.py} +8 -8
  28. qanswer_sdk/models/ai_assistant_share_response.py +93 -0
  29. qanswer_sdk/models/api_key_mcp_authentication_config.py +2 -2
  30. qanswer_sdk/models/assistant_template_filter_dto.py +93 -0
  31. qanswer_sdk/models/{relation_extraction_schema.py → assistant_template_with_tools_selection_dto.py} +26 -24
  32. qanswer_sdk/models/audio_file_upload_payload.py +4 -2
  33. qanswer_sdk/models/auto_bot_description_request.py +5 -3
  34. qanswer_sdk/models/chatbot_chat_payload.py +6 -2
  35. qanswer_sdk/models/connector_type_dto.py +101 -0
  36. qanswer_sdk/models/{relation_extraction_data_input.py → connector_type_list_dto.py} +14 -14
  37. qanswer_sdk/models/conversation_message.py +37 -7
  38. qanswer_sdk/models/conversation_model.py +8 -2
  39. qanswer_sdk/models/credits_info_global_dto.py +95 -0
  40. qanswer_sdk/models/credits_info_organization_dto.py +93 -0
  41. qanswer_sdk/models/dataset_detail_kg.py +30 -10
  42. qanswer_sdk/models/dataset_schema.py +5 -1
  43. qanswer_sdk/models/dataset_update_object.py +8 -2
  44. qanswer_sdk/models/document_content_update_model.py +4 -2
  45. qanswer_sdk/models/econsilium_search_index_add_payload.py +3 -1
  46. qanswer_sdk/models/embedder_create_dto.py +9 -3
  47. qanswer_sdk/models/embedder_detailed_dto.py +9 -3
  48. qanswer_sdk/models/embedder_update_dto.py +9 -3
  49. qanswer_sdk/models/{relation_model.py → embedding_endpoint_import_failure.py} +8 -10
  50. qanswer_sdk/models/embedding_endpoint_import_response.py +99 -0
  51. qanswer_sdk/models/es_meta_data.py +98 -0
  52. qanswer_sdk/models/{get_file_es_meta_data_response.py → es_meta_data_value.py} +7 -11
  53. qanswer_sdk/models/feedback_update.py +4 -2
  54. qanswer_sdk/models/file_es_meta_data.py +31 -4
  55. qanswer_sdk/models/g_drive_download_request.py +3 -1
  56. qanswer_sdk/models/generate_ai_cells_payload.py +5 -3
  57. qanswer_sdk/models/highlight_audio_payload_model.py +6 -4
  58. qanswer_sdk/models/imap_add_payload.py +4 -2
  59. qanswer_sdk/models/list_socket_events.py +2 -2
  60. qanswer_sdk/models/llm_consumption.py +2 -2
  61. qanswer_sdk/models/llm_create_dto.py +25 -3
  62. qanswer_sdk/models/llm_detailed_dto.py +30 -4
  63. qanswer_sdk/models/llm_dto.py +18 -2
  64. qanswer_sdk/models/llm_endpoint.py +25 -3
  65. qanswer_sdk/models/llm_endpoint_import_failure.py +89 -0
  66. qanswer_sdk/models/{relation_extraction_data_output.py → llm_endpoint_import_response.py} +20 -16
  67. qanswer_sdk/models/llm_endpoint_read_input.py +25 -3
  68. qanswer_sdk/models/llm_endpoint_read_output.py +25 -3
  69. qanswer_sdk/models/llm_update_dto.py +25 -3
  70. qanswer_sdk/models/mcp_server.py +153 -0
  71. qanswer_sdk/models/mcp_server_create.py +4 -2
  72. qanswer_sdk/models/mcp_server_dto.py +6 -2
  73. qanswer_sdk/models/mcp_server_update.py +4 -2
  74. qanswer_sdk/models/mcp_tool.py +124 -0
  75. qanswer_sdk/models/mcp_tool_description_update.py +6 -4
  76. qanswer_sdk/models/mcp_tool_dto.py +3 -1
  77. qanswer_sdk/models/one_drive_download_request.py +3 -1
  78. qanswer_sdk/models/one_note_download_request.py +3 -1
  79. qanswer_sdk/models/organization_admin.py +4 -2
  80. qanswer_sdk/models/organization_filter_dto.py +4 -2
  81. qanswer_sdk/models/{relation_value_input.py → organization_mcp_server_setting.py} +29 -24
  82. qanswer_sdk/models/plan_dto.py +16 -4
  83. qanswer_sdk/models/publication_add_payload.py +4 -2
  84. qanswer_sdk/models/rag_payload.py +6 -2
  85. qanswer_sdk/models/report_copilot_generation_from_slots_payload.py +5 -3
  86. qanswer_sdk/models/report_copilot_refinement_payload.py +5 -3
  87. qanswer_sdk/models/report_copilot_slot_feedback_update.py +4 -2
  88. qanswer_sdk/models/report_template.py +3 -1
  89. qanswer_sdk/models/report_template_create_payload.py +4 -2
  90. qanswer_sdk/models/report_template_simplified.py +4 -2
  91. qanswer_sdk/models/report_template_update_payload.py +4 -2
  92. qanswer_sdk/models/report_templates_search_payload.py +104 -0
  93. qanswer_sdk/models/search_payload.py +6 -2
  94. qanswer_sdk/models/share_point_download_request.py +3 -1
  95. qanswer_sdk/models/socket_conversation_message.py +37 -7
  96. qanswer_sdk/models/template_toggle_request.py +5 -5
  97. qanswer_sdk/models/text2_sparql_payload.py +5 -1
  98. qanswer_sdk/models/thinking_block.py +91 -0
  99. qanswer_sdk/models/{subject_model.py → update_cells_payload.py} +10 -10
  100. qanswer_sdk/models/{relation_extraction_configuration.py → update_file_es_meta_data.py} +37 -26
  101. qanswer_sdk/models/{update_metadata_model.py → update_metadata_model_input.py} +7 -7
  102. qanswer_sdk/models/{relation_extraction_task_settings_update_payload.py → update_metadata_model_output.py} +14 -12
  103. qanswer_sdk/models/update_qn_a_pair_request.py +4 -2
  104. qanswer_sdk/models/{relation_extraction_template_payload.py → update_template_cells_payload.py} +19 -15
  105. qanswer_sdk/models/user.py +10 -5
  106. qanswer_sdk/models/user_credits_config_dto.py +95 -0
  107. qanswer_sdk/models/user_credits_dto.py +104 -0
  108. qanswer_sdk/models/user_dataset.py +31 -11
  109. qanswer_sdk/models/{relation_extraction_row_output.py → user_dataset_mcp_tool_selection.py} +33 -26
  110. qanswer_sdk/models/user_dataset_mcp_tool_selection_dto.py +3 -1
  111. qanswer_sdk/models/user_filter_dto.py +4 -2
  112. qanswer_sdk/models/{relation_extraction_row_input.py → user_mcp_tool_selection.py} +31 -26
  113. qanswer_sdk/models/user_mcp_tool_selection_dto.py +3 -1
  114. qanswer_sdk/models/user_profile_dto.py +16 -4
  115. qanswer_sdk/models/{value_model.py → websearch_scraping_site.py} +11 -17
  116. qanswer_sdk/models/website_add_payload.py +4 -2
  117. {qanswer_sdk-3.1508.0.dist-info → qanswer_sdk-3.1510.0.dist-info}/METADATA +2 -2
  118. {qanswer_sdk-3.1508.0.dist-info → qanswer_sdk-3.1510.0.dist-info}/RECORD +119 -112
  119. qanswer_sdk/api/task_relation_extraction_api.py +0 -3636
  120. qanswer_sdk/models/export_relation_extraction_table_request.py +0 -97
  121. qanswer_sdk/models/relation_extraction_payload.py +0 -117
  122. qanswer_sdk/models/relation_extraction_task_settings.py +0 -125
  123. qanswer_sdk/models/relation_extraction_task_update.py +0 -125
  124. qanswer_sdk/models/relation_value_output.py +0 -103
  125. qanswer_sdk/models/socket_data_extraction.py +0 -109
  126. {qanswer_sdk-3.1508.0.dist-info → qanswer_sdk-3.1510.0.dist-info}/WHEEL +0 -0
@@ -17,9 +17,10 @@ from typing import Any, Dict, List, Optional, Tuple, Union
17
17
  from typing_extensions import Annotated
18
18
 
19
19
  from pydantic import StrictBool, StrictBytes, StrictInt, StrictStr
20
- from typing import List, Optional, Tuple, Union
20
+ from typing import Any, Dict, List, Optional, Tuple, Union
21
21
  from qanswer_sdk.models.llm_endpoint import LLMEndpoint
22
22
  from qanswer_sdk.models.llm_endpoint_default_prompts import LLMEndpointDefaultPrompts
23
+ from qanswer_sdk.models.llm_endpoint_import_response import LLMEndpointImportResponse
23
24
  from qanswer_sdk.models.llm_endpoint_validation_response import LLMEndpointValidationResponse
24
25
  from qanswer_sdk.models.llm_cost_filter import LlmCostFilter
25
26
  from qanswer_sdk.models.llm_cost_list import LlmCostList
@@ -606,6 +607,267 @@ class ToolLLMApi:
606
607
 
607
608
 
608
609
 
610
+ @validate_call
611
+ def export_llm_endpoints(
612
+ self,
613
+ organization_id: Optional[StrictInt] = None,
614
+ _request_timeout: Union[
615
+ None,
616
+ Annotated[StrictFloat, Field(gt=0)],
617
+ Tuple[
618
+ Annotated[StrictFloat, Field(gt=0)],
619
+ Annotated[StrictFloat, Field(gt=0)]
620
+ ]
621
+ ] = None,
622
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
623
+ _content_type: Optional[StrictStr] = None,
624
+ _headers: Optional[Dict[StrictStr, Any]] = None,
625
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
626
+ ) -> object:
627
+ """Export LLM endpoints as a JSON file
628
+
629
+
630
+ :param organization_id:
631
+ :type organization_id: int
632
+ :param _request_timeout: timeout setting for this request. If one
633
+ number provided, it will be total request
634
+ timeout. It can also be a pair (tuple) of
635
+ (connection, read) timeouts.
636
+ :type _request_timeout: int, tuple(int, int), optional
637
+ :param _request_auth: set to override the auth_settings for an a single
638
+ request; this effectively ignores the
639
+ authentication in the spec for a single request.
640
+ :type _request_auth: dict, optional
641
+ :param _content_type: force content-type for the request.
642
+ :type _content_type: str, Optional
643
+ :param _headers: set to override the headers for a single
644
+ request; this effectively ignores the headers
645
+ in the spec for a single request.
646
+ :type _headers: dict, optional
647
+ :param _host_index: set to override the host_index for a single
648
+ request; this effectively ignores the host_index
649
+ in the spec for a single request.
650
+ :type _host_index: int, optional
651
+ :return: Returns the result object.
652
+ """ # noqa: E501
653
+
654
+ _param = self._export_llm_endpoints_serialize(
655
+ organization_id=organization_id,
656
+ _request_auth=_request_auth,
657
+ _content_type=_content_type,
658
+ _headers=_headers,
659
+ _host_index=_host_index
660
+ )
661
+
662
+ _response_types_map: Dict[str, Optional[str]] = {
663
+ '200': "object",
664
+ }
665
+ response_data = self.api_client.call_api(
666
+ *_param,
667
+ _request_timeout=_request_timeout
668
+ )
669
+ response_data.read()
670
+ return self.api_client.response_deserialize(
671
+ response_data=response_data,
672
+ response_types_map=_response_types_map,
673
+ ).data
674
+
675
+
676
+ @validate_call
677
+ def export_llm_endpoints_with_http_info(
678
+ self,
679
+ organization_id: Optional[StrictInt] = None,
680
+ _request_timeout: Union[
681
+ None,
682
+ Annotated[StrictFloat, Field(gt=0)],
683
+ Tuple[
684
+ Annotated[StrictFloat, Field(gt=0)],
685
+ Annotated[StrictFloat, Field(gt=0)]
686
+ ]
687
+ ] = None,
688
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
689
+ _content_type: Optional[StrictStr] = None,
690
+ _headers: Optional[Dict[StrictStr, Any]] = None,
691
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
692
+ ) -> ApiResponse[object]:
693
+ """Export LLM endpoints as a JSON file
694
+
695
+
696
+ :param organization_id:
697
+ :type organization_id: int
698
+ :param _request_timeout: timeout setting for this request. If one
699
+ number provided, it will be total request
700
+ timeout. It can also be a pair (tuple) of
701
+ (connection, read) timeouts.
702
+ :type _request_timeout: int, tuple(int, int), optional
703
+ :param _request_auth: set to override the auth_settings for an a single
704
+ request; this effectively ignores the
705
+ authentication in the spec for a single request.
706
+ :type _request_auth: dict, optional
707
+ :param _content_type: force content-type for the request.
708
+ :type _content_type: str, Optional
709
+ :param _headers: set to override the headers for a single
710
+ request; this effectively ignores the headers
711
+ in the spec for a single request.
712
+ :type _headers: dict, optional
713
+ :param _host_index: set to override the host_index for a single
714
+ request; this effectively ignores the host_index
715
+ in the spec for a single request.
716
+ :type _host_index: int, optional
717
+ :return: Returns the result object.
718
+ """ # noqa: E501
719
+
720
+ _param = self._export_llm_endpoints_serialize(
721
+ organization_id=organization_id,
722
+ _request_auth=_request_auth,
723
+ _content_type=_content_type,
724
+ _headers=_headers,
725
+ _host_index=_host_index
726
+ )
727
+
728
+ _response_types_map: Dict[str, Optional[str]] = {
729
+ '200': "object",
730
+ }
731
+ response_data = self.api_client.call_api(
732
+ *_param,
733
+ _request_timeout=_request_timeout
734
+ )
735
+ response_data.read()
736
+ return self.api_client.response_deserialize(
737
+ response_data=response_data,
738
+ response_types_map=_response_types_map,
739
+ )
740
+
741
+
742
+ @validate_call
743
+ def export_llm_endpoints_without_preload_content(
744
+ self,
745
+ organization_id: Optional[StrictInt] = None,
746
+ _request_timeout: Union[
747
+ None,
748
+ Annotated[StrictFloat, Field(gt=0)],
749
+ Tuple[
750
+ Annotated[StrictFloat, Field(gt=0)],
751
+ Annotated[StrictFloat, Field(gt=0)]
752
+ ]
753
+ ] = None,
754
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
755
+ _content_type: Optional[StrictStr] = None,
756
+ _headers: Optional[Dict[StrictStr, Any]] = None,
757
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
758
+ ) -> RESTResponseType:
759
+ """Export LLM endpoints as a JSON file
760
+
761
+
762
+ :param organization_id:
763
+ :type organization_id: int
764
+ :param _request_timeout: timeout setting for this request. If one
765
+ number provided, it will be total request
766
+ timeout. It can also be a pair (tuple) of
767
+ (connection, read) timeouts.
768
+ :type _request_timeout: int, tuple(int, int), optional
769
+ :param _request_auth: set to override the auth_settings for an a single
770
+ request; this effectively ignores the
771
+ authentication in the spec for a single request.
772
+ :type _request_auth: dict, optional
773
+ :param _content_type: force content-type for the request.
774
+ :type _content_type: str, Optional
775
+ :param _headers: set to override the headers for a single
776
+ request; this effectively ignores the headers
777
+ in the spec for a single request.
778
+ :type _headers: dict, optional
779
+ :param _host_index: set to override the host_index for a single
780
+ request; this effectively ignores the host_index
781
+ in the spec for a single request.
782
+ :type _host_index: int, optional
783
+ :return: Returns the result object.
784
+ """ # noqa: E501
785
+
786
+ _param = self._export_llm_endpoints_serialize(
787
+ organization_id=organization_id,
788
+ _request_auth=_request_auth,
789
+ _content_type=_content_type,
790
+ _headers=_headers,
791
+ _host_index=_host_index
792
+ )
793
+
794
+ _response_types_map: Dict[str, Optional[str]] = {
795
+ '200': "object",
796
+ }
797
+ response_data = self.api_client.call_api(
798
+ *_param,
799
+ _request_timeout=_request_timeout
800
+ )
801
+ return response_data.response
802
+
803
+
804
+ def _export_llm_endpoints_serialize(
805
+ self,
806
+ organization_id,
807
+ _request_auth,
808
+ _content_type,
809
+ _headers,
810
+ _host_index,
811
+ ) -> RequestSerialized:
812
+
813
+ _host = None
814
+
815
+ _collection_formats: Dict[str, str] = {
816
+ }
817
+
818
+ _path_params: Dict[str, str] = {}
819
+ _query_params: List[Tuple[str, str]] = []
820
+ _header_params: Dict[str, Optional[str]] = _headers or {}
821
+ _form_params: List[Tuple[str, str]] = []
822
+ _files: Dict[
823
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
824
+ ] = {}
825
+ _body_params: Optional[bytes] = None
826
+
827
+ # process the path parameters
828
+ # process the query parameters
829
+ if organization_id is not None:
830
+
831
+ _query_params.append(('organizationId', organization_id))
832
+
833
+ # process the header parameters
834
+ # process the form parameters
835
+ # process the body parameter
836
+
837
+
838
+ # set the HTTP header `Accept`
839
+ if 'Accept' not in _header_params:
840
+ _header_params['Accept'] = self.api_client.select_header_accept(
841
+ [
842
+ '*/*'
843
+ ]
844
+ )
845
+
846
+
847
+ # authentication setting
848
+ _auth_settings: List[str] = [
849
+ 'QAnswer-Api-Key',
850
+ 'Bearer'
851
+ ]
852
+
853
+ return self.api_client.param_serialize(
854
+ method='POST',
855
+ resource_path='/api/tool/llm/export',
856
+ path_params=_path_params,
857
+ query_params=_query_params,
858
+ header_params=_header_params,
859
+ body=_body_params,
860
+ post_params=_form_params,
861
+ files=_files,
862
+ auth_settings=_auth_settings,
863
+ collection_formats=_collection_formats,
864
+ _host=_host,
865
+ _request_auth=_request_auth
866
+ )
867
+
868
+
869
+
870
+
609
871
  @validate_call
610
872
  def get_by_id(
611
873
  self,
@@ -2717,9 +2979,8 @@ class ToolLLMApi:
2717
2979
 
2718
2980
 
2719
2981
  @validate_call
2720
- def reset_llm_endpoint_logo(
2982
+ def get_system_default_llm_endpoint(
2721
2983
  self,
2722
- id: StrictInt,
2723
2984
  _request_timeout: Union[
2724
2985
  None,
2725
2986
  Annotated[StrictFloat, Field(gt=0)],
@@ -2732,12 +2993,10 @@ class ToolLLMApi:
2732
2993
  _content_type: Optional[StrictStr] = None,
2733
2994
  _headers: Optional[Dict[StrictStr, Any]] = None,
2734
2995
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2735
- ) -> None:
2736
- """Reset the logo of an LLM endpoint by id
2996
+ ) -> LlmDetailedDto:
2997
+ """Retrieves the system default LLM endpoint (used when resetting to defaults)
2737
2998
 
2738
2999
 
2739
- :param id: (required)
2740
- :type id: int
2741
3000
  :param _request_timeout: timeout setting for this request. If one
2742
3001
  number provided, it will be total request
2743
3002
  timeout. It can also be a pair (tuple) of
@@ -2760,8 +3019,7 @@ class ToolLLMApi:
2760
3019
  :return: Returns the result object.
2761
3020
  """ # noqa: E501
2762
3021
 
2763
- _param = self._reset_llm_endpoint_logo_serialize(
2764
- id=id,
3022
+ _param = self._get_system_default_llm_endpoint_serialize(
2765
3023
  _request_auth=_request_auth,
2766
3024
  _content_type=_content_type,
2767
3025
  _headers=_headers,
@@ -2769,7 +3027,544 @@ class ToolLLMApi:
2769
3027
  )
2770
3028
 
2771
3029
  _response_types_map: Dict[str, Optional[str]] = {
2772
- '200': None,
3030
+ '200': "LlmDetailedDto",
3031
+ }
3032
+ response_data = self.api_client.call_api(
3033
+ *_param,
3034
+ _request_timeout=_request_timeout
3035
+ )
3036
+ response_data.read()
3037
+ return self.api_client.response_deserialize(
3038
+ response_data=response_data,
3039
+ response_types_map=_response_types_map,
3040
+ ).data
3041
+
3042
+
3043
+ @validate_call
3044
+ def get_system_default_llm_endpoint_with_http_info(
3045
+ self,
3046
+ _request_timeout: Union[
3047
+ None,
3048
+ Annotated[StrictFloat, Field(gt=0)],
3049
+ Tuple[
3050
+ Annotated[StrictFloat, Field(gt=0)],
3051
+ Annotated[StrictFloat, Field(gt=0)]
3052
+ ]
3053
+ ] = None,
3054
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3055
+ _content_type: Optional[StrictStr] = None,
3056
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3057
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3058
+ ) -> ApiResponse[LlmDetailedDto]:
3059
+ """Retrieves the system default LLM endpoint (used when resetting to defaults)
3060
+
3061
+
3062
+ :param _request_timeout: timeout setting for this request. If one
3063
+ number provided, it will be total request
3064
+ timeout. It can also be a pair (tuple) of
3065
+ (connection, read) timeouts.
3066
+ :type _request_timeout: int, tuple(int, int), optional
3067
+ :param _request_auth: set to override the auth_settings for an a single
3068
+ request; this effectively ignores the
3069
+ authentication in the spec for a single request.
3070
+ :type _request_auth: dict, optional
3071
+ :param _content_type: force content-type for the request.
3072
+ :type _content_type: str, Optional
3073
+ :param _headers: set to override the headers for a single
3074
+ request; this effectively ignores the headers
3075
+ in the spec for a single request.
3076
+ :type _headers: dict, optional
3077
+ :param _host_index: set to override the host_index for a single
3078
+ request; this effectively ignores the host_index
3079
+ in the spec for a single request.
3080
+ :type _host_index: int, optional
3081
+ :return: Returns the result object.
3082
+ """ # noqa: E501
3083
+
3084
+ _param = self._get_system_default_llm_endpoint_serialize(
3085
+ _request_auth=_request_auth,
3086
+ _content_type=_content_type,
3087
+ _headers=_headers,
3088
+ _host_index=_host_index
3089
+ )
3090
+
3091
+ _response_types_map: Dict[str, Optional[str]] = {
3092
+ '200': "LlmDetailedDto",
3093
+ }
3094
+ response_data = self.api_client.call_api(
3095
+ *_param,
3096
+ _request_timeout=_request_timeout
3097
+ )
3098
+ response_data.read()
3099
+ return self.api_client.response_deserialize(
3100
+ response_data=response_data,
3101
+ response_types_map=_response_types_map,
3102
+ )
3103
+
3104
+
3105
+ @validate_call
3106
+ def get_system_default_llm_endpoint_without_preload_content(
3107
+ self,
3108
+ _request_timeout: Union[
3109
+ None,
3110
+ Annotated[StrictFloat, Field(gt=0)],
3111
+ Tuple[
3112
+ Annotated[StrictFloat, Field(gt=0)],
3113
+ Annotated[StrictFloat, Field(gt=0)]
3114
+ ]
3115
+ ] = None,
3116
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3117
+ _content_type: Optional[StrictStr] = None,
3118
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3119
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3120
+ ) -> RESTResponseType:
3121
+ """Retrieves the system default LLM endpoint (used when resetting to defaults)
3122
+
3123
+
3124
+ :param _request_timeout: timeout setting for this request. If one
3125
+ number provided, it will be total request
3126
+ timeout. It can also be a pair (tuple) of
3127
+ (connection, read) timeouts.
3128
+ :type _request_timeout: int, tuple(int, int), optional
3129
+ :param _request_auth: set to override the auth_settings for an a single
3130
+ request; this effectively ignores the
3131
+ authentication in the spec for a single request.
3132
+ :type _request_auth: dict, optional
3133
+ :param _content_type: force content-type for the request.
3134
+ :type _content_type: str, Optional
3135
+ :param _headers: set to override the headers for a single
3136
+ request; this effectively ignores the headers
3137
+ in the spec for a single request.
3138
+ :type _headers: dict, optional
3139
+ :param _host_index: set to override the host_index for a single
3140
+ request; this effectively ignores the host_index
3141
+ in the spec for a single request.
3142
+ :type _host_index: int, optional
3143
+ :return: Returns the result object.
3144
+ """ # noqa: E501
3145
+
3146
+ _param = self._get_system_default_llm_endpoint_serialize(
3147
+ _request_auth=_request_auth,
3148
+ _content_type=_content_type,
3149
+ _headers=_headers,
3150
+ _host_index=_host_index
3151
+ )
3152
+
3153
+ _response_types_map: Dict[str, Optional[str]] = {
3154
+ '200': "LlmDetailedDto",
3155
+ }
3156
+ response_data = self.api_client.call_api(
3157
+ *_param,
3158
+ _request_timeout=_request_timeout
3159
+ )
3160
+ return response_data.response
3161
+
3162
+
3163
+ def _get_system_default_llm_endpoint_serialize(
3164
+ self,
3165
+ _request_auth,
3166
+ _content_type,
3167
+ _headers,
3168
+ _host_index,
3169
+ ) -> RequestSerialized:
3170
+
3171
+ _host = None
3172
+
3173
+ _collection_formats: Dict[str, str] = {
3174
+ }
3175
+
3176
+ _path_params: Dict[str, str] = {}
3177
+ _query_params: List[Tuple[str, str]] = []
3178
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3179
+ _form_params: List[Tuple[str, str]] = []
3180
+ _files: Dict[
3181
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3182
+ ] = {}
3183
+ _body_params: Optional[bytes] = None
3184
+
3185
+ # process the path parameters
3186
+ # process the query parameters
3187
+ # process the header parameters
3188
+ # process the form parameters
3189
+ # process the body parameter
3190
+
3191
+
3192
+ # set the HTTP header `Accept`
3193
+ if 'Accept' not in _header_params:
3194
+ _header_params['Accept'] = self.api_client.select_header_accept(
3195
+ [
3196
+ '*/*'
3197
+ ]
3198
+ )
3199
+
3200
+
3201
+ # authentication setting
3202
+ _auth_settings: List[str] = [
3203
+ 'QAnswer-Api-Key',
3204
+ 'Bearer'
3205
+ ]
3206
+
3207
+ return self.api_client.param_serialize(
3208
+ method='GET',
3209
+ resource_path='/api/tool/llm/system-default',
3210
+ path_params=_path_params,
3211
+ query_params=_query_params,
3212
+ header_params=_header_params,
3213
+ body=_body_params,
3214
+ post_params=_form_params,
3215
+ files=_files,
3216
+ auth_settings=_auth_settings,
3217
+ collection_formats=_collection_formats,
3218
+ _host=_host,
3219
+ _request_auth=_request_auth
3220
+ )
3221
+
3222
+
3223
+
3224
+
3225
+ @validate_call
3226
+ def import_llm_endpoints(
3227
+ self,
3228
+ file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
3229
+ organization_id: Optional[StrictInt] = None,
3230
+ _request_timeout: Union[
3231
+ None,
3232
+ Annotated[StrictFloat, Field(gt=0)],
3233
+ Tuple[
3234
+ Annotated[StrictFloat, Field(gt=0)],
3235
+ Annotated[StrictFloat, Field(gt=0)]
3236
+ ]
3237
+ ] = None,
3238
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3239
+ _content_type: Optional[StrictStr] = None,
3240
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3241
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3242
+ ) -> LLMEndpointImportResponse:
3243
+ """Import LLM endpoints from a file
3244
+
3245
+
3246
+ :param file: (required)
3247
+ :type file: bytearray
3248
+ :param organization_id:
3249
+ :type organization_id: int
3250
+ :param _request_timeout: timeout setting for this request. If one
3251
+ number provided, it will be total request
3252
+ timeout. It can also be a pair (tuple) of
3253
+ (connection, read) timeouts.
3254
+ :type _request_timeout: int, tuple(int, int), optional
3255
+ :param _request_auth: set to override the auth_settings for an a single
3256
+ request; this effectively ignores the
3257
+ authentication in the spec for a single request.
3258
+ :type _request_auth: dict, optional
3259
+ :param _content_type: force content-type for the request.
3260
+ :type _content_type: str, Optional
3261
+ :param _headers: set to override the headers for a single
3262
+ request; this effectively ignores the headers
3263
+ in the spec for a single request.
3264
+ :type _headers: dict, optional
3265
+ :param _host_index: set to override the host_index for a single
3266
+ request; this effectively ignores the host_index
3267
+ in the spec for a single request.
3268
+ :type _host_index: int, optional
3269
+ :return: Returns the result object.
3270
+ """ # noqa: E501
3271
+
3272
+ _param = self._import_llm_endpoints_serialize(
3273
+ file=file,
3274
+ organization_id=organization_id,
3275
+ _request_auth=_request_auth,
3276
+ _content_type=_content_type,
3277
+ _headers=_headers,
3278
+ _host_index=_host_index
3279
+ )
3280
+
3281
+ _response_types_map: Dict[str, Optional[str]] = {
3282
+ '200': "LLMEndpointImportResponse",
3283
+ }
3284
+ response_data = self.api_client.call_api(
3285
+ *_param,
3286
+ _request_timeout=_request_timeout
3287
+ )
3288
+ response_data.read()
3289
+ return self.api_client.response_deserialize(
3290
+ response_data=response_data,
3291
+ response_types_map=_response_types_map,
3292
+ ).data
3293
+
3294
+
3295
+ @validate_call
3296
+ def import_llm_endpoints_with_http_info(
3297
+ self,
3298
+ file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
3299
+ organization_id: Optional[StrictInt] = None,
3300
+ _request_timeout: Union[
3301
+ None,
3302
+ Annotated[StrictFloat, Field(gt=0)],
3303
+ Tuple[
3304
+ Annotated[StrictFloat, Field(gt=0)],
3305
+ Annotated[StrictFloat, Field(gt=0)]
3306
+ ]
3307
+ ] = None,
3308
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3309
+ _content_type: Optional[StrictStr] = None,
3310
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3311
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3312
+ ) -> ApiResponse[LLMEndpointImportResponse]:
3313
+ """Import LLM endpoints from a file
3314
+
3315
+
3316
+ :param file: (required)
3317
+ :type file: bytearray
3318
+ :param organization_id:
3319
+ :type organization_id: int
3320
+ :param _request_timeout: timeout setting for this request. If one
3321
+ number provided, it will be total request
3322
+ timeout. It can also be a pair (tuple) of
3323
+ (connection, read) timeouts.
3324
+ :type _request_timeout: int, tuple(int, int), optional
3325
+ :param _request_auth: set to override the auth_settings for an a single
3326
+ request; this effectively ignores the
3327
+ authentication in the spec for a single request.
3328
+ :type _request_auth: dict, optional
3329
+ :param _content_type: force content-type for the request.
3330
+ :type _content_type: str, Optional
3331
+ :param _headers: set to override the headers for a single
3332
+ request; this effectively ignores the headers
3333
+ in the spec for a single request.
3334
+ :type _headers: dict, optional
3335
+ :param _host_index: set to override the host_index for a single
3336
+ request; this effectively ignores the host_index
3337
+ in the spec for a single request.
3338
+ :type _host_index: int, optional
3339
+ :return: Returns the result object.
3340
+ """ # noqa: E501
3341
+
3342
+ _param = self._import_llm_endpoints_serialize(
3343
+ file=file,
3344
+ organization_id=organization_id,
3345
+ _request_auth=_request_auth,
3346
+ _content_type=_content_type,
3347
+ _headers=_headers,
3348
+ _host_index=_host_index
3349
+ )
3350
+
3351
+ _response_types_map: Dict[str, Optional[str]] = {
3352
+ '200': "LLMEndpointImportResponse",
3353
+ }
3354
+ response_data = self.api_client.call_api(
3355
+ *_param,
3356
+ _request_timeout=_request_timeout
3357
+ )
3358
+ response_data.read()
3359
+ return self.api_client.response_deserialize(
3360
+ response_data=response_data,
3361
+ response_types_map=_response_types_map,
3362
+ )
3363
+
3364
+
3365
+ @validate_call
3366
+ def import_llm_endpoints_without_preload_content(
3367
+ self,
3368
+ file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
3369
+ organization_id: Optional[StrictInt] = None,
3370
+ _request_timeout: Union[
3371
+ None,
3372
+ Annotated[StrictFloat, Field(gt=0)],
3373
+ Tuple[
3374
+ Annotated[StrictFloat, Field(gt=0)],
3375
+ Annotated[StrictFloat, Field(gt=0)]
3376
+ ]
3377
+ ] = None,
3378
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3379
+ _content_type: Optional[StrictStr] = None,
3380
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3381
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3382
+ ) -> RESTResponseType:
3383
+ """Import LLM endpoints from a file
3384
+
3385
+
3386
+ :param file: (required)
3387
+ :type file: bytearray
3388
+ :param organization_id:
3389
+ :type organization_id: int
3390
+ :param _request_timeout: timeout setting for this request. If one
3391
+ number provided, it will be total request
3392
+ timeout. It can also be a pair (tuple) of
3393
+ (connection, read) timeouts.
3394
+ :type _request_timeout: int, tuple(int, int), optional
3395
+ :param _request_auth: set to override the auth_settings for an a single
3396
+ request; this effectively ignores the
3397
+ authentication in the spec for a single request.
3398
+ :type _request_auth: dict, optional
3399
+ :param _content_type: force content-type for the request.
3400
+ :type _content_type: str, Optional
3401
+ :param _headers: set to override the headers for a single
3402
+ request; this effectively ignores the headers
3403
+ in the spec for a single request.
3404
+ :type _headers: dict, optional
3405
+ :param _host_index: set to override the host_index for a single
3406
+ request; this effectively ignores the host_index
3407
+ in the spec for a single request.
3408
+ :type _host_index: int, optional
3409
+ :return: Returns the result object.
3410
+ """ # noqa: E501
3411
+
3412
+ _param = self._import_llm_endpoints_serialize(
3413
+ file=file,
3414
+ organization_id=organization_id,
3415
+ _request_auth=_request_auth,
3416
+ _content_type=_content_type,
3417
+ _headers=_headers,
3418
+ _host_index=_host_index
3419
+ )
3420
+
3421
+ _response_types_map: Dict[str, Optional[str]] = {
3422
+ '200': "LLMEndpointImportResponse",
3423
+ }
3424
+ response_data = self.api_client.call_api(
3425
+ *_param,
3426
+ _request_timeout=_request_timeout
3427
+ )
3428
+ return response_data.response
3429
+
3430
+
3431
+ def _import_llm_endpoints_serialize(
3432
+ self,
3433
+ file,
3434
+ organization_id,
3435
+ _request_auth,
3436
+ _content_type,
3437
+ _headers,
3438
+ _host_index,
3439
+ ) -> RequestSerialized:
3440
+
3441
+ _host = None
3442
+
3443
+ _collection_formats: Dict[str, str] = {
3444
+ }
3445
+
3446
+ _path_params: Dict[str, str] = {}
3447
+ _query_params: List[Tuple[str, str]] = []
3448
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3449
+ _form_params: List[Tuple[str, str]] = []
3450
+ _files: Dict[
3451
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3452
+ ] = {}
3453
+ _body_params: Optional[bytes] = None
3454
+
3455
+ # process the path parameters
3456
+ # process the query parameters
3457
+ if organization_id is not None:
3458
+
3459
+ _query_params.append(('organizationId', organization_id))
3460
+
3461
+ # process the header parameters
3462
+ # process the form parameters
3463
+ if file is not None:
3464
+ _files['file'] = file
3465
+ # process the body parameter
3466
+
3467
+
3468
+ # set the HTTP header `Accept`
3469
+ if 'Accept' not in _header_params:
3470
+ _header_params['Accept'] = self.api_client.select_header_accept(
3471
+ [
3472
+ '*/*'
3473
+ ]
3474
+ )
3475
+
3476
+ # set the HTTP header `Content-Type`
3477
+ if _content_type:
3478
+ _header_params['Content-Type'] = _content_type
3479
+ else:
3480
+ _default_content_type = (
3481
+ self.api_client.select_header_content_type(
3482
+ [
3483
+ 'multipart/form-data'
3484
+ ]
3485
+ )
3486
+ )
3487
+ if _default_content_type is not None:
3488
+ _header_params['Content-Type'] = _default_content_type
3489
+
3490
+ # authentication setting
3491
+ _auth_settings: List[str] = [
3492
+ 'QAnswer-Api-Key',
3493
+ 'Bearer'
3494
+ ]
3495
+
3496
+ return self.api_client.param_serialize(
3497
+ method='POST',
3498
+ resource_path='/api/tool/llm/import',
3499
+ path_params=_path_params,
3500
+ query_params=_query_params,
3501
+ header_params=_header_params,
3502
+ body=_body_params,
3503
+ post_params=_form_params,
3504
+ files=_files,
3505
+ auth_settings=_auth_settings,
3506
+ collection_formats=_collection_formats,
3507
+ _host=_host,
3508
+ _request_auth=_request_auth
3509
+ )
3510
+
3511
+
3512
+
3513
+
3514
+ @validate_call
3515
+ def reset_llm_endpoint_logo(
3516
+ self,
3517
+ id: StrictInt,
3518
+ _request_timeout: Union[
3519
+ None,
3520
+ Annotated[StrictFloat, Field(gt=0)],
3521
+ Tuple[
3522
+ Annotated[StrictFloat, Field(gt=0)],
3523
+ Annotated[StrictFloat, Field(gt=0)]
3524
+ ]
3525
+ ] = None,
3526
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3527
+ _content_type: Optional[StrictStr] = None,
3528
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3529
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3530
+ ) -> None:
3531
+ """Reset the logo of an LLM endpoint by id
3532
+
3533
+
3534
+ :param id: (required)
3535
+ :type id: int
3536
+ :param _request_timeout: timeout setting for this request. If one
3537
+ number provided, it will be total request
3538
+ timeout. It can also be a pair (tuple) of
3539
+ (connection, read) timeouts.
3540
+ :type _request_timeout: int, tuple(int, int), optional
3541
+ :param _request_auth: set to override the auth_settings for an a single
3542
+ request; this effectively ignores the
3543
+ authentication in the spec for a single request.
3544
+ :type _request_auth: dict, optional
3545
+ :param _content_type: force content-type for the request.
3546
+ :type _content_type: str, Optional
3547
+ :param _headers: set to override the headers for a single
3548
+ request; this effectively ignores the headers
3549
+ in the spec for a single request.
3550
+ :type _headers: dict, optional
3551
+ :param _host_index: set to override the host_index for a single
3552
+ request; this effectively ignores the host_index
3553
+ in the spec for a single request.
3554
+ :type _host_index: int, optional
3555
+ :return: Returns the result object.
3556
+ """ # noqa: E501
3557
+
3558
+ _param = self._reset_llm_endpoint_logo_serialize(
3559
+ id=id,
3560
+ _request_auth=_request_auth,
3561
+ _content_type=_content_type,
3562
+ _headers=_headers,
3563
+ _host_index=_host_index
3564
+ )
3565
+
3566
+ _response_types_map: Dict[str, Optional[str]] = {
3567
+ '200': None,
2773
3568
  }
2774
3569
  response_data = self.api_client.call_api(
2775
3570
  *_param,
@@ -4327,6 +5122,260 @@ class ToolLLMApi:
4327
5122
 
4328
5123
 
4329
5124
 
5125
+ @validate_call
5126
+ def set_system_default_llm_endpoint(
5127
+ self,
5128
+ llm_id: StrictInt,
5129
+ _request_timeout: Union[
5130
+ None,
5131
+ Annotated[StrictFloat, Field(gt=0)],
5132
+ Tuple[
5133
+ Annotated[StrictFloat, Field(gt=0)],
5134
+ Annotated[StrictFloat, Field(gt=0)]
5135
+ ]
5136
+ ] = None,
5137
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
5138
+ _content_type: Optional[StrictStr] = None,
5139
+ _headers: Optional[Dict[StrictStr, Any]] = None,
5140
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5141
+ ) -> None:
5142
+ """Sets the system default LLM endpoint (used when resetting to defaults)
5143
+
5144
+
5145
+ :param llm_id: (required)
5146
+ :type llm_id: int
5147
+ :param _request_timeout: timeout setting for this request. If one
5148
+ number provided, it will be total request
5149
+ timeout. It can also be a pair (tuple) of
5150
+ (connection, read) timeouts.
5151
+ :type _request_timeout: int, tuple(int, int), optional
5152
+ :param _request_auth: set to override the auth_settings for an a single
5153
+ request; this effectively ignores the
5154
+ authentication in the spec for a single request.
5155
+ :type _request_auth: dict, optional
5156
+ :param _content_type: force content-type for the request.
5157
+ :type _content_type: str, Optional
5158
+ :param _headers: set to override the headers for a single
5159
+ request; this effectively ignores the headers
5160
+ in the spec for a single request.
5161
+ :type _headers: dict, optional
5162
+ :param _host_index: set to override the host_index for a single
5163
+ request; this effectively ignores the host_index
5164
+ in the spec for a single request.
5165
+ :type _host_index: int, optional
5166
+ :return: Returns the result object.
5167
+ """ # noqa: E501
5168
+
5169
+ _param = self._set_system_default_llm_endpoint_serialize(
5170
+ llm_id=llm_id,
5171
+ _request_auth=_request_auth,
5172
+ _content_type=_content_type,
5173
+ _headers=_headers,
5174
+ _host_index=_host_index
5175
+ )
5176
+
5177
+ _response_types_map: Dict[str, Optional[str]] = {
5178
+ '200': None,
5179
+ }
5180
+ response_data = self.api_client.call_api(
5181
+ *_param,
5182
+ _request_timeout=_request_timeout
5183
+ )
5184
+ response_data.read()
5185
+ return self.api_client.response_deserialize(
5186
+ response_data=response_data,
5187
+ response_types_map=_response_types_map,
5188
+ ).data
5189
+
5190
+
5191
+ @validate_call
5192
+ def set_system_default_llm_endpoint_with_http_info(
5193
+ self,
5194
+ llm_id: StrictInt,
5195
+ _request_timeout: Union[
5196
+ None,
5197
+ Annotated[StrictFloat, Field(gt=0)],
5198
+ Tuple[
5199
+ Annotated[StrictFloat, Field(gt=0)],
5200
+ Annotated[StrictFloat, Field(gt=0)]
5201
+ ]
5202
+ ] = None,
5203
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
5204
+ _content_type: Optional[StrictStr] = None,
5205
+ _headers: Optional[Dict[StrictStr, Any]] = None,
5206
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5207
+ ) -> ApiResponse[None]:
5208
+ """Sets the system default LLM endpoint (used when resetting to defaults)
5209
+
5210
+
5211
+ :param llm_id: (required)
5212
+ :type llm_id: int
5213
+ :param _request_timeout: timeout setting for this request. If one
5214
+ number provided, it will be total request
5215
+ timeout. It can also be a pair (tuple) of
5216
+ (connection, read) timeouts.
5217
+ :type _request_timeout: int, tuple(int, int), optional
5218
+ :param _request_auth: set to override the auth_settings for an a single
5219
+ request; this effectively ignores the
5220
+ authentication in the spec for a single request.
5221
+ :type _request_auth: dict, optional
5222
+ :param _content_type: force content-type for the request.
5223
+ :type _content_type: str, Optional
5224
+ :param _headers: set to override the headers for a single
5225
+ request; this effectively ignores the headers
5226
+ in the spec for a single request.
5227
+ :type _headers: dict, optional
5228
+ :param _host_index: set to override the host_index for a single
5229
+ request; this effectively ignores the host_index
5230
+ in the spec for a single request.
5231
+ :type _host_index: int, optional
5232
+ :return: Returns the result object.
5233
+ """ # noqa: E501
5234
+
5235
+ _param = self._set_system_default_llm_endpoint_serialize(
5236
+ llm_id=llm_id,
5237
+ _request_auth=_request_auth,
5238
+ _content_type=_content_type,
5239
+ _headers=_headers,
5240
+ _host_index=_host_index
5241
+ )
5242
+
5243
+ _response_types_map: Dict[str, Optional[str]] = {
5244
+ '200': None,
5245
+ }
5246
+ response_data = self.api_client.call_api(
5247
+ *_param,
5248
+ _request_timeout=_request_timeout
5249
+ )
5250
+ response_data.read()
5251
+ return self.api_client.response_deserialize(
5252
+ response_data=response_data,
5253
+ response_types_map=_response_types_map,
5254
+ )
5255
+
5256
+
5257
+ @validate_call
5258
+ def set_system_default_llm_endpoint_without_preload_content(
5259
+ self,
5260
+ llm_id: StrictInt,
5261
+ _request_timeout: Union[
5262
+ None,
5263
+ Annotated[StrictFloat, Field(gt=0)],
5264
+ Tuple[
5265
+ Annotated[StrictFloat, Field(gt=0)],
5266
+ Annotated[StrictFloat, Field(gt=0)]
5267
+ ]
5268
+ ] = None,
5269
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
5270
+ _content_type: Optional[StrictStr] = None,
5271
+ _headers: Optional[Dict[StrictStr, Any]] = None,
5272
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5273
+ ) -> RESTResponseType:
5274
+ """Sets the system default LLM endpoint (used when resetting to defaults)
5275
+
5276
+
5277
+ :param llm_id: (required)
5278
+ :type llm_id: int
5279
+ :param _request_timeout: timeout setting for this request. If one
5280
+ number provided, it will be total request
5281
+ timeout. It can also be a pair (tuple) of
5282
+ (connection, read) timeouts.
5283
+ :type _request_timeout: int, tuple(int, int), optional
5284
+ :param _request_auth: set to override the auth_settings for an a single
5285
+ request; this effectively ignores the
5286
+ authentication in the spec for a single request.
5287
+ :type _request_auth: dict, optional
5288
+ :param _content_type: force content-type for the request.
5289
+ :type _content_type: str, Optional
5290
+ :param _headers: set to override the headers for a single
5291
+ request; this effectively ignores the headers
5292
+ in the spec for a single request.
5293
+ :type _headers: dict, optional
5294
+ :param _host_index: set to override the host_index for a single
5295
+ request; this effectively ignores the host_index
5296
+ in the spec for a single request.
5297
+ :type _host_index: int, optional
5298
+ :return: Returns the result object.
5299
+ """ # noqa: E501
5300
+
5301
+ _param = self._set_system_default_llm_endpoint_serialize(
5302
+ llm_id=llm_id,
5303
+ _request_auth=_request_auth,
5304
+ _content_type=_content_type,
5305
+ _headers=_headers,
5306
+ _host_index=_host_index
5307
+ )
5308
+
5309
+ _response_types_map: Dict[str, Optional[str]] = {
5310
+ '200': None,
5311
+ }
5312
+ response_data = self.api_client.call_api(
5313
+ *_param,
5314
+ _request_timeout=_request_timeout
5315
+ )
5316
+ return response_data.response
5317
+
5318
+
5319
+ def _set_system_default_llm_endpoint_serialize(
5320
+ self,
5321
+ llm_id,
5322
+ _request_auth,
5323
+ _content_type,
5324
+ _headers,
5325
+ _host_index,
5326
+ ) -> RequestSerialized:
5327
+
5328
+ _host = None
5329
+
5330
+ _collection_formats: Dict[str, str] = {
5331
+ }
5332
+
5333
+ _path_params: Dict[str, str] = {}
5334
+ _query_params: List[Tuple[str, str]] = []
5335
+ _header_params: Dict[str, Optional[str]] = _headers or {}
5336
+ _form_params: List[Tuple[str, str]] = []
5337
+ _files: Dict[
5338
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
5339
+ ] = {}
5340
+ _body_params: Optional[bytes] = None
5341
+
5342
+ # process the path parameters
5343
+ # process the query parameters
5344
+ if llm_id is not None:
5345
+
5346
+ _query_params.append(('llm_id', llm_id))
5347
+
5348
+ # process the header parameters
5349
+ # process the form parameters
5350
+ # process the body parameter
5351
+
5352
+
5353
+
5354
+
5355
+ # authentication setting
5356
+ _auth_settings: List[str] = [
5357
+ 'QAnswer-Api-Key',
5358
+ 'Bearer'
5359
+ ]
5360
+
5361
+ return self.api_client.param_serialize(
5362
+ method='PUT',
5363
+ resource_path='/api/tool/llm/system-default',
5364
+ path_params=_path_params,
5365
+ query_params=_query_params,
5366
+ header_params=_header_params,
5367
+ body=_body_params,
5368
+ post_params=_form_params,
5369
+ files=_files,
5370
+ auth_settings=_auth_settings,
5371
+ collection_formats=_collection_formats,
5372
+ _host=_host,
5373
+ _request_auth=_request_auth
5374
+ )
5375
+
5376
+
5377
+
5378
+
4330
5379
  @validate_call
4331
5380
  def update_llm_endpoint(
4332
5381
  self,