JohannLai / openai-function-calling-tools

🛠 openai function calling tools for JS/TS
MIT License
280 stars 24 forks source link

Export Tool type and let user create more tools #9

Closed wizd closed 1 year ago

wizd commented 1 year ago

export Tool and make it async. then we can replace Langchainjs, loooool

JohannLai commented 1 year ago

got it! Great idea!I hope I can get your pull request 😻

wizd commented 1 year ago

are you kidding me? I just added this to the index.ts:

export { Tool } from './tools/tool';

btw, I feel so blessed when I can replace the dumb ugly langchainjs.

JohannLai commented 1 year ago

Haha, yes, no kidding, I want you to be a collaborator on this project @wizd

JohannLai commented 1 year ago

let's make more tools !

wizd commented 1 year ago

Haha, yes, no kidding, I want you to be a collaborator on this project @wizd

Sure! I'm highly interested in enabling AI to automatically call any API. I noticed that you have already made great progress with the createAIPlugin. Is it complete? Having something similar to https://python.langchain.com/docs/modules/chains/additional/openapi_openai would make this project unbeatable.

JohannLai commented 1 year ago

This is very interesting, I've debugged this open api feature before but it's not ideal. Need your help !

But I implemented a feature like this later, which is similar! I could even use the open ai ChatGPT plugin!

https://github.com/JohannLai/openai-function-calling-tools/blob/main/tools/aiplugin.test.ts

JohannLai commented 1 year ago

Take a look at the message above when you have time.

wizd commented 1 year ago

Apologies, my mistake. I didn't think such a short code could handle such a heavy workload. I'll try to intergrate some 3rd party API to my work later.

JohannLai commented 1 year ago

Where is your project repo url? Let us study it. @wizd

wizd commented 1 year ago

I am currently working on a project that involves creating numerous Apps using the 0613 model and this repository. Unfortunately, it has not been published yet.

Have you had a chance to review the TypeChat project? I believe the combination of TypeChat with this repo would be interesting. You can find more information about it here.

JohannLai commented 1 year ago

Wow, this TypeChat is very interesting, I just discovered it yesterday, I'm going to research it, it's awesome!

JohannLai commented 1 year ago

Do you have any social media accounts that can be used to contact? would like to have some communication with you regarding the development of this project.

@wizd

wizd commented 1 year ago

Do you have any social media accounts that can be used to contact? would like to have some communication with you regarding the development of this project.

@wizd

sure! feel free to contact me wechat id wizardm