Skip to main content
Glama
by microsoft
llms.test.ts1.1 kB
import { describe, test, beforeEach } from "node:test" import assert from "node:assert/strict" import { defaultModelConfigurations } from "./llms" import { TestHost } from "./testhost" import { LARGE_MODEL_ID, SMALL_MODEL_ID, VISION_MODEL_ID } from "./constants" describe("defaultModelConfigurations", () => { beforeEach(async () => { TestHost.install() }) test("should return the expected model configurations", () => { const modelConfigs = defaultModelConfigurations() assert(modelConfigs) assert.equal(typeof modelConfigs, "object") // Further checks based on expected structure of modelConfigs }) test("should process aliases correctly", () => { const modelConfigs = defaultModelConfigurations() const aliases = [ LARGE_MODEL_ID, SMALL_MODEL_ID, VISION_MODEL_ID, "vision_small", "embeddings", "reasoning", "reasoning_small", ] aliases.forEach((alias) => { assert(alias in modelConfigs) }) }) })

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/microsoft/genaiscript'

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