load1n9 / openai

Unofficial Deno wrapper for the Open Ai api
MIT License
73 stars 23 forks source link

Function example model should be updated #22

Closed rpggio closed 1 year ago

rpggio commented 1 year ago

In the function calling example, the model should be updated to gpt-3.5-turbo-0613.

lino-levan commented 1 year ago

Could you provide more context? The code is working on my end.

rpggio commented 1 year ago

Is a function call response returned, or just a textual response? At the time function calling was released, only the 0613 models included function calling.

Developers can now describe functions to gpt-4-0613 and gpt-3.5-turbo-0613, and have the model intelligently choose to output a JSON object containing arguments to call those functions. This is a new way to more reliably connect GPT's capabilities with external tools and APIs.

lino-levan commented 1 year ago

A function call response is being returned. I believe gpt-3.5-turbo is just an alias for the latest stable version of the model (which would be gpt-3.5.turbo-0613 as of today).

raygao commented 1 year ago

Please find the result running app at: https://comfortable-hawk-99.deno.dev/ Thanks a lot for your support. Appreciate it.