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

Modify the calling method of openai, and use function calling to reduce the size of the first input token. #1145

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

hejianjun
Copy link

@hejianjun hejianjun commented Jan 29, 2024

Updated the interface of openai, refer to.https://cookbook.openai.com/examples/how_to_call_functions_with_chat_models Let ChatGPT actively obtain the data structure of the table
The next step is to add an automatic option to the front-end component of the selection table, which can automatically obtain the database structure to write sql when selecting.
image

@miahemu miahemu changed the title 修改openai的调用方式,使用function calling(函数调用)减少第一次输入的token大小 Modify the calling method of openai, and use function calling to reduce the size of the first input token. Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant