Skip to main content
Glama
types.ts1.05 kB
export type ProviderType = "openai" | "openrouter"; export interface ModelConfig { id: string; modelName: string; baseUrl: string; apiKey: string; provider?: ProviderType; } export type LogLevel = "debug" | "info" | "warn" | "error"; export interface ServerConfig { models: ModelConfig[]; truncateLimit?: number; httpPort: number; logLevel: LogLevel; } export interface ChatMessage { role: "user" | "assistant"; content: string; } export interface ConversationState { id: string; modelId: string; messages: ChatMessage[]; createdAt: number; updatedAt: number; } export interface ChatRequest { message: string; conversationId?: string; modelId?: string; reasoning?: boolean; } export interface ChatResponse { conversationId: string; response: string; reasoning?: string; modelId: string; } export interface ConversationHistoryResponse { conversationId: string; modelId: string; messages: ChatMessage[]; } export interface ModelInfo { id: string; modelName: string; baseUrl: string; }

Implementation Reference

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/danielwpz/polybrain-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server