The gpt-4 plugin is capable of generating new data, such as text, images, audio, and video. What kinds of data it generates depends on the model that backs it. It runs in an auto-managed cloud stack. Steamship handles API Keys, scaling, and asynchronous tasking.
To use it, first create an new instance:
# Create a Steamship client # NOTE: When developing a package, just use `self.client` client = Steamship(workspace="my-unique-name") # Create an instance of this generator generator = client.use_plugin('gpt-4')
Now call generate
on that instance:
# Generate text task = generator.generate(text="This is your prompt text") # Wait for completion of the task. task.wait() # Print the output print(task.output.blocks[0].text)
Now that we've tagged the file, we can query it's contents.
Agents built with the Steamship SDK can be deployed to production-ready APIs with a single command.
The best way to get started is with our Agent Guidebook.