rhan-oai
09ccae2c07
Honor personality = "none" in model instructions ( #32277 )
...
## Why
Model catalog instructions can include a baked-in `# Personality` section. An
explicit `none` setting should omit that section instead of sending it as part
of the model's base instructions.
## What changed
- Pass the configured personality into the models manager.
- When personality support is enabled and the setting is explicitly `none`,
remove the `# Personality` section through the next level-one heading from
catalog base instructions and instruction templates.
- Preserve explicit `base_instructions` overrides and avoid warning when no
personality was requested.
## Testing
Added unit and integration coverage for section removal, heading boundaries,
CRLF input, preserved configurations, and explicit base instructions.
GitOrigin-RevId: 452c88d3ac6001c2ac7d4fef269cd75dc239fa61
2026-07-10 21:39:56 +00:00
..
2026-07-02 10:59:00 -07:00
2026-06-09 12:48:04 -07:00
2026-06-24 13:24:10 -07:00
2026-06-22 13:19:40 -07:00
2026-07-09 12:16:15 -04:00
2026-07-10 21:24:03 +00:00
2026-07-10 21:24:03 +00:00
2026-06-24 18:00:06 -07:00
2026-07-10 21:13:38 +00:00
2026-07-07 19:48:05 +00:00
2026-06-26 17:34:52 -07:00
2026-06-23 00:02:33 +00:00
2026-07-06 12:17:16 -07:00
2026-06-11 18:16:39 -07:00
2026-07-07 13:00:44 -07:00
2026-06-13 21:43:39 -07:00
2026-06-24 13:25:44 -07:00
2026-07-10 18:27:19 +00:00
2026-07-07 17:05:05 -07:00
2026-07-07 01:34:36 +00:00
2026-06-11 18:16:39 -07:00
2026-06-11 18:16:39 -07:00
2026-07-09 14:40:10 -07:00
2026-07-06 16:26:56 -07:00
2026-07-09 08:17:13 -07:00
2026-07-10 20:01:47 +00:00
2026-07-07 13:00:44 -07:00
2026-07-07 01:12:24 +00:00
2026-06-15 20:10:53 -07:00
2026-07-09 14:32:23 -07:00
2026-06-21 13:35:25 -07:00
2026-07-10 16:11:58 +00:00
2026-06-24 23:24:01 +01:00
2026-06-22 11:11:25 -07:00
2026-07-10 21:39:56 +00:00
2026-07-09 12:25:19 +09:00
2026-07-10 21:13:38 +00:00
2026-07-10 10:29:30 +00:00
2026-07-09 00:58:28 +00:00
2026-07-10 18:08:35 +00:00
2026-07-10 09:56:03 +00:00
2026-07-10 09:09:22 +00:00
2026-07-10 15:52:04 +00:00
2026-06-19 12:47:53 -07:00
2026-07-10 20:25:03 +00:00
2026-07-09 15:44:59 +01:00
2026-07-10 20:01:47 +00:00
2026-07-10 16:55:01 +00:00
2026-07-07 20:01:03 -04:00
2026-07-07 18:00:35 -07:00
2026-07-09 14:26:20 -07:00
2026-07-08 12:17:58 -04:00
2026-06-12 19:52:49 +00:00
2026-07-06 14:51:34 -07:00
2026-07-09 14:26:20 -07:00
2026-07-09 12:25:19 +09:00
2026-07-10 15:44:56 +00:00
2026-07-10 16:11:58 +00:00
2026-07-07 17:43:19 -07:00
2026-07-10 21:39:56 +00:00
2026-07-09 17:33:37 +01:00
2026-07-10 20:01:47 +00:00
2026-06-23 22:51:19 +01:00
2026-07-07 10:52:38 -07:00
2026-07-10 21:39:56 +00:00
2026-07-10 17:59:41 +00:00
2026-07-10 21:31:00 +00:00
2026-07-09 12:25:19 +09:00
2026-07-09 19:36:36 +01:00
2026-06-12 19:52:49 +00:00
2026-07-07 17:50:39 -04:00
2026-06-25 13:56:08 -07:00
2026-07-09 14:01:16 -07:00
2026-07-10 20:01:47 +00:00
2026-07-10 16:11:58 +00:00
2026-07-10 20:25:03 +00:00
2026-07-10 16:11:58 +00:00
2026-07-10 21:24:03 +00:00
2026-06-24 22:33:18 +00:00
2026-06-13 21:43:39 -07:00
2026-06-13 21:43:39 -07:00
2026-07-08 12:57:27 -07:00
2026-07-08 13:22:10 -07:00
2026-07-09 17:31:44 -07:00
2026-07-10 09:09:22 +00:00
2026-07-10 09:09:22 +00:00
2026-07-09 11:53:18 -07:00