Pil0tXia commented on PR #4817:
URL: https://github.com/apache/eventmesh/pull/4817#issuecomment-2041526552

   I came up with a way that allows users to specify whether or not to use 
prompts:
   
   
![ChatGPT-Source-Connector_prompts_v2](https://github.com/apache/eventmesh/assets/41445332/e83b4ff1-e6ce-4c11-9f84-4bc7b33e3c06)
   
   Users can indicate in the request parameters of the Web API whether they 
want to use predefined prompts templates and which template to use.
   
   The ChatGPT source connector needs to check if the returned result from 
ChatGPT, when prompts templates are enabled by the user, is in the correct JSON 
format. If not, the entire result will be wrapped in a CloudEvent. However, 
this checking process may not save much performance overhead compared to 
deserialization. By not relying on the JSON format generated by ChatGPT, more 
stable results can be obtained.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to