promptbuilder 0.4.39__py3-none-any.whl → 0.4.40__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.
@@ -273,7 +273,13 @@ class GoogleLLMClientAsync(BaseLLMClientAsync):
273
273
  thinking_config = self.default_thinking_config
274
274
  config.thinking_config = thinking_config
275
275
 
276
- if result_type is None or result_type == "json":
276
+ if result_type is None:
277
+ return await self.client.aio.models.generate_content(
278
+ model=self.model,
279
+ contents=messages,
280
+ config=config,
281
+ )
282
+ elif result_type == "json":
277
283
  config.response_mime_type = "application/json"
278
284
  return await self.client.aio.models.generate_content(
279
285
  model=self.model,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: promptbuilder
3
- Version: 0.4.39
3
+ Version: 0.4.40
4
4
  Summary: Library for building prompts for LLMs
5
5
  Home-page: https://github.com/kapulkin/promptbuilder
6
6
  Author: Kapulkin Stanislav
@@ -13,15 +13,15 @@ promptbuilder/llm_client/base_client.py,sha256=2aXxOwhQGx7-fqaW-QDeRjtO5-egGqdyV
13
13
  promptbuilder/llm_client/bedrock_client.py,sha256=IQt7Sv_Wt6mg5-bhuyr-Nwjx5Nxk2S8rKEVkfwvWqE0,28183
14
14
  promptbuilder/llm_client/config.py,sha256=exQEm35wp7lK5SfXNpN5H9VZEb2LVa4pyZ-cxGt1U-U,1124
15
15
  promptbuilder/llm_client/exceptions.py,sha256=t-X7r_a8B1jNu8eEavde1jXu5dz97yV3IG4YHOtgh0Y,4836
16
- promptbuilder/llm_client/google_client.py,sha256=s37D7Gnd-KMerS4jpF0B8MGu1wbap3V9zG0RL6FksXU,12354
16
+ promptbuilder/llm_client/google_client.py,sha256=3aaJVCXXlmZ0pDmMERA3QGDklSxkbNmC6e4lIYwJBMg,12551
17
17
  promptbuilder/llm_client/litellm_client.py,sha256=czQd1DM1mEj_yM5BQz9oIPtoJG_B2WpQXsqkKDmLyXE,36398
18
18
  promptbuilder/llm_client/logfire_decorators.py,sha256=7FvOcMwP87rv4CVySujA_mTZpZyIa7tdA81_OWJqQKQ,9314
19
19
  promptbuilder/llm_client/main.py,sha256=2Q7J5FwivX2YwvptzoSEtCfvfcI9p5HC55D3mMb2se4,8243
20
20
  promptbuilder/llm_client/openai_client.py,sha256=ulZZsHhyRbqG1WRdVJcNHk6r6MFBC5XLGJQ_2648AkA,28206
21
21
  promptbuilder/llm_client/types.py,sha256=fnkSMFjK9ViaRQsD6LILpLz8R2_E1TI9efjy8VNO0RQ,8139
22
22
  promptbuilder/llm_client/utils.py,sha256=EtJFghpn27eVUXR-rZj8inEk903tk3thM0r19QxWnBM,13496
23
- promptbuilder-0.4.39.dist-info/licenses/LICENSE,sha256=fqXmInzgsvEOIaKSBgcrwKyYCGYF0MKErJ0YivtODcc,1096
24
- promptbuilder-0.4.39.dist-info/METADATA,sha256=DuA7mjZv7cSX2uN7Whng4nh3KvRrgDa-6N8fs_Jjmwo,3824
25
- promptbuilder-0.4.39.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
26
- promptbuilder-0.4.39.dist-info/top_level.txt,sha256=UBVcYn4UgrPy3O3fmmnPEU_kieuplBMgheetIMei4EI,14
27
- promptbuilder-0.4.39.dist-info/RECORD,,
23
+ promptbuilder-0.4.40.dist-info/licenses/LICENSE,sha256=fqXmInzgsvEOIaKSBgcrwKyYCGYF0MKErJ0YivtODcc,1096
24
+ promptbuilder-0.4.40.dist-info/METADATA,sha256=J984D1Sc2jEwOWi1fHT5bnMc283QNmkzrmZWh5Mzwhs,3824
25
+ promptbuilder-0.4.40.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
26
+ promptbuilder-0.4.40.dist-info/top_level.txt,sha256=UBVcYn4UgrPy3O3fmmnPEU_kieuplBMgheetIMei4EI,14
27
+ promptbuilder-0.4.40.dist-info/RECORD,,