-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed the "object" type from JSONType and any associated usage, sin…
…ce all my tests reveal that object function parameters are *not* handled appropriately by OpenAI's APIs. Also, completely reworked the parsing of most parameter datatypes to be based on parameter type expectations rather than attempting to infer them from their contents. Through extensive testing of functions with each parameter type, made sure all the datatypes actually work, including big changes to the way arrays work (addition of the "items" information).
- Loading branch information
1 parent
69bdf62
commit dd61c68
Showing
4 changed files
with
66 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,5 @@ public enum JSONType: String, Codable { | |
case boolean | ||
case number | ||
case integer | ||
case object | ||
case array | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters