MCPcopy Create free account

hub / github.com/bkane1/gpt3-instruct-sandbox / functions

Functions21 in github.com/bkane1/gpt3-instruct-sandbox

↓ 2 callersMethodget_id
Returns the unique ID of the example.
api/gpt.py:29
↓ 2 callersMethodget_input
Returns the input of the example.
api/gpt.py:21
↓ 2 callersMethodget_output
Returns the intended output of the example.
api/gpt.py:25
↓ 1 callersMethodas_dict
(self)
api/gpt.py:33
↓ 1 callersMethodcraft_query
Creates the query for the API request.
api/gpt.py:112
↓ 1 callersMethodformat_example
Formats the input, output pair.
api/gpt.py:138
↓ 1 callersMethodget_engine
Returns the engine specified for the API.
api/gpt.py:100
↓ 1 callersMethodget_instruction_text
Formats instruction text to prime the model
api/gpt.py:96
↓ 1 callersMethodget_max_tokens
Returns the max tokens specified for the API.
api/gpt.py:108
↓ 1 callersMethodget_prime_text
Formats all examples to prime the model.
api/gpt.py:91
↓ 1 callersMethodget_temperature
Returns the temperature specified for the API.
api/gpt.py:104
↓ 1 callersMethodsubmit_request
Calls the OpenAI API with the specified parameters.
api/gpt.py:121
Method__init__
(self, inp, out)
api/gpt.py:16
Method__init__
(self, engine='instruct-davinci-beta', temperature=0.3, max
api/gpt.py:45
Methodadd_example
Adds an example to the object. Example must be an instance of the Example class.
api/gpt.py:70
Methodadd_instruction
Adds an instruction to the object.
api/gpt.py:66
Methoddelete_example
Delete example with the specific id.
api/gpt.py:78
Methodget_all_examples
Returns all examples as a list of dicts.
api/gpt.py:87
Methodget_example
Get a single example.
api/gpt.py:83
Methodget_top_reply
Obtains the best result as returned by the API.
api/gpt.py:133
Functionset_openai_key
Sets OpenAI key.
api/gpt.py:9