Skip to content

Commit

Permalink
Fix queries empty prompt replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
dschiese committed Sep 16, 2024
1 parent 35d0adf commit ae70431
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public ComposedExplanation composedExplanationForInputData(ComposedExplanationDT

String prompt = genExpService.getInputDataExplanationPrompt(
component,
query,
query == null ? "" : query,
composedExplanationDTO.getGenerativeExplanationRequest().getShots()
);
String gptExplanation = genExpService.sendPrompt(prompt, composedExplanationDTO.getGenerativeExplanationRequest().getGptModel());
Expand Down

0 comments on commit ae70431

Please sign in to comment.