Skip to content

steamship-core/gpt4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAI GPT-4 Plugin for Steamship

This plugin provides access to OpenAI's GPT-4 language model for text generation.

Usage

Use of this plugin is subject to OpenAI's Terms of Use.

Examples

Basic

gpt4 = steamship.use_plugin("gpt-4")
task = gpt4.generate(text=prompt)
task.wait()
for block in task.output.blocks:
    print(block.text)

With Runtime Parameters

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)

Cost

Pricing page

Developing this Plugin

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

Releases

No releases published

Packages

No packages published

Languages