Skip to content

Commit 47cd051

Browse files
committed
fix build error
1 parent 95c8e11 commit 47cd051

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

Package.resolved

Lines changed: 21 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sources/FunctionCalling-MacPaw-OpenAI/Extension/ChatQuery+Extension.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ extension ChatQuery.ChatCompletionToolParam.FunctionDefinition {
1919
self.init(
2020
name: tool.name,
2121
description: tool.description,
22-
parameters: AnyJSONSchema(inputSchema: tool.inputSchema)
22+
parameters: JSONSchema(inputSchema: tool.inputSchema)
2323
)
2424
}
2525
}
2626

27-
extension AnyJSONSchema {
27+
extension JSONSchema {
2828
init(inputSchema: InputSchema) {
2929
self.init(fields: [
3030
.type(JSONSchemaInstanceType(type: inputSchema.type)),
31-
.properties(inputSchema.properties?.mapValues { AnyJSONSchema(inputSchema: $0) } ?? [:]),
31+
.properties(inputSchema.properties?.mapValues { JSONSchema(inputSchema: $0) } ?? [:]),
3232
.required(inputSchema.requiredProperties ?? []),
3333
.enumValues(inputSchema.enumValues ?? [])
3434
])

0 commit comments

Comments
 (0)