uripeled2 / llm-client-sdk

SDK for using LLM
MIT License
74 stars 11 forks source link

Add OpenAI functions support #33

Open uripeled2 opened 11 months ago

uripeled2 commented 11 months ago

You can see here the openai-cookbook for using functions with openai-python. The biggest problem for adding support for it in OpenAIClient through chat_completion is that openai functions return an object containing the name of the function and the arguments and not just a string like in regular chat.