3 ms·For OpenAI, use their functions schema mechanism. Aside from that, take a look at llama.cpp grammars.by simonw 3y agoFor OpenAI, use their functions schema mechanism. Aside from that, take a look at llama.cpp grammars.