Skip to content

The best overload for 'ChatRequest' does not have a parameter named 'functions' #291

Answered by StephenHodgson
Velocedge asked this question in Q&A
Discussion options

You must be logged in to vote

Functions were deprecated by OpenAI in favor of tools.

You can simply wrap your functions into a new list of Tools:

                var tools = new List<Tool>
                {
                new Function(
                    "CategoryIdentification",
                    "Identify a specific category that best described the type of question that was just created from text.",
                     new JsonObject
                     {
                         ["type"] = "object",
                         ["properties"] = new JsonObject
                         {
                            ["categoryText"] = new JsonObject
                            {
                                ["type"]

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ADefWebserver
Comment options

@Velocedge
Comment options

@StephenHodgson
Comment options

Answer selected by StephenHodgson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
3 participants
Converted from issue

This discussion was converted from issue #290 on April 30, 2024 12:28.