MagnivOrg / prompt-layer-library

🍰 PromptLayer - Maintain a log of your prompts and OpenAI API requests. Track, debug, and replay old completions.
https://www.promptlayer.com
Apache License 2.0
479 stars 42 forks source link

Support for function calling #40

Closed Avinash-Raj closed 1 year ago

Avinash-Raj commented 1 year ago

As for now, PromptLayerChatOpenAI class does not support the OpenAI's function calling feature.

Newest version of langchain supports this feature out of the box.

https://github.com/hwchase17/langchain/blob/370becdfc2dea35eab6b56244872001116d24f0b/langchain/chat_models/openai.py#LL325C26-L325C26