Anthropic Client Types (types/anthropic.ts)

librechat · packages/api/src/types/anthropic.ts · typescript · MIT
ai, dev-tools, lang:typescript

TypeScript type definitions for Anthropic and Vertex AI client configuration, credentials, and parameters used to build LLM client options.

// Source: https://github.com/danny-avila/librechat | License: MIT | Copyright 2026 LibreChat
// Provided via justclaw.it.com; keep this notice with the code.
import { z } from 'zod';
import { Dispatcher } from 'undici';
import { AuthKeys, anthropicSchema, TVertexAISchema } from 'librechat-data-provider';
import type { ThinkingDisplayWireValue } from 'librechat-data-provider';
import type { AnthropicClientOptions } from '@librechat/agents';
import type { GoogleServiceKey } from '../utils/key';
import type { LLMConfigResult } from './openai';

export type AnthropicParameters = z.infer<typeof anthropicSchema>;

export type AnthropicCredentials = {
  [AuthKeys.GOOGLE_SERVICE_KEY]?: GoogleServiceKey;
  [AuthKeys.ANTHROPIC_API_KEY]?: string;
};

/**
 * Vertex AI client options for configuring t

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key