Skip to main content
Glama
gilberth

MCP Cloudflare DNS Server

messages.mjs963 B
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../../resource.mjs"; import { PromptCachingBetaMessageStream } from "../../../lib/PromptCachingBetaMessageStream.mjs"; export class Messages extends APIResource { create(params, options) { const { betas, ...body } = params; return this._client.post('/v1/messages?beta=prompt_caching', { body, timeout: this._client._options.timeout ?? 600000, ...options, headers: { 'anthropic-beta': [...(betas ?? []), 'prompt-caching-2024-07-31'].toString(), ...options?.headers, }, stream: params.stream ?? false, }); } /** * Create a Message stream */ stream(body, options) { return PromptCachingBetaMessageStream.createMessage(this, body, options); } } //# sourceMappingURL=messages.mjs.map

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/gilberth/mcp-cloudflare'

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