Forge documentation
TypeScript

TypeScript providers

Providers contracts and source references for TypeScript.

ProviderRegistry and registerAnthropicModel, registerOpenAiModel, and registerGoogleModel are exported from core. Registration uses explicit model IDs and installation options. There is no aggregate Anthropic constructor. Keep credentials in the server process; browser delivery requires a separate trusted service.

TypeScript reference

Each reference records the source path, hash and declaration inventory for this language. Start at the import boundary before using a symbol found in a deeper implementation file.

Endpoint and model configuration

Read the provider's current catalog and select a model ID available to your account. Adapters may have configurable default endpoints. No model name in a source fixture is a promise of current provider availability. Test streaming, structured output, tool calls and cancellation separately for the selected provider.

Continue

On this page