Yuri Khrustalev
77390baa18
jinja : write floats in tojson as Python does ( #30362 )
...
tojson printed floats through a C++ stream (6 significant digits, no
".0"), so 48.858844 became 48.8588 and 1.0 became 1 in tool definitions,
tool-call arguments and other template output. Write the shortest digits
that read back as the same value, as json.dumps does. The string and safe
filters of a float use the same code.
2026-10-14 09:18:38 +03:00
..
2026-10-14 09:18:38 +03:00
2026-10-14 01:03:56 +02:00
2026-10-12 12:02:24 +02:00
2026-09-19 15:37:13 +03:00
2023-11-07 00:36:23 +03:00
2026-09-04 09:13:20 +03:00
2026-09-04 09:13:20 +03:00
2026-10-14 01:03:56 +02:00
2026-10-14 01:03:56 +02:00
2026-04-03 09:07:59 +03:00
2026-08-22 16:28:28 +02:00
2026-08-22 16:28:28 +02:00
2026-10-07 22:37:51 +02:00
2026-08-22 16:28:28 +02:00
2026-10-14 01:03:56 +02:00
2026-10-14 01:03:56 +02:00
2026-09-14 16:07:28 +02:00
2026-10-12 15:01:52 +02:00
2026-10-12 15:01:52 +02:00
2026-09-30 16:24:46 +02:00
2026-03-05 10:47:28 +01:00
2026-04-27 08:06:39 +03:00
2026-04-27 08:06:39 +03:00
2026-10-03 15:48:24 +02:00
2026-08-19 11:04:26 +02:00
2026-09-26 07:59:15 -07:00
2026-08-22 16:16:06 +02:00
2026-09-29 13:46:53 +02:00
2026-09-19 15:37:13 +03:00
2026-07-08 14:52:43 +02:00
2026-10-04 11:24:53 +02:00
2026-10-04 11:24:53 +02:00
2026-09-19 14:11:13 +02:00
2026-09-12 16:14:50 -05:00
2026-09-12 16:14:50 -05:00
2026-09-12 16:14:50 -05:00
2026-08-23 01:11:10 +02:00
2026-09-21 10:32:07 +02:00
2026-08-10 16:58:56 +03:00
2026-10-13 16:21:55 +03:00
2026-10-13 16:21:55 +03:00
2026-01-28 19:42:42 +02:00
2026-01-28 19:42:42 +02:00
2026-07-07 10:25:04 +03:00
2026-03-31 13:50:51 +02:00
2026-05-29 09:21:37 +03:00
2026-01-30 21:27:27 +02:00
2026-10-09 10:06:22 -05:00
2026-10-09 10:06:22 -05:00
2026-10-04 11:35:33 +03:00
2026-09-29 17:22:49 +02:00
2026-08-10 16:58:56 +03:00
2026-07-25 11:58:09 +02:00
2026-10-12 11:53:58 +03:00
2026-10-09 10:06:22 -05:00
2026-10-10 11:22:38 +02:00
2026-10-04 11:24:53 +02:00
2026-07-26 20:54:25 +02:00
2026-07-26 20:54:25 +02:00
2026-07-25 11:58:09 +02:00
2026-07-25 11:58:09 +02:00
2026-09-20 06:51:40 -05:00
2026-09-20 06:51:40 -05:00