Chains can be combined with existing Truss models using Stubs. A Stub acts as a substitute (client-side proxy) for a remotely deployed dependency, either a Chainlet or a Truss model. The Stub performs the remote invocations as if it were local by taking care of the transport layer, authentication, data serialization and retries. Stubs can be integrated into Chainlets by passing in a URL of the deployed model. They also requireDocumentation Index
Fetch the complete documentation index at: https://docs.baseten.co/llms.txt
Use this file to discover all available pages before exploring further.
context to be initialized
(for authentication).
- Input as JSON dict (like above) or pydantic model.
- Automatic parsing of the response into an pydantic model using the
output_modelargument. predict_async(recommended) orpredict_sync.- Streaming responses using
predict_async_streamwhich returns an async bytes iterator. - Customized with
RPCOptions.