-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: remove slack from openai sample (#83)
The sample uses a URL parameter for input, which simplifies the implementation but might not be realistic for more complex prompts. I have two options for addressing this: - **Option 1**: Document the current approach, informing users of its limitations with URL parameters for input. - **Option 2**: Rewrite the sample to accept input through the request body, which would introduce slightly more complexity but offer greater flexibility. Additionally, I’ve adjusted how user input influences the prompt. Previously, with the URL parameter approach, the input wasn’t impacting ChatGPT’s responses as expected. Now, users can directly enter their own prompt and see its effect on the output more clearly. If we switch to using a JSON body, we might be able to revert to the previous method of prompting ChatGPT, as longer inputs could have a more noticeable impact. --------- Co-authored-by: Daniel Abraham <[email protected]>
- Loading branch information
1 parent
e746549
commit f0ad092
Showing
3 changed files
with
43 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters