new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

AI SDK · Providers · all subjects

deepinfra/setup

4 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

DeepInfra custom provider instance creation

A customized DeepInfra provider instance can be created by importing createDeepInfra from @ai-sdk/deepinfra and calling it with configuration settings.

DeepInfra provider module installation

The DeepInfra provider is available via the @ai-sdk/deepinfra module and can be installed as a package dependency.

DeepInfra default provider instance import

The default provider instance 'deepInfra' can be imported from @ai-sdk/deepinfra.

DeepInfra provider configuration options

DeepInfra provider configuration supports the following optional settings: baseURL (string, default https://api.deepinfra.com/v1, used as URL prefix for API calls), apiKey (string, sent via Authorization header, defaults to DEEPINFRA_API_KEY environment variable), headers (Record<string,string>, custom headers for requests), and fetch (custom fetch implementation, defaults to global fetch function). Language models and embeddings use OpenAI-compatible endpoints at {baseURL}/openai, while image models use {baseURL}/inference.

Give your agent this brain