This is an automated email from the ASF dual-hosted git repository.

nferraro pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 23d2f2aa93181c0c9e2789cb13650b4ebd4ed3de
Author: nicolaferraro <ni.ferr...@gmail.com>
AuthorDate: Fri Apr 23 12:55:21 2021 +0200

    openai: fix content type
---
 openai-completion-action.kamelet.yaml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/openai-completion-action.kamelet.yaml 
b/openai-completion-action.kamelet.yaml
index 66839e2..16bdbf3 100755
--- a/openai-completion-action.kamelet.yaml
+++ b/openai-completion-action.kamelet.yaml
@@ -76,3 +76,6 @@ spec:
             steps:
             - transform:
                 jsonpath: "$.choices[0].text"
+            - set-header:
+                name: "Content-Type"
+                constant: "text/plain"

Reply via email to