From ee769673e8aabbe312b1bce3521c9c2b47278e8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20Heidekr=C3=BCger?= Date: Mon, 28 Oct 2024 08:49:59 +0100 Subject: [PATCH] Rename local var in `LLMFunctionParameterSchemaCollector.swift` --- .../LLMFunctionParameterSchemaCollector.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/SpeziLLMOpenAI/FunctionCalling/LLMFunctionParameterSchemaCollector.swift b/Sources/SpeziLLMOpenAI/FunctionCalling/LLMFunctionParameterSchemaCollector.swift index 89809f8..ea8fe94 100644 --- a/Sources/SpeziLLMOpenAI/FunctionCalling/LLMFunctionParameterSchemaCollector.swift +++ b/Sources/SpeziLLMOpenAI/FunctionCalling/LLMFunctionParameterSchemaCollector.swift @@ -36,9 +36,9 @@ 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 @@ -46,6 +46,6 @@ extension LLMFunction { } catch { logger.error("Error creating OpenAPIObjectContainer.") } - return ret + return functionParameterSchema } }