fofr/star-trek-adventure

  • Public
  • 153 runs

Run star-trek-adventure with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

Input schema

The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.

Field Type Default value Description
prompt
string
Input Prompt.
max_length
integer
500

Min: 1

Maximum number of tokens to generate. A word is generally 2-3 tokens
decoding
string (enum)
top_p

Options:

top_p, top_k

Choose a decoding method
top_k
integer
50
Valid if you choose top_k decoding. The number of highest probability vocabulary tokens to keep for top-k-filtering
top_p
number
1

Min: 0.01

Max: 1

Valid if you choose top_p decoding. When decoding text, samples from the top p percentage of most likely tokens; lower to ignore less likely tokens
temperature
number
0.75

Min: 0.01

Max: 5

Adjusts randomness of outputs, greater than 1 is random and 0 is deterministic, 0.75 is a good starting value.
repetition_penalty
number
1.2

Min: 0.01

Max: 5

Penalty for repeated words in generated text; 1 is no penalty, values greater than 1 discourage repetition, less than 1 encourage it.

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{'items': {'type': 'string'},
 'title': 'Output',
 'type': 'array',
 'x-cog-array-display': 'concatenate',
 'x-cog-array-type': 'iterator'}
Example API response
View prediction
['<universe>',
 ' <start>',
 '<decision0>',
 '<options>',
 '<option1>',
 ' You',
 ' are',
 ' Ensign',
 ' Beckett',
 ' Mariner.',
 ' You',
 ' have',
 ' been',
 ' asked',
 ' to',
 ' investigate',
 ' the',
 ' disappearance',
 ' of',
 ' a',
 ' Starfleet',
 ' officer',
 ' from',
 ' an',
 ' alien',
 ' planet.</option1>',
 '<option2>',
 " You're",
 ' Captain',
 ' Jonathan',
 ' Archer,',
 ' and',
 ' you',
 ' want',
 ' to',
 ' send',
 ' your',
 ' first',
 ' officer',
 ' aboard',
 ' the',
 ' USS',
 ' Enterprise-D',
 ' for',
 ' further',
 ' investigation',
 ' into',
 ' whether',
 ' or',
 ' not',
 " there's",
 ' any',
 ' truth',
 ' behind',
 " Sato's",
 ' claims',
 ' about',
 ' aliens',
 ' being',
 ' present',
 ' on',
 ' New',
 ' Xidoron.',
 ' </option2>',
 '</options>',
 '<choice0>',
 ' option1',
 ' </choice0>',
 '</decision0>',
 '</start>',
 '<scene1>',
 '<context>',
 ' You',
 ' have',
 ' chosen',
 ' to',
 ' be',
 ' Ensign',
 ' Beckett',
 ' Mariner.',
 ' [episode',
 " context]You've",
 ' arrived',
 ' at',
 ' New',
 ' Xidoron',
 ' and',
 ' discovered',
 ' that',
 ' one',
 ' of',
 ' its',
 ' inhabitants',
 ' believes',
 ' they',
 ' were',
 ' abducted',
 ' by',
 ' aliens',
 ' in',
 ' the',
 ' past.</context>',
 '<desc>',
 ' Upon',
 ' arriving',
 ' at',
 ' New',
 ' Xidoron,',
 ' you',
 ' meet',
 ' with',
 " T'Pring",
 ' who',
 ' tells',
 ' you',
 ' about',
 ' her',
 ' experience',
 ' as',
 ' a',
 ' slave',
 ' on',
 ' Vulcan',
 ' when',
 ' she',
 ' was',
 ' kidnapped',
 ' by',
 ' Vulcans',
 ' during',
 ' their',
 ' war',
 ' against',
 ' Andoria.',
 ' She',
 ' asks',
 ' if',
 ' it',
 ' is',
 ' possible',
 ' for',
 ' this',
 ' abduction',
 ' to',
 ' happen',
 ' again.',
 ' You',
 ' then',
 ' head',
 ' down',
 ' to',
 ' the',
 ' surface',
 ' where',
 ' two',
 ' villagers',
 ' claim',
 ' to',
 ' have',
 ' heard',
 ' strange',
 ' voices',
 ' coming',
 ' out',
 ' of',
 ' nowhere',
 ' and',
 ' disappearing',
 ' before',
 ' their',
 ' eyes',
 ' after',
 ' experiencing',
 ' some',
 ' kind',
 ' of',
 ' event',
 ' similar',
 ' to',
 ' what',
 ' happened',
 ' to',
 ' Vulcans',
 ' during',
 ' the',
 ' Andorian',
 ' War.',
 ' Meanwhile,',
 " T'Pol",
 ' detects',
 ' a',
 ' low-level',
 ' warp',
 ' signature',
 ' emanating',
 ' from',
 ' the',
 ' area',
 ' but',
 " can't",
 ' identify',
 ' anything',
 ' specific',
 ' yet.',
 ' The',
 ' three',
 ' of',
 ' them',
 ' go',
 ' back',
 ' up',
 ' to',
 ' the',
 ' ship',
 ' while',
 ' Nol-Enlir',
 ' takes',
 ' over',
 ' running',
 ' things',
 ' on',
 ' the',
 ' ground.',
 ' Once',
 ' inside',
 ' the',
 ' shuttlepod,',
 ' you',
 ' tell',
 ' Worf',
 ' how',
 ' she',
 ' feels,',
 ' and',
 ' he',
 ' agrees',
 ' with',
 ' what',
 ' she',
 ' says,',
 ' noting',
 ' that',
 ' all',
 ' humans',
 ' feel',
 ' like',
 ' this',
 ' once',
 ' in',
 ' their',
 ' lives.',
 ' Later,',
 " T'Pring",
 ' confides',
 ' in',
 ' you',
 ' about',
 ' finding',
 ' love',
 ' among',
 ' the',
 ' Klingons',
 ' and',
 ' confesses',
 ' that',
 ' she',
 ' still',
 ' has',
 ' feelings',
 ' for',
 ' Duras.',
 ' Do',
 ' you',
 ' think',
 ' she',
 ' should',
 ' stay',
 ' on',
 ' board',
 ' the',
 ' Enterprise?</desc>',
 '<decision1>',
 '<options>',
 '<option1>',
 ' Encourage',
 " T'Prings",
 ' to',
 ' remain',
 ' on',
 ' board',
 ' and',
 ' help',
 ' provide',
 ' security',
 ' while',
 ' investigating',
 ' the',
 ' disappearance',
 ' of',
 ' Lt',
 ' Commander',
 ' Tucker.',
 ' </option1>',
 '<option2>',
 ' Tell',
 " T'Prins",
 ' she',
 ' cannot',
 ' stay',
 ' longer',
 ' due',
 ' to',
 ' strict',
 ' orders',
 ' and',
 ' let',
 ' her',
 ' return',
 ' home.',
 ' </option2>',
 '</options>',
 '<']