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
choices.genai.mjs•484 B
script({
choices: ["OK", { token: "ERR", weight: 0.2 }],
})
// tests logit_bias
const res = await runPrompt(
(_) => _.$`Is this correct? 1+1=3. Answer with OK or ERR.`,
{ choices: ["OK", "ERR"], label: "choices" }
)
if (!res.text.includes("OK") && !res.text.includes("ERR"))
throw new Error("Invalid response")
await runPrompt((_) => _.$`Is this correct? 1+1=3. Answer with OK or ERR.`, {
label: "no choices",
})
$`Is this correct? 1+1=2. Answer with OK or ERR.`