typo fix
Some checks failed
Docker Build and Push / build-and-push (push) Failing after 12s
Tests / test (bash) (push) Failing after 17s
Tests / test (zsh) (push) Failing after 16s
Tests / lint (push) Successful in 9s
Tests / docker (push) Successful in 7s

This commit is contained in:
2025-12-02 11:40:38 +01:00
parent c6e5f14433
commit ac343050a8

View File

@@ -319,7 +319,8 @@ openai_completion() {
done < <(echo "$response_body") done < <(echo "$response_body")
# Store accumulated content as response_body for later processing # Store accumulated content as response_body for later processing
response_body="{\"choices\":[{\"message\":{\"content\":\"$stream_content\"}}]}" # Use jq to properly escape the content string
response_body=$(jq -n --arg content "$stream_content" '{choices: [{message: {content: $content}}]}')
rm -f "$temp_file" rm -f "$temp_file"
else else
# Non-streaming mode (original behavior) # Non-streaming mode (original behavior)