langfun 0.1.2.dev202503010803__py3-none-any.whl → 0.1.2.dev202503030804__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.
@@ -626,7 +626,7 @@ class Gemini(rest.REST):
626
626
 
627
627
  def result(self, json: dict[str, Any]) -> lf.LMSamplingResult:
628
628
  messages = [
629
- self._message_from_content_parts(candidate['content']['parts'])
629
+ self._message_from_content_parts(candidate['content'].get('parts', []))
630
630
  for candidate in json['candidates']
631
631
  ]
632
632
  usage = json['usageMetadata']
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: langfun
3
- Version: 0.1.2.dev202503010803
3
+ Version: 0.1.2.dev202503030804
4
4
  Summary: Langfun: Language as Functions.
5
5
  Home-page: https://github.com/google/langfun
6
6
  Author: Langfun Authors
@@ -82,7 +82,7 @@ langfun/core/llms/deepseek.py,sha256=jvTxdXPr-vH6HNakn_Ootx1heDg8Fen2FUkUW36bpCs
82
82
  langfun/core/llms/deepseek_test.py,sha256=DvROWPlDuow5E1lfoSkhyGt_ELA19JoQoDsTnRgDtTg,1847
83
83
  langfun/core/llms/fake.py,sha256=xmgCkk9y0I4x0IT32SZ9_OT27aLadXH8PRiYNo5VTd4,3265
84
84
  langfun/core/llms/fake_test.py,sha256=2h13qkwEz_JR0mtUDPxdAhQo7MueXaFSwsD2DIRDW9g,7653
85
- langfun/core/llms/gemini.py,sha256=95PD90TuR3N8m9L50LHIuCByPTMi2qHaYaCwy7d0qYI,22511
85
+ langfun/core/llms/gemini.py,sha256=xhz0EK4cmO483FnwX8MVc75Ud1VhUO6p8T3YGDtte98,22519
86
86
  langfun/core/llms/gemini_test.py,sha256=ZzQmgB5bxJdtD2nVOz0WQ1zjNCea_jM5Yuqs8kchnGw,6621
87
87
  langfun/core/llms/google_genai.py,sha256=mzUdWAShRzz2k_foUo0eIdNOyHs_xjEtbewqYyuD0k0,4768
88
88
  langfun/core/llms/google_genai_test.py,sha256=NKNtpebArQ9ZR7Qsnhd2prFIpMjleojy6o6VMXkJ1zY,1502
@@ -148,8 +148,8 @@ langfun/core/templates/demonstration.py,sha256=vCrgYubdZM5Umqcgp8NUVGXgr4P_c-fik
148
148
  langfun/core/templates/demonstration_test.py,sha256=SafcDQ0WgI7pw05EmPI2S4v1t3ABKzup8jReCljHeK4,2162
149
149
  langfun/core/templates/selfplay.py,sha256=yhgrJbiYwq47TgzThmHrDQTF4nDrTI09CWGhuQPNv-s,2273
150
150
  langfun/core/templates/selfplay_test.py,sha256=Ot__1P1M8oJfoTp-M9-PQ6HUXqZKyMwvZ5f7yQ3yfyM,2326
151
- langfun-0.1.2.dev202503010803.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
152
- langfun-0.1.2.dev202503010803.dist-info/METADATA,sha256=3LDUWIRezFvLhMkX7-IIZpXEPd0cUUQ0RGXNQaX4tf0,8172
153
- langfun-0.1.2.dev202503010803.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
154
- langfun-0.1.2.dev202503010803.dist-info/top_level.txt,sha256=RhlEkHxs1qtzmmtWSwYoLVJAc1YrbPtxQ52uh8Z9VvY,8
155
- langfun-0.1.2.dev202503010803.dist-info/RECORD,,
151
+ langfun-0.1.2.dev202503030804.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
152
+ langfun-0.1.2.dev202503030804.dist-info/METADATA,sha256=ELJGrsBdfyNVy3ObygHFlK593o_nlnFxt9t598uUPIU,8172
153
+ langfun-0.1.2.dev202503030804.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
154
+ langfun-0.1.2.dev202503030804.dist-info/top_level.txt,sha256=RhlEkHxs1qtzmmtWSwYoLVJAc1YrbPtxQ52uh8Z9VvY,8
155
+ langfun-0.1.2.dev202503030804.dist-info/RECORD,,