llm_batch_helper 0.3.0__py3-none-any.whl → 0.3.1__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.
- llm_batch_helper/__init__.py +1 -1
- llm_batch_helper/config.py +2 -2
- {llm_batch_helper-0.3.0.dist-info → llm_batch_helper-0.3.1.dist-info}/METADATA +8 -3
- llm_batch_helper-0.3.1.dist-info/RECORD +10 -0
- llm_batch_helper-0.3.0.dist-info/RECORD +0 -10
- {llm_batch_helper-0.3.0.dist-info → llm_batch_helper-0.3.1.dist-info}/LICENSE +0 -0
- {llm_batch_helper-0.3.0.dist-info → llm_batch_helper-0.3.1.dist-info}/WHEEL +0 -0
llm_batch_helper/__init__.py
CHANGED
llm_batch_helper/config.py
CHANGED
@@ -11,8 +11,8 @@ class LLMConfig:
|
|
11
11
|
temperature: float = 1.0,
|
12
12
|
max_tokens: Optional[int] = None,
|
13
13
|
system_instruction: Optional[str] = None,
|
14
|
-
max_retries: int =
|
15
|
-
max_concurrent_requests: int =
|
14
|
+
max_retries: int = 5, # Max retries for the combined LLM call + Verification
|
15
|
+
max_concurrent_requests: int = 30,
|
16
16
|
verification_callback: Optional[Callable[..., bool]] = None,
|
17
17
|
verification_callback_args: Optional[Dict] = None,
|
18
18
|
max_completion_tokens: Optional[int] = None,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: llm_batch_helper
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.1
|
4
4
|
Summary: A Python package that enables batch submission of prompts to LLM APIs, with simplified interface and built-in async capabilities handled implicitly.
|
5
5
|
License: MIT
|
6
6
|
Keywords: llm,openai,together,openrouter,batch,async,ai,nlp,api
|
@@ -276,8 +276,8 @@ LLMConfig(
|
|
276
276
|
max_completion_tokens: Optional[int] = None, # Preferred parameter
|
277
277
|
max_tokens: Optional[int] = None, # Deprecated, kept for backward compatibility
|
278
278
|
system_instruction: Optional[str] = None,
|
279
|
-
max_retries: int =
|
280
|
-
max_concurrent_requests: int =
|
279
|
+
max_retries: int = 5,
|
280
|
+
max_concurrent_requests: int = 30,
|
281
281
|
verification_callback: Optional[Callable] = None,
|
282
282
|
verification_callback_args: Optional[Dict] = None
|
283
283
|
)
|
@@ -400,6 +400,11 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
|
|
400
400
|
|
401
401
|
## Changelog
|
402
402
|
|
403
|
+
### v0.3.1
|
404
|
+
- **🔧 Configuration Updates**: Optimized default values for better performance
|
405
|
+
- Updated `max_retries` from 10 to 5 for faster failure detection
|
406
|
+
- Updated `max_concurrent_requests` from 5 to 30 for improved batch processing performance
|
407
|
+
|
403
408
|
### v0.3.0
|
404
409
|
- **🎉 Major Update**: Simplified API - async operations handled implicitly, no async/await required!
|
405
410
|
- **📓 Jupyter Support**: Works seamlessly in notebooks without event loop issues
|
@@ -0,0 +1,10 @@
|
|
1
|
+
llm_batch_helper/__init__.py,sha256=sCQ-eJVy3cCs80ASvcww10om_E9CHDctCfpIGLPIcy8,442
|
2
|
+
llm_batch_helper/cache.py,sha256=QUODQ1tPCvFThO3yvVOTcorcOrmN2dP5HLF1Y2O1bTQ,1276
|
3
|
+
llm_batch_helper/config.py,sha256=vM3YEeLYkN9qfY1fTPXN27wAlTeaVXXCfcFw7nvbIqw,1372
|
4
|
+
llm_batch_helper/exceptions.py,sha256=59_f3jINUhKFble6HTp8pmtLSFE2MYLHWGclwaQKs28,296
|
5
|
+
llm_batch_helper/input_handlers.py,sha256=IadA732F1Rw0zcBok5hjZr32RUm8eTUOpvLsRuMvaE4,2877
|
6
|
+
llm_batch_helper/providers.py,sha256=zv7dCiKZtSOcdV-4kvd3WKhClOv1jio9neZqGcYskm8,16794
|
7
|
+
llm_batch_helper-0.3.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
8
|
+
llm_batch_helper-0.3.1.dist-info/METADATA,sha256=AAzYnTi_1DhVn3subd9XT3LLFbKP63MCn1cptZTgMAc,14505
|
9
|
+
llm_batch_helper-0.3.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
10
|
+
llm_batch_helper-0.3.1.dist-info/RECORD,,
|
@@ -1,10 +0,0 @@
|
|
1
|
-
llm_batch_helper/__init__.py,sha256=IFBwr-pFiSeJdC2LzRFbVj0sF07r7i9Wy1Dcs5bjmVQ,442
|
2
|
-
llm_batch_helper/cache.py,sha256=QUODQ1tPCvFThO3yvVOTcorcOrmN2dP5HLF1Y2O1bTQ,1276
|
3
|
-
llm_batch_helper/config.py,sha256=wOI-JmxzJIM-w1-rrLqyqfPa_RyuI6hQlBWSCb44Z4U,1372
|
4
|
-
llm_batch_helper/exceptions.py,sha256=59_f3jINUhKFble6HTp8pmtLSFE2MYLHWGclwaQKs28,296
|
5
|
-
llm_batch_helper/input_handlers.py,sha256=IadA732F1Rw0zcBok5hjZr32RUm8eTUOpvLsRuMvaE4,2877
|
6
|
-
llm_batch_helper/providers.py,sha256=zv7dCiKZtSOcdV-4kvd3WKhClOv1jio9neZqGcYskm8,16794
|
7
|
-
llm_batch_helper-0.3.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
8
|
-
llm_batch_helper-0.3.0.dist-info/METADATA,sha256=ndbraa5EA5D9-WoWN7o0aLt6NThLTv6zFuZxDsVy3VQ,14254
|
9
|
-
llm_batch_helper-0.3.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
10
|
-
llm_batch_helper-0.3.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|