Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add function calling params in OpenAI config #863

Closed
baptisteArno opened this issue Sep 28, 2023 · 3 comments · Fixed by #1167
Closed

Add function calling params in OpenAI config #863

baptisteArno opened this issue Sep 28, 2023 · 3 comments · Fixed by #1167
Labels
Improvement ⚡ Something that improves existing feature. Quick to implement.

Comments

@baptisteArno
Copy link
Owner

No description provided.

@baptisteArno baptisteArno added the Improvement ⚡ Something that improves existing feature. Quick to implement. label Sep 28, 2023
@vforvilela
Copy link
Contributor

Hey there! I'm in desperate need of this. :D
Right now, I'm cloning the OpenAI block and directly embedding my functions into it to bypass any interface complications.

Is there anything I can do to facilitate the advancement?

@Vinny-growth
Copy link

"I'm also facing the same issue, urgently needing this."

@baptisteArno
Copy link
Owner Author

Can you provide a specific use case for it?

@floux-digital
Copy link

Baptiste, thanks for the great work!

We are working to integrate assistant functions into the bot flow, but we are faced with a lack of this functionality. Currently we can define a function in the Assistant settings on the OpenAI platform, but the response, which must be JSON, is not recognized by typebot and so the conversation flow is interrupted.

We believe there are several ways to handle this, including a proxy using a lick function for the entire conversation flow, but that way we would only be solving our problem and not collaborating with the community.

Therefore, we thought of some hypotheses for this functionality in typebot:

  • The simplest: maintain the function configuration on the OpenAI platform and in the integration settings, when an Assistant is selected, in addition to the treatment for Messages and Thread, also include the functions. Thus, the bot manager could create a step to test whether the response is a function, and if so, run a routine before returning a response to the user.

  • The intermediary: create a middleware block called OpenAI Assistant Functions, which directly evaluates the response to identify whether it is a function. In the settings of this block, the user could define the functions and direct the routines to each of them.

The use case examples are endless, given that the structured responses received can serve as a payload for any type of application, from the simplest ones like creating a To-Do List or filling out a CRM to the most complex ones like managing technology stacks.

baptisteArno added a commit that referenced this issue Jan 18, 2024
baptisteArno added a commit that referenced this issue Jan 19, 2024
Closes #863

Got helped from #1162 for the implementation. Closing it in favor of
this PR.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Enhanced `CodeEditor` with additional properties for better form
control and validation.
- Introduced tools and functions in OpenAI integrations documentation
for custom JavaScript execution.
- Added capability to define and use custom JavaScript functions with
the OpenAI assistant.
- Expanded layout metadata options to include various input types and
languages.

- **Improvements**
- Updated the OpenAI actions to support new function execution features.

- **Documentation**
- Added new sections for tools and functions in the OpenAI integrations
guide.

- **Refactor**
- Refactored components and actions to integrate new features and
improve existing functionalities.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
thercd pushed a commit to thercd/typebot.io that referenced this issue Feb 2, 2024
Closes baptisteArno#863

Got helped from baptisteArno#1162 for the implementation. Closing it in favor of
this PR.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Enhanced `CodeEditor` with additional properties for better form
control and validation.
- Introduced tools and functions in OpenAI integrations documentation
for custom JavaScript execution.
- Added capability to define and use custom JavaScript functions with
the OpenAI assistant.
- Expanded layout metadata options to include various input types and
languages.

- **Improvements**
- Updated the OpenAI actions to support new function execution features.

- **Documentation**
- Added new sections for tools and functions in the OpenAI integrations
guide.

- **Refactor**
- Refactored components and actions to integrate new features and
improve existing functionalities.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement ⚡ Something that improves existing feature. Quick to implement.
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants