appleboy / CodeGPT

A CLI written in Go language that writes git commit messages or do a code review brief for you using ChatGPT AI (gpt-4o, gpt-4-turbo, gpt-3.5-turbo model) and automatically installs a git prepare-commit-msg hook.
MIT License
1.15k stars 100 forks source link

switch FunctionCall to Tools. #156

Closed appleboy closed 2 months ago

appleboy commented 2 months ago
    // Deprecated: use Tools instead.
    Functions []FunctionDefinition `json:"functions,omitempty"`
    // Deprecated: use ToolChoice instead.
    FunctionCall any    `json:"function_call,omitempty"`
    Tools        []Tool `json:"tools,omitempty"`
    // This can be either a string or an ToolChoice object.
    ToolChoice any `json:"tool_choice,omitempty"`