UNPKG

@sentry/core

Version:
33 lines (30 loc) 1.19 kB
const OPENAI_INTEGRATION_NAME = 'OpenAI'; // https://platform.openai.com/docs/quickstart?api-mode=responses // https://platform.openai.com/docs/quickstart?api-mode=chat // https://platform.openai.com/docs/api-reference/conversations const OPENAI_METHOD_REGISTRY = { 'responses.create': { operation: 'chat' }, 'chat.completions.create': { operation: 'chat' }, 'embeddings.create': { operation: 'embeddings' }, // Conversations API - for conversation state management // https://platform.openai.com/docs/guides/conversation-state 'conversations.create': { operation: 'chat' }, } ; const RESPONSES_TOOL_CALL_EVENT_TYPES = [ 'response.output_item.added', 'response.function_call_arguments.delta', 'response.function_call_arguments.done', 'response.output_item.done', ] ; const RESPONSE_EVENT_TYPES = [ 'response.created', 'response.in_progress', 'response.failed', 'response.completed', 'response.incomplete', 'response.queued', 'response.output_text.delta', ...RESPONSES_TOOL_CALL_EVENT_TYPES, ] ; export { OPENAI_INTEGRATION_NAME, OPENAI_METHOD_REGISTRY, RESPONSES_TOOL_CALL_EVENT_TYPES, RESPONSE_EVENT_TYPES }; //# sourceMappingURL=constants.js.map