gllm-inference-binary 0.5.4__cp313-cp313-macosx_13_0_x86_64.whl → 0.5.5__cp313-cp313-macosx_13_0_x86_64.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.

Potentially problematic release.


This version of gllm-inference-binary might be problematic. Click here for more details.

@@ -11,13 +11,13 @@ class PromptBuilder:
11
11
  system_template (str): The system prompt template. May contain placeholders enclosed in curly braces `{}`.
12
12
  user_template (str): The user prompt template. May contain placeholders enclosed in curly braces `{}`.
13
13
  prompt_key_set (set[str]): A set of expected keys that must be present in the prompt templates.
14
- ignore_extra_keys (bool): Whether to ignore extra keys when formatting the prompt.
14
+ key_defaults (dict[str, str]): Default values for the keys in the prompt templates.
15
15
  """
16
16
  system_template: Incomplete
17
17
  user_template: Incomplete
18
18
  prompt_key_set: Incomplete
19
- ignore_extra_keys: Incomplete
20
- def __init__(self, system_template: str = '', user_template: str = '', ignore_extra_keys: bool = False) -> None:
19
+ key_defaults: Incomplete
20
+ def __init__(self, system_template: str = '', user_template: str = '', key_defaults: dict[str, str] | None = None, ignore_extra_keys: bool | None = None) -> None:
21
21
  """Initializes a new instance of the PromptBuilder class.
22
22
 
23
23
  Args:
@@ -25,8 +25,11 @@ class PromptBuilder:
25
25
  braces `{}`. Defaults to an empty string.
26
26
  user_template (str, optional): The user prompt template. May contain placeholders enclosed in curly
27
27
  braces `{}`. Defaults to an empty string.
28
- ignore_extra_keys (bool, optional): Whether to ignore extra keys when formatting the prompt.
29
- Defaults to False.
28
+ key_defaults (dict[str, str] | None, optional): Default values for the keys in the prompt templates.
29
+ Applied when the corresponding keys are not provided in the runtime input.
30
+ Defaults to None, in which case no default values will be assigned to the keys.
31
+ ignore_extra_keys (bool | None, optional): Deprecated parameter. Will be removed in v0.6. Extra keys
32
+ will always raise a warning only instead of raising an error.
30
33
 
31
34
  Raises:
32
35
  ValueError: If both `system_template` and `user_template` are empty.
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gllm-inference-binary
3
- Version: 0.5.4
3
+ Version: 0.5.5
4
4
  Summary: A library containing components related to model inferences in Gen AI applications.
5
5
  Author: Henry Wicaksono
6
6
  Author-email: henry.wicaksono@gdplabs.id
@@ -59,7 +59,7 @@ gllm_inference/output_parser/__init__.pyi,sha256=WQOOgsYnPk8vd-SOhFMMaVTzy4gkYrO
59
59
  gllm_inference/output_parser/json_output_parser.pyi,sha256=uulh91uQLMSb4ZXZhHYi9W9w7zGnmrOweEkL6wdDJN8,2933
60
60
  gllm_inference/output_parser/output_parser.pyi,sha256=Yzk7F26pH8Uc7FQZo4G6l67YkfppefUvaV9cNK-HyDs,948
61
61
  gllm_inference/prompt_builder/__init__.pyi,sha256=kshfBMvwIwiIvjxiGG5BrJZNvpPa8rhtkbHo5FPifBg,117
62
- gllm_inference/prompt_builder/prompt_builder.pyi,sha256=c7VEzAlDktkttuGwtmZ3jbeqoaglPK1wYG-jU9Lf_fI,2881
62
+ gllm_inference/prompt_builder/prompt_builder.pyi,sha256=zDKN0JWn23DPM73sCe-qpXT4d32Izis94K5aNpzLaoM,3278
63
63
  gllm_inference/prompt_formatter/__init__.pyi,sha256=rTsjfRsT-y00qH67fPewMNPMN1fAO2y7DM9scR1ccm0,740
64
64
  gllm_inference/prompt_formatter/agnostic_prompt_formatter.pyi,sha256=c9mN4t8LXn79h8wq8DAeWYwMgmZGzXjP7EcjLpwfNZg,2018
65
65
  gllm_inference/prompt_formatter/huggingface_prompt_formatter.pyi,sha256=AJ-D11HBhTKBA1B5s0km_K1R6o5HD1yvdbGoL7SpGhI,2729
@@ -86,8 +86,8 @@ gllm_inference/utils/__init__.pyi,sha256=npmBmmlBv7cPHMg1hdL3S2_RelD6vk_LhCsGELh
86
86
  gllm_inference/utils/langchain.pyi,sha256=VluQiHkGigDdqLUbhB6vnXiISCP5hHqV0qokYY6dC1A,1164
87
87
  gllm_inference/utils/validation.pyi,sha256=toxBtRp-VItC_X7sNi-GDd7sjibBdWMrR0q01OI2D7k,385
88
88
  gllm_inference.build/.gitignore,sha256=aEiIwOuxfzdCmLZe4oB1JsBmCUxwG8x-u-HBCV9JT8E,1
89
- gllm_inference.cpython-313-darwin.so,sha256=CU5l3wmqrwrKCtgPQEJwBVcu_QpFBKU3sk8Na7gfsMU,3672136
89
+ gllm_inference.cpython-313-darwin.so,sha256=VgovvLnWtYOAKWgKf9RNMfCqM2HMHLQGfRTicJFA7GQ,3672136
90
90
  gllm_inference.pyi,sha256=xOoh8lTQxXc6A4XYKBobWn8RJNszAlinAmbHPJyqi30,3315
91
- gllm_inference_binary-0.5.4.dist-info/METADATA,sha256=pDdTHJqMvgTxEDuOVk85fsZsvKVBbUaLd-QB7J-jRVM,4531
92
- gllm_inference_binary-0.5.4.dist-info/WHEEL,sha256=PCOZcL_jcbAVhuFR5ylE4Mr-7HPGHAcfJk9OpuMh7RQ,107
93
- gllm_inference_binary-0.5.4.dist-info/RECORD,,
91
+ gllm_inference_binary-0.5.5.dist-info/METADATA,sha256=S9vLvAj1-yAb0qsT4OWsW2J6gHgJxgoIejXF_lRnoEU,4531
92
+ gllm_inference_binary-0.5.5.dist-info/WHEEL,sha256=PCOZcL_jcbAVhuFR5ylE4Mr-7HPGHAcfJk9OpuMh7RQ,107
93
+ gllm_inference_binary-0.5.5.dist-info/RECORD,,