Skip to content

Commit

Permalink
Rename local var in LLMFunctionParameterSchemaCollector.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhdk committed Oct 28, 2024
1 parent ecd470f commit ee76967
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ extension LLMFunction {

let properties = schemaValueCollectors.compactMapValues { $0.schema }

var ret: LLMFunctionParameterSchema = .init()
var functionParameterSchema: LLMFunctionParameterSchema = .init()
do {
ret.additionalProperties = try .init(unvalidatedValue: [
functionParameterSchema.additionalProperties = try .init(unvalidatedValue: [
"type": "object",
"properties": properties.mapValues { $0.value },
"required": requiredPropertyNames
])
} catch {
logger.error("Error creating OpenAPIObjectContainer.")
}
return ret
return functionParameterSchema
}
}

0 comments on commit ee76967

Please sign in to comment.