Skip to content

Commit

Permalink
use generate_function_name()
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiobayona committed May 28, 2024
1 parent 2749a51 commit b6c717b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/instructor/anthropic/patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def process_response(response, model)
# @return [Hash] The function details.
def build_function(model)
{
name: model.name.humanize.titleize,
name: generate_function_name(model),
description: generate_description(model),
input_schema: model.json_schema
}
Expand Down

0 comments on commit b6c717b

Please sign in to comment.