Skip to content

Commit c74a50b

Browse files
committed
Update
1 parent 14c8d07 commit c74a50b

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

Tool/Sources/OpenAIService/FucntionCall/ChatGPTFunction.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,19 @@ public extension ChatGPTArgumentsCollectingFunction {
8080
assertionFailure("This function is only used to get a structured output from the bot.")
8181
return ""
8282
}
83+
84+
@available(
85+
*,
86+
deprecated,
87+
message: "This function is only used to get a structured output from the bot."
88+
)
89+
func call(
90+
argumentsJsonString: String,
91+
reportProgress: @escaping ReportProgress
92+
) async throws -> Result {
93+
assertionFailure("This function is only used to get a structured output from the bot.")
94+
return ""
95+
}
8396
}
8497

8598
struct ChatGPTFunctionSchema: Codable, Equatable {

0 commit comments

Comments
 (0)