Skip to main content
Glama
models.ts3.21 kB
import type { ModelConfigInfo } from "./types" export const DEFAULT_MODEL_CONFIG = { temperature: 0.2, topP: 0.8, maxTokens: 4000, } export const DEFAULT_THINKING_CONFIG = { temperature: 1, topP: 1.0, maxTokens: 6000, } export const model_config: ModelConfigInfo[] = [ // Gemini models { id: "gemini-2.0-flash", name: "Gemini 2.0 Flash", description: "Google's fast and efficient multimodal AI model.", config: { temperature: 0.4, topP: 0.95, maxTokens: 4000 }, }, { id: "gemini-2.5-flash-preview-05-20", name: "Gemini 2.5 Flash Preview (05-20)", description: "Preview version of Google's advanced multimodal AI model.", config: { temperature: 1, topP: 1, maxTokens: 4000 }, }, { id: "gemini-2.5-pro-preview-06-05", name: "Gemini 2.5 Pro Preview", description: "Preview version of Google's most capable multimodal AI model.", config: { temperature: 1, topP: 1, maxTokens: 4000 }, }, // OpenAI models { id: "gpt-4.1-mini", name: "GPT-4.1 Mini", description: "Smaller, faster version of OpenAI's GPT-4.1 model.", config: { ...DEFAULT_MODEL_CONFIG }, }, { id: "gpt-4.1", name: "GPT-4.1", description: "OpenAI's most advanced large language model.", config: { ...DEFAULT_MODEL_CONFIG }, }, { id: "o3", name: "O3", description: "OpenAI's most advanced large language model.", config: { temperature: 1, topP: 1, maxTokens: 4000 }, }, { id: "o4-mini", name: "O4 Mini", description: "OpenAI's most advanced large language model.", config: { temperature: 1, topP: 1, maxTokens: 4000 }, }, // Anthropic models { id: "claude-3-5-sonnet-latest", name: "Claude Sonnet 3.5 v2", description: "Anthropic's advanced AI assistant focused on helpfulness and safety.", config: { temperature: 1, maxTokens: 4000 }, }, { id: "claude-3-5-sonnet-20240620", name: "Claude 3.5 Sonnet", description: "Anthropic's advanced AI assistant focused on helpfulness and safety.", config: { temperature: 1, maxTokens: 4000 }, }, { id: "claude-3-7-sonnet-latest", name: "Claude 3.7 Sonnet", description: "Anthropic's most capable AI assistant with enhanced reasoning abilities.", config: { temperature: 1, maxTokens: 4000 }, }, { id: "claude-sonnet-4-20250514", name: "Claude 4 Sonnet", description: "Anthropic's next generation of Claude models.", config: { temperature: 1, maxTokens: 4000 }, }, { id: "claude-opus-4-20250514", name: "Claude 4 Opus", description: "Anthropic's next generation of Claude models.", config: { temperature: 1, maxTokens: 4000 }, }, ] export function getModelConfigById(modelId: string): ModelConfigInfo | undefined { return model_config.find((model) => model.id === modelId) } export function getDefaultModelConfig(modelId: string): ModelConfigInfo { const modelConfig = getModelConfigById(modelId) if (modelConfig) { return modelConfig } // Return a default config if model not found return { id: modelId, name: modelId, description: "Model configuration not found", config: { ...DEFAULT_MODEL_CONFIG }, } }

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/myeong-ga/research-agent-mcp-0.36-pro-preview-06-01'

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