#PYTHON API - How do i add a parameter for the preset "Q&A"

17 messages · Page 1 of 1 (latest)

wary osprey
#

These here are my parameters however i don't know how to add the answers to be based on this preset Q&A:

engine='text-davinci-003',  # Determines the quality, speed, and cost.
temperature=0.5,  # Level of creativity in the response
prompt=user_text,  # What the user typed in
max_tokens=400,  # Maximum tokens in the prompt AND response
n=1,  # The number of completions to generate
stop=None,  # An optional setting to control response generation
#

Hello @weak marlin

weak marlin
#

You wish to create a way to access the playground models with those parameters effectively working as key variables, yes?

wary osprey
#

yeah !

#

i dont know if they are called models or presets but yeah

weak marlin
#

I think I've already made something similar to what you're looking for, once I'm home from University I'll take a look

wary osprey
#

ohh when will that happen ?

#

sorry i just need to know

weak marlin
#

Maybe in a couple of hours, I'll try to hurry but I can't make time go by faster unfortunately

wary osprey
#

alright okay , i will be wiating

pulsar pendant
#

set the prompt format

#

so it responds the same way

#
Q: your prompt
A:
#

so your prompt would be replaced with whatever you want it to respond to

#

and then you set that as .prompt

#

and it'll respond