Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bkane1/gpt3-instruct-sandbox
/ functions
Functions
21 in github.com/bkane1/gpt3-instruct-sandbox
⨍
Functions
21
◇
Types & classes
2
↓ 2 callers
Method
get_id
Returns the unique ID of the example.
api/gpt.py:29
↓ 2 callers
Method
get_input
Returns the input of the example.
api/gpt.py:21
↓ 2 callers
Method
get_output
Returns the intended output of the example.
api/gpt.py:25
↓ 1 callers
Method
as_dict
(self)
api/gpt.py:33
↓ 1 callers
Method
craft_query
Creates the query for the API request.
api/gpt.py:112
↓ 1 callers
Method
format_example
Formats the input, output pair.
api/gpt.py:138
↓ 1 callers
Method
get_engine
Returns the engine specified for the API.
api/gpt.py:100
↓ 1 callers
Method
get_instruction_text
Formats instruction text to prime the model
api/gpt.py:96
↓ 1 callers
Method
get_max_tokens
Returns the max tokens specified for the API.
api/gpt.py:108
↓ 1 callers
Method
get_prime_text
Formats all examples to prime the model.
api/gpt.py:91
↓ 1 callers
Method
get_temperature
Returns the temperature specified for the API.
api/gpt.py:104
↓ 1 callers
Method
submit_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
Method
add_example
Adds an example to the object. Example must be an instance of the Example class.
api/gpt.py:70
Method
add_instruction
Adds an instruction to the object.
api/gpt.py:66
Method
delete_example
Delete example with the specific id.
api/gpt.py:78
Method
get_all_examples
Returns all examples as a list of dicts.
api/gpt.py:87
Method
get_example
Get a single example.
api/gpt.py:83
Method
get_top_reply
Obtains the best result as returned by the API.
api/gpt.py:133
Function
set_openai_key
Sets OpenAI key.
api/gpt.py:9