YueGuobin
10a827f0c5
feat(api): enhance max_tokens field with robust null handling
- Update LLMModelConfigUpdate schema to accept Union[int, str] for max_tokens
- Add field validator to gracefully handle various null representations:
- Convert string "null" to null
- Convert empty strings to null
- Convert numeric strings to integers
- Accept proper JSON null values
- Update documentation to reflect new behavior and explain robust null handling
- Prevents validation errors from incorrect null serialization by clients
2026-03-11 10:14:06 +08:00
..
2026-02-23 23:26:42 +08:00
2021-04-15 18:12:08 +09:30
2023-10-24 18:33:26 +10:00
2023-08-04 18:20:06 +10:00
2021-04-15 18:12:08 +09:30
2026-03-08 02:27:48 +08:00
2023-08-04 18:20:06 +10:00
2021-04-15 18:12:08 +09:30
2021-04-15 18:12:08 +09:30
2023-08-04 18:20:06 +10:00
2021-04-15 18:12:08 +09:30
2021-04-15 18:12:08 +09:30
2025-04-16 15:26:56 +07:00
2026-03-11 10:14:06 +08:00
2026-02-23 23:26:42 +08:00
2023-09-07 17:31:11 +07:00
2026-02-22 18:13:08 +08:00
2023-09-02 17:54:24 +07:00
2021-04-15 18:12:08 +09:30
2021-04-15 18:12:08 +09:30
2026-02-21 22:15:21 +01:00
2025-02-23 12:05:19 +10:00