examples/

directory
v1.191.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2026 License: BSD-3-Clause, MIT

Directories

Path Synopsis
agent-inference
chat-completion command
Command chat-completion runs a non-streaming chat completion against a DigitalOcean Agent Inference endpoint.
Command chat-completion runs a non-streaming chat completion against a DigitalOcean Agent Inference endpoint.
serverless-inference
chat-completion command
Command chat-completion runs a non-streaming chat completion via the Serverless Inference API.
Command chat-completion runs a non-streaming chat completion via the Serverless Inference API.
chat-completion-streaming command
Command chat-completion-streaming streams a chat completion via the Serverless Inference API.
Command chat-completion-streaming streams a chat completion via the Serverless Inference API.
embeddings command
Command embeddings creates embedding vectors via the Serverless Inference API.
Command embeddings creates embedding vectors via the Serverless Inference API.
image-generation command
Command image-generation generates a single image via the Serverless Inference API and writes it to image.png.
Command image-generation generates a single image via the Serverless Inference API and writes it to image.png.
image-streaming command
Command image-streaming streams partial-image events via the Serverless Inference API.
Command image-streaming streams partial-image events via the Serverless Inference API.
list-models command
Command list-models lists the models reachable through the Serverless Inference API.
Command list-models lists the models reachable through the Serverless Inference API.
messages command
Command messages sends a non-streaming message via the Anthropic-compatible /v1/messages endpoint of the Serverless Inference API.
Command messages sends a non-streaming message via the Anthropic-compatible /v1/messages endpoint of the Serverless Inference API.
messages-streaming command
Command messages-streaming streams an Anthropic-style message from the Serverless Inference /v1/messages endpoint.
Command messages-streaming streams an Anthropic-style message from the Serverless Inference /v1/messages endpoint.
responses command
Command responses runs a non-streaming /v1/responses call via the Serverless Inference API.
Command responses runs a non-streaming /v1/responses call via the Serverless Inference API.
responses-streaming command
Command responses-streaming streams a /v1/responses call via the Serverless Inference API.
Command responses-streaming streams a /v1/responses call via the Serverless Inference API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL