This plugin provides access to OpenAI's GPT-4 language model for text generation.
Use of this plugin is subject to OpenAI's Terms of Use.
gpt4 = steamship.use_plugin("gpt-4")
task = gpt4.generate(text=prompt)
task.wait()
for block in task.output.blocks:
print(block.text)
gpt4 = steamship.use_plugin("gpt-4")
task = gpt4.generate(text=prompt, options={"stop": ["6", "7"]})
task.wait()
for block in task.output.blocks:
print(block.text)
Clone this repository, then set up a Python virtual environment with:
python -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txt
python -m pip install -r requirements.dev.txt