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-06 18:42:24 +02:00
2026-10-13 16:21:55 +03:00
2026-10-09 10:06:22 -05:00
2026-09-13 18:50:46 +02:00
2026-10-13 16:21:55 +03:00
2026-10-13 16:21:55 +03:00
2026-09-29 07:24:03 +02:00
2026-04-02 22:53:58 +02:00
2026-10-02 11:08:08 +03:00
2026-08-27 13:53:42 +03:00
2026-07-30 19:34:04 +03:00
2026-10-13 17:17:59 +02:00
2026-10-07 13:34:18 +03:00
2025-12-10 12:32:23 -08:00
2026-10-10 11:22:38 +02:00
2025-07-03 07:48:32 +03:00
2026-10-14 01:03:56 +02:00
2026-10-14 01:03:56 +02:00
2026-09-20 06:51:40 -05:00
2026-10-14 01:03:56 +02:00
2026-10-14 01:03:56 +02:00
2026-06-09 12:01:37 +03:00
2024-07-12 10:46:02 +03:00
2026-07-14 13:15:41 +03:00
2026-09-30 18:08:43 +02:00
2025-04-24 16:00:10 +03:00
2026-04-02 22:53:58 +02:00
2026-09-29 22:46:20 +02:00
2026-09-12 16:14:50 -05:00
2025-12-22 11:00:37 +01:00
2026-08-05 07:39:10 -05:00
2026-10-14 09:18:38 +03:00
2026-09-19 14:11:13 +02:00
2026-09-12 16:14:50 -05:00
2026-10-12 13:39:55 +02:00
2026-10-13 16:21:55 +03:00
2026-03-21 18:43:35 +01:00
2026-04-29 10:58:43 +03:00
2025-12-10 15:28:59 +01:00
2026-10-05 08:29:13 +03:00
2026-07-30 19:34:04 +03:00
2026-09-30 20:45:39 +02:00
2026-09-02 21:20:10 +02:00
2026-09-25 18:52:44 +02:00
2025-08-26 22:14:38 +02:00
2026-10-09 10:06:22 -05:00
2026-09-13 18:50:46 +02:00
2026-10-02 17:37:35 +03:00
2025-09-25 08:06:06 +03:00
2026-08-12 14:15:03 +02:00
2026-07-25 11:58:09 +02:00
2025-11-11 13:33:24 +02:00
2026-09-25 10:35:09 +03:00
2026-08-30 20:26:16 +03:00
2026-07-30 19:34:04 +03:00
2026-09-08 12:59:53 +02:00
2026-10-14 01:17:11 +02:00
2026-09-30 18:08:43 +02:00
2026-09-26 08:38:57 +03:00
2025-12-22 11:00:37 +01:00
2026-04-09 12:36:29 +02:00
2026-02-26 12:14:09 +01:00
2025-12-22 11:00:37 +01:00
2025-12-22 11:00:37 +01:00
2026-04-09 12:36:29 +02:00
2025-09-27 02:03:33 +08:00
2026-10-14 08:33:24 +03:00
2026-10-12 13:32:56 +03:00