Upgrading from the octoai-sdk
Uninstall octoai-sdk
Upgrading your code
The various OctoAI APIs are now accessable from a single client:
Image Generation API changes
In the octoai.image_gen
API instead of specifying which
engine to use, use the corresponding generate_*
method.
Text Generation API changes
The text generation models with octoai.text_gen
API are now specified with a str
model name instead of an enum
.
Streaming requests are made with the corresponding octoai.text_gen.*_stream
method.
Asset Library (Asset Orchestrator) API changes
The Asset Orchestrator has been renamed to Asset Library and can be accessed via octoai.asset_library
. Assets can be created with the octoai.asset_lirbary.create_from_file
.
octoai.service
API changes
The octoai.service
API has been removed. You can make inferences to compute service endpoints via OctoAI
client:
However you will need to continue to use the older octoai-sdk
for the full octoai.service
API which includes service authoring.