Skip to content

[REQ] migrate to tools api #113

@sozercan

Description

@sozercan

What kind of request is this?

Other

What is your request or suggestion?

// TODO: migrate to tools api
req.Functions = []openai.FunctionDefinition{ // nolint:staticcheck
findSchemaNames,
getSchema,
}
req.FunctionCall = fnCallType // nolint:staticcheck

https://github.com/sashabaranov/go-openai/blob/38b16a3c413a3ea076cf4082ea5cd1754b72c70f/chat.go#L212-L215

https://platform.openai.com/docs/guides/function-calling

Are you willing to submit PRs to contribute to this feature request?

  • Yes, I am willing to implement it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions