chatGPT for Tweet replies / base tweets / DMs

Twitterdub Video tutorials
Post Reply
User avatar
martin@rootjazz
Site Admin
Posts: 34627
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

chatGPT for Tweet replies / base tweets / DMs

Post by martin@rootjazz »

TOOLS > SETTINGS > CHATGPT > API
Set your API key


TOOLS > SETTINGS > CHATGPT > MODEL
Set your model, otherwise default is: ext-davinci-003




TOOLS > SETTINGS > CHATGPT > Prompt
Set your Prompt, otherwise default is: reply to this comment



TOOLS > SETTINGS > CHATGPT > Max Tokens
Set your Max Tokens, otherwise default is: 64



TOOLS > SETTINGS > CHATGPT > top_p
Set your top_p, otherwise default is: 1


TOOLS > SETTINGS > CHATGPT > temperature
Set your temperature, otherwise default is: 1

TOOLS > SETTINGS > CHATGPT > Custom URL
Set your custom URL otherwise default is: https://api.openai.com/v1/completions


TOOLS > SETTINGS > CHATGPT > JSON payloa
Set your custom JSON payload with tokens:

Code: Select all

#maxtokens#
#top_p#
#temperature#
#model#
#body#
example::

Code: Select all

{"top_p":"#top_p#,"temperature":#temperature#,"max_tokens":#maxtokens#,"model":"#model#","prompt","#body#"}


Then in your reply text use the token:

Code: Select all

#chatgpt#
The tweet you are replying to, has it's text sent to chatgpt and the response is replaced in your text replacing the token #chatgpt#




If you want to use a custom model and or custom API or custom prompt per reply set these via tokens

Code: Select all

#chatgpttemperature_<temperature>#
#chatgpturl_<url>#
#chatgpttop_p_<top_p>#
#chatgptapi_<apikey>#
#chatgptmaxtokens_<max_tokens>#
#chatgptprompt_reply to this comment like a teenage girl who uses lots of emojis and hashtags#
#chatgptjson_<path_to_template_file>#

Note :#chatgptjson_<path_to_template_file># allows you to specify the template file that will contain the JSON payload, it's not the payload itself


where:
<max_tokens> is a number - default is 64

You will still need the #chatgpt# token which is used as the replacement location




So an example twitterdub reply would be using custom data

#chatgpttemperature_0.5# #chatgptmodel_rootjazzmodel# #chatgptprompt_reply to this comment like a grumpy programmer# #chatgpt# lol {:-)|:-D|;-)} #date#


#chatgpttop_p_0.5# #chatgptprompt_reply to this comment like a teenage girl with lots of emojis# #chatgpt# lol {:-)|:-D|;-)} #date#

If you are using ChatGPT for base tweets, or DMs, then it's reliant on you to have a good quality global or custom prompt to allow chatGPT to come up with the text.


Custom JSON template file
#chatgptjson_c:\path\to\templates.txt# using a custom payload
Where the file:c:\path\to\templates.txt is an actual file on your machine with valid JSON post payload template

example file

Code: Select all

{"top_p":"#top_p#,"temperature":#temperature#,"max_tokens":#maxtokens#,"model":"#model#","prompt","#body#"}



Regards,
Martin
User avatar
martin@rootjazz
Site Admin
Posts: 34627
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Re: chatGPT for Tweet replies / base tweets / DMs

Post by martin@rootjazz »

Action specify prompts can be set via the Custom ChatGPT button on the UI tabs, then specifying the inputs in the multi line text box with format:

command:value

Code: Select all

maxtokens:64
top_p:0.5 
prompt:reply to this like a grumpy programmer
temperature:0.7 
Just include the action specific values you want to use.
any empty values / invalid value will be ignored

Code: Select all

api: 
customurl: 
model:
maxtokens:64
top_p:0.5 
prompt:reply to this like a grumpy programmer
temperature:0.7
json:
this is the same as the above, just with the other values



full options:

Code: Select all

api:
maxtokens:
customurl:
top_p:
model:
prompt:
temperature:
json:
User avatar
martin@rootjazz
Site Admin
Posts: 34627
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Re: chatGPT for Tweet replies / base tweets / DMs

Post by martin@rootjazz »

Probably this becomes a custom modules at some point, just giving warning
User avatar
martin@rootjazz
Site Admin
Posts: 34627
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Re: chatGPT for Tweet replies / base tweets / DMs

Post by martin@rootjazz »

https://rootjazz.com/twitterdub/updatetesting.html


all chatgpt features available to all for testing before going custom purchase
Post Reply