Back to feed

b7598

Jan 1, 2026
Meta/llama.cppCLIvb7598

chat: make tool description and parameters optional per OpenAI spec (#18478)

  • chat: make tool description and parameters optional per OpenAI spec

Per the OpenAI API specification, both 'description' and 'parameters' fields in tool function definitions are optional. Previously, the parser would throw an exception if these fields were missing.

Attempts to fix #17667

  • refactor: use value() for cleaner optional field access

macOS/iOS:

Linux:

Windows:

openEuler: