hjxdl 0.1.9__py3-none-any.whl → 0.1.10__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.
hdl/_version.py CHANGED
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.1.9'
16
- __version_tuple__ = version_tuple = (0, 1, 9)
15
+ __version__ = version = '0.1.10'
16
+ __version_tuple__ = version_tuple = (0, 1, 10)
hdl/utils/llm/chat.py CHANGED
@@ -327,14 +327,25 @@ class OpenAI_M():
327
327
  *args,
328
328
  **kwargs
329
329
  ):
330
- """Initialize the class with the specified parameters.
330
+ """Initialize the OpenAI client.
331
331
 
332
332
  Args:
333
- model_path (str, optional): Path to the model file. Defaults to None.
334
- device (str, optional): Device to run the model on. Defaults to 'gpu'.
335
- generation_kwargs (dict, optional): Additional keyword arguments for model generation. Defaults to {}.
336
- server_ip (str, optional): IP address of the server. Defaults to "172.28.1.2".
337
- server_port (int, optional): Port number of the server. Defaults to 8000.
333
+ model_path (str): Path to the model file. Defaults to "default_model".
334
+ device (str): Device to use for model inference. Defaults to 'gpu'.
335
+ generation_kwargs (dict): Additional keyword arguments for model generation. Defaults to {}.
336
+ server_ip (str): IP address of the server. Defaults to "172.28.1.2".
337
+ server_port (int): Port number of the server. Defaults to 8000.
338
+ api_key (str): API key for authentication. Defaults to "dummy_key".
339
+ *args: Variable length argument list.
340
+ **kwargs: Arbitrary keyword arguments.
341
+
342
+ Attributes:
343
+ model_path (str): Path to the model file.
344
+ server_ip (str): IP address of the server.
345
+ server_port (int): Port number of the server.
346
+ base_url (str): Base URL for API requests.
347
+ api_key (str): API key for authentication.
348
+ client (OpenAI): OpenAI client for making API requests.
338
349
  """
339
350
  self.model_path = model_path
340
351
  self.server_ip = server_ip
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hjxdl
3
- Version: 0.1.9
3
+ Version: 0.1.10
4
4
  Summary: A collection of functions for Jupyter notebooks
5
5
  Home-page: https://github.com/huluxiaohuowa/hdl
6
6
  Author: Jianxing Hu
@@ -1,5 +1,5 @@
1
1
  hdl/__init__.py,sha256=5sZZNySv08wwfzJcSDssGTqUn9wlmDsR6R4XB8J8mFM,70
2
- hdl/_version.py,sha256=NWmu2cvzOcqY9v-ee-qFLmtXRczssdN-cFGZ9qMNSmY,411
2
+ hdl/_version.py,sha256=0iLmzkTe5cfY4SBtaPpUzHn9tXwbwplszcfp5pHW6nU,413
3
3
  hdl/args/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  hdl/args/loss_args.py,sha256=s7YzSdd7IjD24rZvvOrxLLFqMZQb9YylxKeyelSdrTk,70
5
5
  hdl/controllers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -84,12 +84,12 @@ hdl/utils/database_tools/connect.py,sha256=KUnVG-8raifEJ_N0b3c8LkTTIfn9NIyw8LX6q
84
84
  hdl/utils/general/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
85
85
  hdl/utils/general/glob.py,sha256=8-RCnt6L297wMIfn34ZAMCsGCZUjHG3MGglGZI1cX0g,491
86
86
  hdl/utils/llm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
87
- hdl/utils/llm/chat.py,sha256=67Mx1Q077BOscQbHiDxJpjBQalJKO8SQMLcRch5_Xj8,14352
87
+ hdl/utils/llm/chat.py,sha256=2r3lIAf14l3obfK2ee2z6gbdp1LU-qJiV9o7rlGG0fg,14853
88
88
  hdl/utils/llm/embs.py,sha256=Tf0FOYrOFZp7qQpEPiSCXzlgyHH0X9HVTUtsup74a9E,7174
89
89
  hdl/utils/llm/extract.py,sha256=2sK_WJzmYIc8iuWaM9DA6Nw3_6q1O4lJ5pKpcZo-bBA,6512
90
90
  hdl/utils/schedulers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
91
91
  hdl/utils/schedulers/norm_lr.py,sha256=bDwCmdEK-WkgxQMFBiMuchv8Mm7C0-GZJ6usm-PQk14,4461
92
- hjxdl-0.1.9.dist-info/METADATA,sha256=O6Utim9uYtAH6dTsbrPQrgkdzCOHjwsYaGUHn6_noIM,542
93
- hjxdl-0.1.9.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
94
- hjxdl-0.1.9.dist-info/top_level.txt,sha256=-kxwTM5JPhylp06z3zAVO3w6_h7wtBfBo2zgM6YZoTk,4
95
- hjxdl-0.1.9.dist-info/RECORD,,
92
+ hjxdl-0.1.10.dist-info/METADATA,sha256=wyNIVGQpVGcszuRGBHAUeM8AuGUmelzADJ2yphmFUas,543
93
+ hjxdl-0.1.10.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
94
+ hjxdl-0.1.10.dist-info/top_level.txt,sha256=-kxwTM5JPhylp06z3zAVO3w6_h7wtBfBo2zgM6YZoTk,4
95
+ hjxdl-0.1.10.dist-info/RECORD,,
File without changes