Focus.AI Labs / Artifact Field Notes Official Documentation
Fast browse / jump off / source-grounded
Official Documentation

Model registry

Core model/provider registry implementation

Origin
seed-list
Extensibility
standalone
Primary interface
unknown

What this artifact is for

The quick orientation layer before you go deeper upstream.

Profile

Summary

Core model/provider registry implementation

Seed description: Core model/provider registry implementation

Category: Official Documentation

Best for: Not yet synthesized.

Signals

How to read this page

Workflow tags: none captured

Integrations: none captured

Caveats: No caveats captured yet

Maturity: No maturity signals captured

Source excerpt

More of the actual upstream surface so you can skim here before deciding to open the repo.

Upstream skim
No upstream prose excerpt was captured yet for this artifact.

Preview source: captured upstream text ↗

What shows up in the source

Quick topics

No clear heading structure was captured from the upstream surface.

Skim bullets

No additional structured notes were captured for this artifact yet.
/**
 * Model registry - manages built-in and custom models, provides API key resolution.
 */

import {
	type AnthropicMessagesCompat,
	type Api,
	type AssistantMessageEventStream,
	type Context,
	getModels,
	getProviders,
	type KnownProvider,
	type Model,
	type OAuthProviderInterface,
	type OpenAICompletionsCompat,
	type OpenAIResponsesCompat,
	registerApiProvider,
	resetApiProviders,
	type SimpleStreamOptions,
} from "@mariozechner/pi-ai";
import { registerOAuthProvider, resetOAuthProviders } from "@mariozechner/pi-ai/oauth";
import { existsSync, readFileSync } from "fs";
import { join } from "path";
import { type Static, Type } from "typebox";
import { Compile } from "typebox/compile";
import type { TLocalizedValidationError } from "typebox/error";
import { getAgentDir } from "../config.js";
import type { AuthStatus, AuthStorage } from "./auth-storage.js";

Sources and provenance

Everything on this page should be traceable back to the list seed or an upstream surface.

Provenance

Discovery reason: Listed in the awesome-pi-agent README

Discovered from: seed artifact

Claim confidence: medium

Surface capture kind: blob-code