Skip to content

v0.1.5.3: OpenAI Function Calls, Azure Support

Compare
Choose a tag to compare
@ianarawjo ianarawjo released this 13 Jun 22:10
· 148 commits to main since this release
655e1e6

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:

Screen Shot 2023-06-13 at 5 36 50 PM

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:

Screen Shot 2023-06-13 at 5 36 45 PM

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:

Screen Shot 2023-06-13 at 5 39 50 PM

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:

245616817-23e0fcb3-5cee-4d76-8eeb-eb83f5b5fabc

To use Azure OpenAI, you just need to set your keys in ChainForge Settings:

Screen Shot 2023-06-13 at 5 57 24 PM

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:

Screen Shot 2023-06-13 at 12 03 54 PM