v0.1.5.3: OpenAI Function Calls, Azure Support
This is an emergency release to add basic support for the new OpenAI models and 'function call' ability. It also includes support for Azure OpenAI endpoints, closing Issue #53 .
OpenAI function calls
You can now specify the newest models of ChatGPT, 0613:
In addition, you can set the value of functions
by passing a valid JSON schema object. This will be passed to the functions
of the OpenAI chat completions call:
I've created a basic example flow to detect when a given prompt triggers a function call, using OpenAI's get_current_weather
example in their press release:
In the coming weeks, we will think about making this user experience more streamlined, but for now, enjoy being able to mess around!
Azure OpenAI API support
Thanks to community members @chuanqisun , @bhctest123 , and @levidehaan , we now have added Azure OpenAI support:
To use Azure OpenAI, you just need to set your keys in ChainForge Settings:
And then make sure you set the right Deployment Name in the individual model settings. The settings also includes OpenAI function calls (not sure if you can deploy 0613 models on Azure yet, but it's there).
As always, let us know if you run into any issues.
Collapsing duplicate responses
As part of this release, duplicate LLM responses when num generations n>1
are now detected and automatically collapsed in Inspectors. The number of duplicates is indicated in the top-right corner: