hashbrown

ProvideHashbrownOptions

Hashbrown must be configured with a base URL, and may optionally include middleware and a flag to emulate structured output.

API

baseUrl
string

The base URL of the Hashbrown API.

emulateStructuredOutput
boolean

Whether to emulate structured output. Useful for models that don't support tool calling with structured outputs enabled. When set to true, Hashbrown silently adds an "output" tool to the the list of tools the model can call, and then handles the arguments to the tool call as if the model has produced it via structured outputs.

middleware
Chat.Middleware[]

Middleware to apply to all requests.