diff --git a/lib/instructor/anthropic/patch.rb b/lib/instructor/anthropic/patch.rb index 4884121..1b6f064 100644 --- a/lib/instructor/anthropic/patch.rb +++ b/lib/instructor/anthropic/patch.rb @@ -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 }