Skip to content

Commit

Permalink
Merge pull request #284 from samimejri/bug-283
Browse files Browse the repository at this point in the history
bug-283 Use stax-api newInstance() instead of newFactory() for Android compat…
  • Loading branch information
karianna authored Feb 16, 2025
2 parents 08eaf07 + 5d6d8d0 commit b08fdf0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ private static <T> ChatPromptParseVisitor<T> getFunctionDefinitions(String promp
// </function>

try (InputStream is = new ByteArrayInputStream(prompt.getBytes(StandardCharsets.UTF_8))) {
XMLInputFactory factory = XMLInputFactory.newFactory();
XMLInputFactory factory = XMLInputFactory.newInstance();
XMLEventReader reader = factory.createXMLEventReader(is);
FunctionDefinition functionDefinition = null;
Map<String, String> parameters = new HashMap<>();
Expand Down

0 comments on commit b08fdf0

Please sign in to comment.