Editing
How to optimize your OpenAI API token usage
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Constraining Bot Responses to Predefined Options === While it's acceptable to pose open-ended questions to explore the capabilities of ChatGPT, keep in mind that such questions can lead to longer, more creative responses that might increase costs. To achieve concise and cost-effective answers, (1) consider refining your question by providing specific and limited options for the AI to select from. (2) if not applicable, respond with N/A. This prevents responses with text outside the options. For example, when analyzing news articles to find key technology-related news summaries, if we don't predefine how the AI should respond when no relevant information is found, the AI might respond with variations like: * NA * None * No major technology news today * No major technology news reports today * Due to lack of news content, unable to provide technology news summary This variation in responses which not only uses additional tokens but also increases the effort needed for subsequent data cleaning. For example: * Initial question for exploration: <pre> Please offer five keywords for the following articles: ``` Long text ``` </pre> * Refined question: <pre> Please select one of the following keywords: keyword1, keyword2, keyword3, keyword4, keyword5, for the subsequent articles: ``` Long text ``` </pre>
Summary:
Please note that all contributions to LemonWiki共筆 are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
LemonWiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Current events
Recent changes
Random page
Help
Categories
Tools
What links here
Related changes
Special pages
Page information