UNPKG

@sentry/core

Version:
25 lines (20 loc) 1.17 kB
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); const GOOGLE_GENAI_INTEGRATION_NAME = 'Google_GenAI'; // https://ai.google.dev/api/rest/v1/models/generateContent // https://ai.google.dev/api/rest/v1/chats/sendMessage // https://googleapis.github.io/js-genai/release_docs/classes/models.Models.html#generatecontentstream // https://googleapis.github.io/js-genai/release_docs/classes/chats.Chat.html#sendmessagestream const GOOGLE_GENAI_METHOD_REGISTRY = { 'models.generateContent': { operation: 'generate_content' }, 'models.generateContentStream': { operation: 'generate_content', streaming: true }, 'models.embedContent': { operation: 'embeddings' }, 'chats.create': { proxyResultPath: 'chat' }, 'chat.sendMessage': { operation: 'chat' }, 'chat.sendMessageStream': { operation: 'chat', streaming: true }, } ; // Constants for internal use const GOOGLE_GENAI_SYSTEM_NAME = 'google_genai'; exports.GOOGLE_GENAI_INTEGRATION_NAME = GOOGLE_GENAI_INTEGRATION_NAME; exports.GOOGLE_GENAI_METHOD_REGISTRY = GOOGLE_GENAI_METHOD_REGISTRY; exports.GOOGLE_GENAI_SYSTEM_NAME = GOOGLE_GENAI_SYSTEM_NAME; //# sourceMappingURL=constants.js.map