neo4j-contrib / neo4j-apoc-procedures

Awesome Procedures On Cypher for Neo4j - codenamed "apoc"                     If you like it, please ★ above ⇧            
https://neo4j.com/labs/apoc
Apache License 2.0
1.72k stars 493 forks source link

Fixes #4156: Improves handling of empty or blank input for openai procedures #4228

Open vga91 opened 1 week ago

vga91 commented 1 week ago

Fixes #4156

Added input validation to prevent unnecessary API calls toOpenAI when the input is empty or null. Introduced a boolean flag to allow configuration of the behaviour:

This change improves efficiency by streamlining the process and giving flexibility in handling empty input.