]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
chat: make tool description and parameters optional per OpenAI spec (#18478)
authorAnri Lombard <redacted>
Wed, 31 Dec 2025 23:21:37 +0000 (01:21 +0200)
committerGitHub <redacted>
Wed, 31 Dec 2025 23:21:37 +0000 (17:21 -0600)
commit4cd162a1235682d78e0ad04ca5f27bcaeef2460e
tree11980e1fd884a94cb2c0a8884730f217459be270
parent13814eb370d2f0b70e1830cc577b6155b17aee47
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
common/chat.cpp
tests/test-chat.cpp