@leaflow/sdk 0.210.0 → 0.212.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assistant/v1/generated/functions.d.ts +243 -67
- package/dist/assistant/v1/generated/functions.js +248 -44
- package/dist/assistant/v1/generated/models.d.ts +302 -230
- package/dist/assistant/v1/generated/models.js +9 -19
- package/dist/assistant/v1/generated/schemas.zod.d.ts +119 -29
- package/dist/assistant/v1/generated/schemas.zod.js +139 -29
- package/dist/assistant/v1/generated/validators/answerQuestionRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/answerQuestionRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/approvalMode.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/approvalMode.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/artifactListResponseBody.zod.d.ts +68 -0
- package/dist/assistant/v1/generated/validators/artifactListResponseBody.zod.js +35 -0
- package/dist/assistant/v1/generated/validators/artifactResource.zod.d.ts +65 -0
- package/dist/assistant/v1/generated/validators/{attachmentResource.zod.js → artifactResource.zod.js} +13 -14
- package/dist/assistant/v1/generated/validators/artifactVersionListResponseBody.zod.d.ts +61 -0
- package/dist/assistant/v1/generated/validators/artifactVersionListResponseBody.zod.js +35 -0
- package/dist/assistant/v1/generated/validators/{uploadedResource.zod.d.ts → artifactVersionResource.zod.d.ts} +30 -16
- package/dist/assistant/v1/generated/validators/{attachmentFileResource.zod.js → artifactVersionResource.zod.js} +23 -16
- package/dist/assistant/v1/generated/validators/bindingCodeResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/bindingCodeResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/bindingResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/bindingResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/channelResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/channelResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/channelWithSecretResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/channelWithSecretResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/checkSenderParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/checkSenderParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/choiceResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/choiceResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/clientActionRequest.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/clientActionRequest.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/clientContextPart.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/clientContextPart.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/clientContextRequest.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/clientContextRequest.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/clientFunctionRequest.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/clientFunctionRequest.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/completeUploadRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/completeUploadRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/contextUsageResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/contextUsageResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/createArtifactRequestBody.zod.d.ts +38 -0
- package/dist/assistant/v1/generated/validators/createArtifactRequestBody.zod.js +36 -0
- package/dist/assistant/v1/generated/validators/createArtifactVersionRequestBody.zod.d.ts +36 -0
- package/dist/assistant/v1/generated/validators/createArtifactVersionRequestBody.zod.js +34 -0
- package/dist/assistant/v1/generated/validators/createChannelRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/createChannelRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/createFolderRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/createFolderRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/createTaskRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/createTaskRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/createThreadRequestBody.zod.d.ts +5 -4
- package/dist/assistant/v1/generated/validators/createThreadRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/createThreadResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/createThreadResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/createUploadRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/createUploadRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/credentialFieldResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/credentialFieldResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/cursorPagination.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/cursorPagination.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/decideToolCallsRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/decideToolCallsRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/defaultModelResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/defaultModelResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/error.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/error.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/errorStatus.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/errorStatus.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/fieldViolation.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/fieldViolation.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/{attachmentCountsResource.zod.d.ts → fileCountsResource.zod.d.ts} +7 -6
- package/dist/assistant/v1/generated/validators/{attachmentCountsResource.zod.js → fileCountsResource.zod.js} +5 -4
- package/dist/assistant/v1/generated/validators/fileDiffResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/fileDiffResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/{attachmentListResponseBody.zod.d.ts → fileListResponseBody.zod.d.ts} +15 -14
- package/dist/assistant/v1/generated/validators/{attachmentListResponseBody.zod.js → fileListResponseBody.zod.js} +9 -8
- package/dist/assistant/v1/generated/validators/{attachmentFileResource.zod.d.ts → fileResource.zod.d.ts} +14 -13
- package/dist/assistant/v1/generated/validators/{uploadedResource.zod.js → fileResource.zod.js} +25 -15
- package/dist/assistant/v1/generated/validators/folderCountsResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/folderCountsResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/folderListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/folderListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/folderResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/folderResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/itemSourceResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/itemSourceResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/lastTurnResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/lastTurnResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/lengthAwarePageBindingResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/lengthAwarePageBindingResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/lengthAwarePageChannelResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/lengthAwarePageChannelResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/listArtifactVersionsParams.zod.d.ts +39 -0
- package/dist/assistant/v1/generated/validators/listArtifactVersionsParams.zod.js +41 -0
- package/dist/assistant/v1/generated/validators/listArtifactsParams.zod.d.ts +41 -0
- package/dist/assistant/v1/generated/validators/listArtifactsParams.zod.js +39 -0
- package/dist/assistant/v1/generated/validators/listBindingsParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/listBindingsParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/listChannelRejectionsParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/listChannelRejectionsParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/listChannelsParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/listChannelsParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/listTaskRunsParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/listTaskRunsParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/listThreadItemsParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/listThreadItemsParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/listThreadMessagesParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/listThreadMessagesParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/listThreadTurnsParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/listThreadTurnsParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/loginResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/loginResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/memoryListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/memoryListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/memoryResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/memoryResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/messagePart.zod.d.ts +5 -4
- package/dist/assistant/v1/generated/validators/messagePart.zod.js +7 -6
- package/dist/assistant/v1/generated/validators/moveFolderRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/moveFolderRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/offsetPagination.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/offsetPagination.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/partResource.zod.d.ts +20 -4
- package/dist/assistant/v1/generated/validators/partResource.zod.js +8 -7
- package/dist/assistant/v1/generated/validators/pendingActionResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/pendingActionResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/placeThreadRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/placeThreadRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/platformListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/platformListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/platformResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/platformResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/presentationResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/presentationResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/putUploadPartHeaders.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/putUploadPartHeaders.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/putUploadPartParams.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/putUploadPartParams.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/questionResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/questionResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/reasoningEffort.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/reasoningEffort.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/rejectionListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/rejectionListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/rejectionResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/rejectionResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/resumeThreadRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/resumeThreadRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/revertRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/revertRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/revertedCountResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/revertedCountResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/rotateSecretRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/rotateSecretRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/{searchAttachmentsRequestBody.zod.d.ts → searchFilesRequestBody.zod.d.ts} +12 -11
- package/dist/assistant/v1/generated/validators/{searchAttachmentsRequestBody.zod.js → searchFilesRequestBody.zod.js} +17 -16
- package/dist/assistant/v1/generated/validators/searchTasksRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/searchTasksRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/searchThreadsRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/searchThreadsRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/sendMessageRequestBody.zod.d.ts +5 -4
- package/dist/assistant/v1/generated/validators/sendMessageRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/sendMessageResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/sendMessageResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/senderCheckResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/senderCheckResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/settingsResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/settingsResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/skillEnabledRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/skillEnabledRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/skillListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/skillListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/skillRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/skillRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/skillResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/skillResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/subagentCountResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/subagentCountResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/taskAction.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/taskAction.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/taskListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/taskListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/taskResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/taskResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/taskRunEvent.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/taskRunEvent.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/taskRunListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/taskRunListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/taskRunResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/taskRunResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/taskTrigger.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/taskTrigger.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadCountsResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/threadCountsResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadItemListResponseBody.zod.d.ts +120 -29
- package/dist/assistant/v1/generated/validators/threadItemListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadItemResource.zod.d.ts +62 -16
- package/dist/assistant/v1/generated/validators/threadItemResource.zod.js +5 -6
- package/dist/assistant/v1/generated/validators/threadListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/threadListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadMessageListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/threadMessageListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadMessageResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/threadMessageResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/threadResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadStatus.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/threadStatus.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadTurnListResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/threadTurnListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/threadTurnResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/threadTurnResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/todoResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/todoResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/toolCallResource.zod.d.ts +46 -3
- package/dist/assistant/v1/generated/validators/toolCallResource.zod.js +12 -3
- package/dist/assistant/v1/generated/validators/toolResultRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/toolResultRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/turnStartedResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/turnStartedResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/turnStatus.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/turnStatus.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/turnType.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/turnType.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/{attachmentResource.zod.d.ts → updateArtifactRequestBody.zod.d.ts} +9 -16
- package/dist/assistant/v1/generated/validators/updateArtifactRequestBody.zod.js +34 -0
- package/dist/assistant/v1/generated/validators/updateChannelRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/updateChannelRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/{updateAttachmentRequestBody.zod.d.ts → updateFileRequestBody.zod.d.ts} +8 -7
- package/dist/assistant/v1/generated/validators/{updateAttachmentRequestBody.zod.js → updateFileRequestBody.zod.js} +7 -6
- package/dist/assistant/v1/generated/validators/updateFolderRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/updateFolderRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/updateSettingsRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/updateSettingsRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/updateTaskRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/updateTaskRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/updateThreadRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/updateThreadRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/updateUploadRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/updateUploadRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/uploadConfigurationResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/uploadConfigurationResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/{uploadAttachmentParams.zod.d.ts → uploadFileParams.zod.d.ts} +8 -7
- package/dist/assistant/v1/generated/validators/{uploadAttachmentParams.zod.js → uploadFileParams.zod.js} +7 -6
- package/dist/assistant/v1/generated/validators/uploadListResponseBody.zod.d.ts +5 -4
- package/dist/assistant/v1/generated/validators/uploadListResponseBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/uploadPartResource.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/uploadPartResource.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/uploadResource.zod.d.ts +5 -4
- package/dist/assistant/v1/generated/validators/uploadResource.zod.js +8 -4
- package/dist/assistant/v1/generated/validators/usage.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/usage.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/verifyCodeRequestBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/verifyCodeRequestBody.zod.js +4 -3
- package/dist/assistant/v1/generated/validators/webhookSecretResponseBody.zod.d.ts +4 -3
- package/dist/assistant/v1/generated/validators/webhookSecretResponseBody.zod.js +4 -3
- package/dist/canopy/v1/generated/functions.d.ts +19 -50
- package/dist/canopy/v1/generated/functions.js +4 -34
- package/dist/canopy/v1/generated/models.d.ts +38 -64
- package/dist/canopy/v1/generated/models.js +0 -26
- package/dist/canopy/v1/generated/schemas.zod.d.ts +18 -21
- package/dist/canopy/v1/generated/schemas.zod.js +18 -21
- package/dist/canopy/v1/generated/validators/aPIKeyResource.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/aPIKeyResource.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/aPIKeyUsageListResponseBody.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/aPIKeyUsageListResponseBody.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/aPIKeyUsageResource.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/aPIKeyUsageResource.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/audioCapabilities.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/audioCapabilities.zod.js +18 -9
- package/dist/canopy/v1/generated/validators/chatCompletion.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/chatCompletion.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/chatCompletionRequest.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/chatCompletionRequest.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/checkoutMode.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/checkoutMode.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/checkoutOptions.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/checkoutOptions.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/createAPIKeyRequestBody.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/createAPIKeyRequestBody.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/createServiceRequestBody.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/createServiceRequestBody.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/createServiceResponseBody.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/createServiceResponseBody.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/cursorPageRequestResource.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/cursorPageRequestResource.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/cursorPagination.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/cursorPagination.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/embeddingRequest.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/embeddingRequest.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/embeddingResponse.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/embeddingResponse.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/error.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/error.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/errorStatus.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/errorStatus.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/fieldViolation.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/fieldViolation.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/getUsageSummaryParams.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/getUsageSummaryParams.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/getUsageTimelineParams.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/getUsageTimelineParams.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/getVideoContentHeaders.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/getVideoContentHeaders.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/imageCapabilities.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/imageCapabilities.zod.js +16 -7
- package/dist/canopy/v1/generated/validators/inferenceError.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/inferenceError.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/issuedAPIKeyResource.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/issuedAPIKeyResource.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/lengthAwarePageAPIKeyResource.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/lengthAwarePageAPIKeyResource.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/listApiKeysParams.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/listApiKeysParams.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/listRequestsParams.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/listRequestsParams.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/listUsageByApiKeyParams.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/listUsageByApiKeyParams.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/listUsageByModelParams.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/listUsageByModelParams.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/mediaUsage.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/mediaUsage.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/mediaUsageDetails.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/mediaUsageDetails.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/modality.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/modality.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/model.zod.d.ts +16 -33
- package/dist/canopy/v1/generated/validators/model.zod.js +14 -9
- package/dist/canopy/v1/generated/validators/modelBilling.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/modelBilling.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/modelCapabilities.zod.d.ts +16 -7
- package/dist/canopy/v1/generated/validators/modelCapabilities.zod.js +41 -8
- package/dist/canopy/v1/generated/validators/modelList.zod.d.ts +16 -33
- package/dist/canopy/v1/generated/validators/modelList.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/modelListResponseBody.zod.d.ts +16 -33
- package/dist/canopy/v1/generated/validators/modelListResponseBody.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/modelMeter.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/modelMeter.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/modelParameter.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/modelParameter.zod.js +15 -6
- package/dist/canopy/v1/generated/validators/modelResource.zod.d.ts +16 -33
- package/dist/canopy/v1/generated/validators/modelResource.zod.js +14 -9
- package/dist/canopy/v1/generated/validators/modelUsageListResponseBody.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/modelUsageListResponseBody.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/modelUsageResource.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/modelUsageResource.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/money.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/money.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/nativeRequest.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/nativeRequest.zod.js +15 -6
- package/dist/canopy/v1/generated/validators/nativeResponse.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/nativeResponse.zod.js +15 -6
- package/dist/canopy/v1/generated/validators/offsetPagination.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/offsetPagination.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/reasoningCapabilities.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/reasoningCapabilities.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/reasoningDiagnostics.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/reasoningDiagnostics.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/requestResource.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/requestResource.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/responseCreate.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/responseCreate.zod.js +23 -8
- package/dist/canopy/v1/generated/validators/responseResource.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/responseResource.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/serviceResource.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/serviceResource.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/streamGenerateContentParams.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/streamGenerateContentParams.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/totalsResource.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/totalsResource.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/updateAPIKeyRequestBody.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/updateAPIKeyRequestBody.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/usageBucketResource.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/usageBucketResource.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/usageTimelineResponseBody.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/usageTimelineResponseBody.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/videoCapabilities.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/videoCapabilities.zod.js +15 -6
- package/dist/canopy/v1/generated/validators/videoCreateRequest.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/videoCreateRequest.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/videoDurationRange.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/videoDurationRange.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/videoReferenceMedia.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/videoReferenceMedia.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/videoTask.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/videoTask.zod.js +14 -5
- package/dist/canopy/v1/generated/validators/videoUsage.zod.d.ts +14 -5
- package/dist/canopy/v1/generated/validators/videoUsage.zod.js +14 -5
- package/dist/routes.d.ts +76 -28
- package/dist/routes.js +84 -30
- package/package.json +1 -1
- package/dist/canopy/v1/generated/validators/endpointCapabilities.zod.d.ts +0 -100
- package/dist/canopy/v1/generated/validators/endpointCapabilities.zod.js +0 -67
- package/dist/canopy/v1/generated/validators/modelEndpoint.zod.d.ts +0 -69
- package/dist/canopy/v1/generated/validators/modelEndpoint.zod.js +0 -67
- package/dist/canopy/v1/generated/validators/responseDeleted.zod.d.ts +0 -48
- package/dist/canopy/v1/generated/validators/responseDeleted.zod.js +0 -46
|
@@ -4,17 +4,26 @@
|
|
|
4
4
|
* Leaflow Canopy API
|
|
5
5
|
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
6
|
*
|
|
7
|
-
* Project inference is served on this host
|
|
7
|
+
* Project inference is served on this host at each protocol's own endpoints:
|
|
8
8
|
*
|
|
9
9
|
* - OpenAI: `/v1/chat/completions`, `/v1/responses` and `/v1/embeddings`; use
|
|
10
10
|
* `https://canopy.leaflow.cloud/v1` as the OpenAI SDK base URL.
|
|
11
11
|
* - Anthropic: `/v1/messages`; use `https://canopy.leaflow.cloud` as the Anthropic SDK base URL.
|
|
12
12
|
* - Gemini: `/v1beta/models/{model}:generateContent` and `:streamGenerateContent`.
|
|
13
13
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* the model
|
|
17
|
-
*
|
|
14
|
+
* Every chat model accepts all four chat protocols: Chat Completions, Responses, Messages and Gemini
|
|
15
|
+
* generateContent. A request is forwarded unchanged, apart from the model name and the credentials, when a
|
|
16
|
+
* provider of the model speaks the protocol it was sent in; otherwise it is translated into a protocol a
|
|
17
|
+
* provider speaks, and the response is translated back. Content that cannot be translated, such as a tool
|
|
18
|
+
* that runs on another provider's servers or a reference to a file stored with another provider, is refused
|
|
19
|
+
* with 400 rather than dropped. Reasoning settings such as `reasoning_effort` are passed through as written;
|
|
20
|
+
* a model's `capabilities` lists the values it accepts.
|
|
21
|
+
*
|
|
22
|
+
* Responses is stateless: `store` must be false, and a response cannot be retrieved after it is returned.
|
|
23
|
+
* Send the output items of a response back unchanged, in their order, as input to the next request.
|
|
24
|
+
*
|
|
25
|
+
* What a model does follows from its `input_modalities`, `output_modalities` and the media blocks of its
|
|
26
|
+
* `capabilities`. Embeddings, images, audio and videos are accepted for a model whose providers serve them.
|
|
18
27
|
*
|
|
19
28
|
* Management operations use `/api/v1`. The management model catalogue names how each model is billed in Billing;
|
|
20
29
|
* `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
|
|
@@ -117,7 +126,7 @@ export interface ReasoningCapabilities {
|
|
|
117
126
|
summary: string[] | null;
|
|
118
127
|
}
|
|
119
128
|
/**
|
|
120
|
-
* The image parameters this
|
|
129
|
+
* The image parameters this model accepts. The client chooses among them; a value outside the list is rejected before the upstream is called.
|
|
121
130
|
*/
|
|
122
131
|
export interface ImageCapabilities {
|
|
123
132
|
/**
|
|
@@ -143,13 +152,13 @@ export interface ImageCapabilities {
|
|
|
143
152
|
*/
|
|
144
153
|
max_n: number | null;
|
|
145
154
|
/**
|
|
146
|
-
* Whether
|
|
155
|
+
* Whether partial images can be streamed. Null means unknown.
|
|
147
156
|
* @nullable
|
|
148
157
|
*/
|
|
149
158
|
supports_stream: boolean | null;
|
|
150
159
|
}
|
|
151
160
|
/**
|
|
152
|
-
* The audio parameters this
|
|
161
|
+
* The audio parameters this model accepts.
|
|
153
162
|
*/
|
|
154
163
|
export interface AudioCapabilities {
|
|
155
164
|
/**
|
|
@@ -158,7 +167,7 @@ export interface AudioCapabilities {
|
|
|
158
167
|
*/
|
|
159
168
|
voices: string[] | null;
|
|
160
169
|
/**
|
|
161
|
-
* Audio container or codec values the
|
|
170
|
+
* Audio container or codec values the model accepts. Null means unknown.
|
|
162
171
|
* @nullable
|
|
163
172
|
*/
|
|
164
173
|
formats: string[] | null;
|
|
@@ -168,13 +177,13 @@ export interface AudioCapabilities {
|
|
|
168
177
|
*/
|
|
169
178
|
response_formats: string[] | null;
|
|
170
179
|
/**
|
|
171
|
-
* The largest upload the
|
|
180
|
+
* The largest upload the model accepts, in bytes. Null means unknown.
|
|
172
181
|
* @minimum 0
|
|
173
182
|
* @nullable
|
|
174
183
|
*/
|
|
175
184
|
max_input_bytes: number | null;
|
|
176
185
|
/**
|
|
177
|
-
* Whether the
|
|
186
|
+
* Whether the response can be streamed. Null means unknown.
|
|
178
187
|
* @nullable
|
|
179
188
|
*/
|
|
180
189
|
supports_stream: boolean | null;
|
|
@@ -191,7 +200,7 @@ export interface VideoDurationRange {
|
|
|
191
200
|
step: number;
|
|
192
201
|
}
|
|
193
202
|
/**
|
|
194
|
-
* The video parameters this
|
|
203
|
+
* The video parameters this model accepts. Video is asynchronous; create returns a task, and the task is polled separately.
|
|
195
204
|
*/
|
|
196
205
|
export interface VideoCapabilities {
|
|
197
206
|
/** Continuous duration capability. Mutually exclusive with nonempty seconds. */
|
|
@@ -238,7 +247,7 @@ export declare const ModelParameterType: {
|
|
|
238
247
|
readonly array: "array";
|
|
239
248
|
};
|
|
240
249
|
/**
|
|
241
|
-
* A non-standard request field this
|
|
250
|
+
* A non-standard request field this model accepts. OpenAI SDK callers pass it through `extra_body`, which places it at the top level of the body.
|
|
242
251
|
*/
|
|
243
252
|
export interface ModelParameter {
|
|
244
253
|
name: string;
|
|
@@ -253,57 +262,27 @@ export interface ModelParameter {
|
|
|
253
262
|
*/
|
|
254
263
|
values?: string[] | null;
|
|
255
264
|
}
|
|
256
|
-
|
|
265
|
+
/**
|
|
266
|
+
* Verified capabilities of the model, the same whichever endpoint it is called through. Null values mean unknown. Current route availability is separate.
|
|
267
|
+
*/
|
|
268
|
+
export interface ModelCapabilities {
|
|
257
269
|
/** @nullable */
|
|
258
270
|
function_calling: boolean | null;
|
|
259
271
|
/** @nullable */
|
|
260
272
|
structured_output: boolean | null;
|
|
261
273
|
reasoning: ReasoningCapabilities | null;
|
|
262
|
-
/** Present on
|
|
274
|
+
/** Present on a model that generates or edits images. Null or absent otherwise. */
|
|
263
275
|
image?: ImageCapabilities | null;
|
|
264
|
-
/** Present on speech
|
|
276
|
+
/** Present on a model that synthesizes speech or transcribes audio. Null or absent otherwise. */
|
|
265
277
|
audio?: AudioCapabilities | null;
|
|
266
|
-
/** Present on
|
|
278
|
+
/** Present on a model that generates videos. Null or absent otherwise. */
|
|
267
279
|
video?: VideoCapabilities | null;
|
|
268
280
|
/**
|
|
269
|
-
* Non-standard request fields this
|
|
281
|
+
* Non-standard request fields this model accepts, sent at the top level of the request body. Null or absent means none are declared.
|
|
270
282
|
* @nullable
|
|
271
283
|
*/
|
|
272
284
|
parameters?: ModelParameter[] | null;
|
|
273
285
|
}
|
|
274
|
-
/**
|
|
275
|
-
* Verified capabilities keyed by API endpoint, for example /v1/chat/completions or /v1/responses. Missing keys and null values mean unknown. Current route availability is separate.
|
|
276
|
-
*/
|
|
277
|
-
export interface ModelCapabilities {
|
|
278
|
-
[key: string]: EndpointCapabilities;
|
|
279
|
-
}
|
|
280
|
-
export type ModelEndpoint = (typeof ModelEndpoint)[keyof typeof ModelEndpoint];
|
|
281
|
-
export declare const ModelEndpoint: {
|
|
282
|
-
readonly "/v1/chat/completions": "/v1/chat/completions";
|
|
283
|
-
readonly "/v1/responses": "/v1/responses";
|
|
284
|
-
readonly "/v1/embeddings": "/v1/embeddings";
|
|
285
|
-
readonly "/v1/messages": "/v1/messages";
|
|
286
|
-
readonly "/v1beta/models/{model}:generateContent": "/v1beta/models/{model}:generateContent";
|
|
287
|
-
readonly "/v1/images/generations": "/v1/images/generations";
|
|
288
|
-
readonly "/v1/images/edits": "/v1/images/edits";
|
|
289
|
-
readonly "/v1/audio/transcriptions": "/v1/audio/transcriptions";
|
|
290
|
-
readonly "/v1/audio/translations": "/v1/audio/translations";
|
|
291
|
-
readonly "/v1/audio/speech": "/v1/audio/speech";
|
|
292
|
-
readonly "/v1/realtime": "/v1/realtime";
|
|
293
|
-
readonly "/v1/completions": "/v1/completions";
|
|
294
|
-
readonly "/v1/rerank": "/v1/rerank";
|
|
295
|
-
readonly "/v1/moderations": "/v1/moderations";
|
|
296
|
-
readonly "/v1/images/variations": "/v1/images/variations";
|
|
297
|
-
readonly "/v1/files": "/v1/files";
|
|
298
|
-
readonly "/v1/uploads": "/v1/uploads";
|
|
299
|
-
readonly "/v1/batches": "/v1/batches";
|
|
300
|
-
readonly "/v1/fine_tuning/jobs": "/v1/fine_tuning/jobs";
|
|
301
|
-
readonly "/v1/assistants": "/v1/assistants";
|
|
302
|
-
readonly "/v1/threads": "/v1/threads";
|
|
303
|
-
readonly "/v1/vector_stores": "/v1/vector_stores";
|
|
304
|
-
readonly "/v1/containers": "/v1/containers";
|
|
305
|
-
readonly "/v1/videos": "/v1/videos";
|
|
306
|
-
};
|
|
307
286
|
export interface Model {
|
|
308
287
|
id: string;
|
|
309
288
|
object: "model";
|
|
@@ -326,8 +305,6 @@ export interface Model {
|
|
|
326
305
|
*/
|
|
327
306
|
output_modalities: Modality[] | null;
|
|
328
307
|
capabilities: ModelCapabilities;
|
|
329
|
-
/** Explicitly supported API endpoints. Requests to any other endpoint are rejected before upstream admission. */
|
|
330
|
-
supported_endpoints: ModelEndpoint[];
|
|
331
308
|
}
|
|
332
309
|
export interface ModelList {
|
|
333
310
|
object: "list";
|
|
@@ -603,8 +580,6 @@ export interface ModelResource {
|
|
|
603
580
|
*/
|
|
604
581
|
output_modalities: Modality[] | null;
|
|
605
582
|
capabilities: ModelCapabilities;
|
|
606
|
-
/** Explicitly supported API endpoints. Requests to any other endpoint are rejected before upstream admission. */
|
|
607
|
-
supported_endpoints: ModelEndpoint[];
|
|
608
583
|
}
|
|
609
584
|
/**
|
|
610
585
|
* Media quantities and the rate dimensions they were billed at. Absent on a token-only request.
|
|
@@ -1121,13 +1096,13 @@ export interface VideoTask {
|
|
|
1121
1096
|
[key: string]: unknown;
|
|
1122
1097
|
}
|
|
1123
1098
|
/**
|
|
1124
|
-
* A request body in the endpoint's own protocol.
|
|
1099
|
+
* A request body in the endpoint's own protocol.
|
|
1125
1100
|
*/
|
|
1126
1101
|
export interface NativeRequest {
|
|
1127
1102
|
[key: string]: unknown;
|
|
1128
1103
|
}
|
|
1129
1104
|
/**
|
|
1130
|
-
* A response body in the endpoint's own protocol
|
|
1105
|
+
* A response body in the endpoint's own protocol.
|
|
1131
1106
|
*/
|
|
1132
1107
|
export interface NativeResponse {
|
|
1133
1108
|
[key: string]: unknown;
|
|
@@ -1139,16 +1114,20 @@ export type ResponseCreateToolsItem = {
|
|
|
1139
1114
|
[key: string]: unknown;
|
|
1140
1115
|
};
|
|
1141
1116
|
/**
|
|
1142
|
-
* Native Responses request.
|
|
1117
|
+
* Native Responses request. Only caller-executed function and custom tools are supported. background, conversation and WebSocket-only fields are rejected over HTTP.
|
|
1143
1118
|
*/
|
|
1144
1119
|
export interface ResponseCreate {
|
|
1145
1120
|
model?: string;
|
|
1146
1121
|
input?: unknown;
|
|
1147
1122
|
/** @nullable */
|
|
1148
1123
|
instructions?: string | null;
|
|
1124
|
+
/** Must be false. True is refused with 400 `RESPONSES_STORE_UNSUPPORTED`. */
|
|
1149
1125
|
store?: boolean;
|
|
1150
1126
|
stream?: boolean;
|
|
1151
|
-
/**
|
|
1127
|
+
/**
|
|
1128
|
+
* Continues a response created earlier on the same WebSocket connection. Over HTTP no response can be continued, and a request carrying it is refused with 404 `RESPONSE_NOT_FOUND`.
|
|
1129
|
+
* @nullable
|
|
1130
|
+
*/
|
|
1152
1131
|
previous_response_id?: string | null;
|
|
1153
1132
|
reasoning?: ResponseCreateReasoning;
|
|
1154
1133
|
tools?: ResponseCreateToolsItem[];
|
|
@@ -1159,11 +1138,6 @@ export interface ResponseCreate {
|
|
|
1159
1138
|
export interface ResponseResource {
|
|
1160
1139
|
[key: string]: unknown;
|
|
1161
1140
|
}
|
|
1162
|
-
export interface ResponseDeleted {
|
|
1163
|
-
id: string;
|
|
1164
|
-
object: string;
|
|
1165
|
-
deleted: boolean;
|
|
1166
|
-
}
|
|
1167
1141
|
/**
|
|
1168
1142
|
* Pagination metadata for stable numbered pages. total_count is returned only when the operation can determine it without an unbounded scan.
|
|
1169
1143
|
*/
|
|
@@ -18,32 +18,6 @@ export const ModelParameterType = {
|
|
|
18
18
|
object: "object",
|
|
19
19
|
array: "array",
|
|
20
20
|
};
|
|
21
|
-
export const ModelEndpoint = {
|
|
22
|
-
"/v1/chat/completions": "/v1/chat/completions",
|
|
23
|
-
"/v1/responses": "/v1/responses",
|
|
24
|
-
"/v1/embeddings": "/v1/embeddings",
|
|
25
|
-
"/v1/messages": "/v1/messages",
|
|
26
|
-
"/v1beta/models/{model}:generateContent": "/v1beta/models/{model}:generateContent",
|
|
27
|
-
"/v1/images/generations": "/v1/images/generations",
|
|
28
|
-
"/v1/images/edits": "/v1/images/edits",
|
|
29
|
-
"/v1/audio/transcriptions": "/v1/audio/transcriptions",
|
|
30
|
-
"/v1/audio/translations": "/v1/audio/translations",
|
|
31
|
-
"/v1/audio/speech": "/v1/audio/speech",
|
|
32
|
-
"/v1/realtime": "/v1/realtime",
|
|
33
|
-
"/v1/completions": "/v1/completions",
|
|
34
|
-
"/v1/rerank": "/v1/rerank",
|
|
35
|
-
"/v1/moderations": "/v1/moderations",
|
|
36
|
-
"/v1/images/variations": "/v1/images/variations",
|
|
37
|
-
"/v1/files": "/v1/files",
|
|
38
|
-
"/v1/uploads": "/v1/uploads",
|
|
39
|
-
"/v1/batches": "/v1/batches",
|
|
40
|
-
"/v1/fine_tuning/jobs": "/v1/fine_tuning/jobs",
|
|
41
|
-
"/v1/assistants": "/v1/assistants",
|
|
42
|
-
"/v1/threads": "/v1/threads",
|
|
43
|
-
"/v1/vector_stores": "/v1/vector_stores",
|
|
44
|
-
"/v1/containers": "/v1/containers",
|
|
45
|
-
"/v1/videos": "/v1/videos",
|
|
46
|
-
};
|
|
47
21
|
export const APIKeyResourceStatus = {
|
|
48
22
|
active: "active",
|
|
49
23
|
disabled: "disabled",
|
|
@@ -4,17 +4,26 @@
|
|
|
4
4
|
* Leaflow Canopy API
|
|
5
5
|
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
6
|
*
|
|
7
|
-
* Project inference is served on this host
|
|
7
|
+
* Project inference is served on this host at each protocol's own endpoints:
|
|
8
8
|
*
|
|
9
9
|
* - OpenAI: `/v1/chat/completions`, `/v1/responses` and `/v1/embeddings`; use
|
|
10
10
|
* `https://canopy.leaflow.cloud/v1` as the OpenAI SDK base URL.
|
|
11
11
|
* - Anthropic: `/v1/messages`; use `https://canopy.leaflow.cloud` as the Anthropic SDK base URL.
|
|
12
12
|
* - Gemini: `/v1beta/models/{model}:generateContent` and `:streamGenerateContent`.
|
|
13
13
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* the model
|
|
17
|
-
*
|
|
14
|
+
* Every chat model accepts all four chat protocols: Chat Completions, Responses, Messages and Gemini
|
|
15
|
+
* generateContent. A request is forwarded unchanged, apart from the model name and the credentials, when a
|
|
16
|
+
* provider of the model speaks the protocol it was sent in; otherwise it is translated into a protocol a
|
|
17
|
+
* provider speaks, and the response is translated back. Content that cannot be translated, such as a tool
|
|
18
|
+
* that runs on another provider's servers or a reference to a file stored with another provider, is refused
|
|
19
|
+
* with 400 rather than dropped. Reasoning settings such as `reasoning_effort` are passed through as written;
|
|
20
|
+
* a model's `capabilities` lists the values it accepts.
|
|
21
|
+
*
|
|
22
|
+
* Responses is stateless: `store` must be false, and a response cannot be retrieved after it is returned.
|
|
23
|
+
* Send the output items of a response back unchanged, in their order, as input to the next request.
|
|
24
|
+
*
|
|
25
|
+
* What a model does follows from its `input_modalities`, `output_modalities` and the media blocks of its
|
|
26
|
+
* `capabilities`. Embeddings, images, audio and videos are accepted for a model whose providers serve them.
|
|
18
27
|
*
|
|
19
28
|
* Management operations use `/api/v1`. The management model catalogue names how each model is billed in Billing;
|
|
20
29
|
* `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
|
|
@@ -89,7 +98,7 @@ export declare const GetVideoContentHeader: zod.ZodObject<{
|
|
|
89
98
|
Range: zod.ZodOptional<zod.ZodString>;
|
|
90
99
|
}, zod.z.core.$strict>;
|
|
91
100
|
/**
|
|
92
|
-
*
|
|
101
|
+
* Returns JSON, or Responses SSE events when `stream` is true. Accepted for every chat model, whichever protocol its providers speak. Responses are not stored, so `store` must be false; send the output items of a response back unchanged, in their order, as input to the next request. Reasoning items carry `encrypted_content`, which has to be returned as received. WebSocket clients connect with GET /v1/responses and send response.create events; one response may be active on a connection at a time, and `previous_response_id` continues a response created earlier on the same connection. The connection stays on its initial model and provider credential.
|
|
93
102
|
* @summary Create a model response
|
|
94
103
|
*/
|
|
95
104
|
export declare const CreateResponseBody: zod.ZodObject<{
|
|
@@ -104,19 +113,7 @@ export declare const CreateResponseBody: zod.ZodObject<{
|
|
|
104
113
|
max_output_tokens: zod.ZodOptional<zod.ZodInt>;
|
|
105
114
|
}, zod.z.core.$strict>;
|
|
106
115
|
/**
|
|
107
|
-
*
|
|
108
|
-
*/
|
|
109
|
-
export declare const GetResponseParams: zod.ZodObject<{
|
|
110
|
-
response: zod.ZodString;
|
|
111
|
-
}, zod.z.core.$strict>;
|
|
112
|
-
/**
|
|
113
|
-
* @summary Delete a stored response
|
|
114
|
-
*/
|
|
115
|
-
export declare const DeleteResponseParams: zod.ZodObject<{
|
|
116
|
-
response: zod.ZodString;
|
|
117
|
-
}, zod.z.core.$strict>;
|
|
118
|
-
/**
|
|
119
|
-
* Authenticated project inference in the OpenAI Chat Completions protocol, forwarded unchanged to an upstream that speaks it. Billing ownership comes only from the verified project token.
|
|
116
|
+
* Authenticated project inference in the OpenAI Chat Completions protocol. Accepted for every chat model, whichever protocol its providers speak. Billing ownership comes only from the verified project token.
|
|
120
117
|
* @summary Create a chat completion
|
|
121
118
|
*/
|
|
122
119
|
export declare const CreateChatCompletionBody: zod.ZodObject<{
|
|
@@ -142,12 +139,12 @@ export declare const CreateEmbeddingsBody: zod.ZodObject<{
|
|
|
142
139
|
user: zod.ZodOptional<zod.ZodString>;
|
|
143
140
|
}, zod.z.core.$strict>;
|
|
144
141
|
/**
|
|
145
|
-
* Authenticated project inference in the Anthropic Messages protocol
|
|
142
|
+
* Authenticated project inference in the Anthropic Messages protocol. Accepted for every chat model, whichever protocol its providers speak. Accepts the `x-api-key` header as well as Authorization. Streams Anthropic SSE events when `stream` is true.
|
|
146
143
|
* @summary Create a message
|
|
147
144
|
*/
|
|
148
145
|
export declare const CreateMessageBody: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
149
146
|
/**
|
|
150
|
-
* Authenticated project inference in the Gemini protocol
|
|
147
|
+
* Authenticated project inference in the Gemini protocol. Accepted for every chat model, whichever protocol its providers speak. Accepts the `x-goog-api-key` header as well as Authorization.
|
|
151
148
|
* @summary Generate content
|
|
152
149
|
*/
|
|
153
150
|
export declare const GenerateContentParams: zod.ZodObject<{
|
|
@@ -4,17 +4,26 @@
|
|
|
4
4
|
* Leaflow Canopy API
|
|
5
5
|
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
6
|
*
|
|
7
|
-
* Project inference is served on this host
|
|
7
|
+
* Project inference is served on this host at each protocol's own endpoints:
|
|
8
8
|
*
|
|
9
9
|
* - OpenAI: `/v1/chat/completions`, `/v1/responses` and `/v1/embeddings`; use
|
|
10
10
|
* `https://canopy.leaflow.cloud/v1` as the OpenAI SDK base URL.
|
|
11
11
|
* - Anthropic: `/v1/messages`; use `https://canopy.leaflow.cloud` as the Anthropic SDK base URL.
|
|
12
12
|
* - Gemini: `/v1beta/models/{model}:generateContent` and `:streamGenerateContent`.
|
|
13
13
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* the model
|
|
17
|
-
*
|
|
14
|
+
* Every chat model accepts all four chat protocols: Chat Completions, Responses, Messages and Gemini
|
|
15
|
+
* generateContent. A request is forwarded unchanged, apart from the model name and the credentials, when a
|
|
16
|
+
* provider of the model speaks the protocol it was sent in; otherwise it is translated into a protocol a
|
|
17
|
+
* provider speaks, and the response is translated back. Content that cannot be translated, such as a tool
|
|
18
|
+
* that runs on another provider's servers or a reference to a file stored with another provider, is refused
|
|
19
|
+
* with 400 rather than dropped. Reasoning settings such as `reasoning_effort` are passed through as written;
|
|
20
|
+
* a model's `capabilities` lists the values it accepts.
|
|
21
|
+
*
|
|
22
|
+
* Responses is stateless: `store` must be false, and a response cannot be retrieved after it is returned.
|
|
23
|
+
* Send the output items of a response back unchanged, in their order, as input to the next request.
|
|
24
|
+
*
|
|
25
|
+
* What a model does follows from its `input_modalities`, `output_modalities` and the media blocks of its
|
|
26
|
+
* `capabilities`. Embeddings, images, audio and videos are accepted for a model whose providers serve them.
|
|
18
27
|
*
|
|
19
28
|
* Management operations use `/api/v1`. The management model catalogue names how each model is billed in Billing;
|
|
20
29
|
* `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
|
|
@@ -75,24 +84,12 @@ export const GetVideoContentHeader = zod.strictObject({
|
|
|
75
84
|
Range: zod.string().optional(),
|
|
76
85
|
});
|
|
77
86
|
/**
|
|
78
|
-
*
|
|
87
|
+
* Returns JSON, or Responses SSE events when `stream` is true. Accepted for every chat model, whichever protocol its providers speak. Responses are not stored, so `store` must be false; send the output items of a response back unchanged, in their order, as input to the next request. Reasoning items carry `encrypted_content`, which has to be returned as received. WebSocket clients connect with GET /v1/responses and send response.create events; one response may be active on a connection at a time, and `previous_response_id` continues a response created earlier on the same connection. The connection stays on its initial model and provider credential.
|
|
79
88
|
* @summary Create a model response
|
|
80
89
|
*/
|
|
81
90
|
export const CreateResponseBody = ResponseCreate;
|
|
82
91
|
/**
|
|
83
|
-
*
|
|
84
|
-
*/
|
|
85
|
-
export const GetResponseParams = zod.strictObject({
|
|
86
|
-
response: zod.string(),
|
|
87
|
-
});
|
|
88
|
-
/**
|
|
89
|
-
* @summary Delete a stored response
|
|
90
|
-
*/
|
|
91
|
-
export const DeleteResponseParams = zod.strictObject({
|
|
92
|
-
response: zod.string(),
|
|
93
|
-
});
|
|
94
|
-
/**
|
|
95
|
-
* Authenticated project inference in the OpenAI Chat Completions protocol, forwarded unchanged to an upstream that speaks it. Billing ownership comes only from the verified project token.
|
|
92
|
+
* Authenticated project inference in the OpenAI Chat Completions protocol. Accepted for every chat model, whichever protocol its providers speak. Billing ownership comes only from the verified project token.
|
|
96
93
|
* @summary Create a chat completion
|
|
97
94
|
*/
|
|
98
95
|
export const CreateChatCompletionBody = ChatCompletionRequest;
|
|
@@ -102,12 +99,12 @@ export const CreateChatCompletionBody = ChatCompletionRequest;
|
|
|
102
99
|
*/
|
|
103
100
|
export const CreateEmbeddingsBody = EmbeddingRequest;
|
|
104
101
|
/**
|
|
105
|
-
* Authenticated project inference in the Anthropic Messages protocol
|
|
102
|
+
* Authenticated project inference in the Anthropic Messages protocol. Accepted for every chat model, whichever protocol its providers speak. Accepts the `x-api-key` header as well as Authorization. Streams Anthropic SSE events when `stream` is true.
|
|
106
103
|
* @summary Create a message
|
|
107
104
|
*/
|
|
108
105
|
export const CreateMessageBody = NativeRequest;
|
|
109
106
|
/**
|
|
110
|
-
* Authenticated project inference in the Gemini protocol
|
|
107
|
+
* Authenticated project inference in the Gemini protocol. Accepted for every chat model, whichever protocol its providers speak. Accepts the `x-goog-api-key` header as well as Authorization.
|
|
111
108
|
* @summary Generate content
|
|
112
109
|
*/
|
|
113
110
|
export const GenerateContentParams = zod.strictObject({
|
|
@@ -4,17 +4,26 @@
|
|
|
4
4
|
* Leaflow Canopy API
|
|
5
5
|
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
6
|
*
|
|
7
|
-
* Project inference is served on this host
|
|
7
|
+
* Project inference is served on this host at each protocol's own endpoints:
|
|
8
8
|
*
|
|
9
9
|
* - OpenAI: `/v1/chat/completions`, `/v1/responses` and `/v1/embeddings`; use
|
|
10
10
|
* `https://canopy.leaflow.cloud/v1` as the OpenAI SDK base URL.
|
|
11
11
|
* - Anthropic: `/v1/messages`; use `https://canopy.leaflow.cloud` as the Anthropic SDK base URL.
|
|
12
12
|
* - Gemini: `/v1beta/models/{model}:generateContent` and `:streamGenerateContent`.
|
|
13
13
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* the model
|
|
17
|
-
*
|
|
14
|
+
* Every chat model accepts all four chat protocols: Chat Completions, Responses, Messages and Gemini
|
|
15
|
+
* generateContent. A request is forwarded unchanged, apart from the model name and the credentials, when a
|
|
16
|
+
* provider of the model speaks the protocol it was sent in; otherwise it is translated into a protocol a
|
|
17
|
+
* provider speaks, and the response is translated back. Content that cannot be translated, such as a tool
|
|
18
|
+
* that runs on another provider's servers or a reference to a file stored with another provider, is refused
|
|
19
|
+
* with 400 rather than dropped. Reasoning settings such as `reasoning_effort` are passed through as written;
|
|
20
|
+
* a model's `capabilities` lists the values it accepts.
|
|
21
|
+
*
|
|
22
|
+
* Responses is stateless: `store` must be false, and a response cannot be retrieved after it is returned.
|
|
23
|
+
* Send the output items of a response back unchanged, in their order, as input to the next request.
|
|
24
|
+
*
|
|
25
|
+
* What a model does follows from its `input_modalities`, `output_modalities` and the media blocks of its
|
|
26
|
+
* `capabilities`. Embeddings, images, audio and videos are accepted for a model whose providers serve them.
|
|
18
27
|
*
|
|
19
28
|
* Management operations use `/api/v1`. The management model catalogue names how each model is billed in Billing;
|
|
20
29
|
* `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
|
|
@@ -4,17 +4,26 @@
|
|
|
4
4
|
* Leaflow Canopy API
|
|
5
5
|
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
6
|
*
|
|
7
|
-
* Project inference is served on this host
|
|
7
|
+
* Project inference is served on this host at each protocol's own endpoints:
|
|
8
8
|
*
|
|
9
9
|
* - OpenAI: `/v1/chat/completions`, `/v1/responses` and `/v1/embeddings`; use
|
|
10
10
|
* `https://canopy.leaflow.cloud/v1` as the OpenAI SDK base URL.
|
|
11
11
|
* - Anthropic: `/v1/messages`; use `https://canopy.leaflow.cloud` as the Anthropic SDK base URL.
|
|
12
12
|
* - Gemini: `/v1beta/models/{model}:generateContent` and `:streamGenerateContent`.
|
|
13
13
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* the model
|
|
17
|
-
*
|
|
14
|
+
* Every chat model accepts all four chat protocols: Chat Completions, Responses, Messages and Gemini
|
|
15
|
+
* generateContent. A request is forwarded unchanged, apart from the model name and the credentials, when a
|
|
16
|
+
* provider of the model speaks the protocol it was sent in; otherwise it is translated into a protocol a
|
|
17
|
+
* provider speaks, and the response is translated back. Content that cannot be translated, such as a tool
|
|
18
|
+
* that runs on another provider's servers or a reference to a file stored with another provider, is refused
|
|
19
|
+
* with 400 rather than dropped. Reasoning settings such as `reasoning_effort` are passed through as written;
|
|
20
|
+
* a model's `capabilities` lists the values it accepts.
|
|
21
|
+
*
|
|
22
|
+
* Responses is stateless: `store` must be false, and a response cannot be retrieved after it is returned.
|
|
23
|
+
* Send the output items of a response back unchanged, in their order, as input to the next request.
|
|
24
|
+
*
|
|
25
|
+
* What a model does follows from its `input_modalities`, `output_modalities` and the media blocks of its
|
|
26
|
+
* `capabilities`. Embeddings, images, audio and videos are accepted for a model whose providers serve them.
|
|
18
27
|
*
|
|
19
28
|
* Management operations use `/api/v1`. The management model catalogue names how each model is billed in Billing;
|
|
20
29
|
* `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
|
|
@@ -4,17 +4,26 @@
|
|
|
4
4
|
* Leaflow Canopy API
|
|
5
5
|
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
6
|
*
|
|
7
|
-
* Project inference is served on this host
|
|
7
|
+
* Project inference is served on this host at each protocol's own endpoints:
|
|
8
8
|
*
|
|
9
9
|
* - OpenAI: `/v1/chat/completions`, `/v1/responses` and `/v1/embeddings`; use
|
|
10
10
|
* `https://canopy.leaflow.cloud/v1` as the OpenAI SDK base URL.
|
|
11
11
|
* - Anthropic: `/v1/messages`; use `https://canopy.leaflow.cloud` as the Anthropic SDK base URL.
|
|
12
12
|
* - Gemini: `/v1beta/models/{model}:generateContent` and `:streamGenerateContent`.
|
|
13
13
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* the model
|
|
17
|
-
*
|
|
14
|
+
* Every chat model accepts all four chat protocols: Chat Completions, Responses, Messages and Gemini
|
|
15
|
+
* generateContent. A request is forwarded unchanged, apart from the model name and the credentials, when a
|
|
16
|
+
* provider of the model speaks the protocol it was sent in; otherwise it is translated into a protocol a
|
|
17
|
+
* provider speaks, and the response is translated back. Content that cannot be translated, such as a tool
|
|
18
|
+
* that runs on another provider's servers or a reference to a file stored with another provider, is refused
|
|
19
|
+
* with 400 rather than dropped. Reasoning settings such as `reasoning_effort` are passed through as written;
|
|
20
|
+
* a model's `capabilities` lists the values it accepts.
|
|
21
|
+
*
|
|
22
|
+
* Responses is stateless: `store` must be false, and a response cannot be retrieved after it is returned.
|
|
23
|
+
* Send the output items of a response back unchanged, in their order, as input to the next request.
|
|
24
|
+
*
|
|
25
|
+
* What a model does follows from its `input_modalities`, `output_modalities` and the media blocks of its
|
|
26
|
+
* `capabilities`. Embeddings, images, audio and videos are accepted for a model whose providers serve them.
|
|
18
27
|
*
|
|
19
28
|
* Management operations use `/api/v1`. The management model catalogue names how each model is billed in Billing;
|
|
20
29
|
* `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
|
|
@@ -4,17 +4,26 @@
|
|
|
4
4
|
* Leaflow Canopy API
|
|
5
5
|
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
6
|
*
|
|
7
|
-
* Project inference is served on this host
|
|
7
|
+
* Project inference is served on this host at each protocol's own endpoints:
|
|
8
8
|
*
|
|
9
9
|
* - OpenAI: `/v1/chat/completions`, `/v1/responses` and `/v1/embeddings`; use
|
|
10
10
|
* `https://canopy.leaflow.cloud/v1` as the OpenAI SDK base URL.
|
|
11
11
|
* - Anthropic: `/v1/messages`; use `https://canopy.leaflow.cloud` as the Anthropic SDK base URL.
|
|
12
12
|
* - Gemini: `/v1beta/models/{model}:generateContent` and `:streamGenerateContent`.
|
|
13
13
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* the model
|
|
17
|
-
*
|
|
14
|
+
* Every chat model accepts all four chat protocols: Chat Completions, Responses, Messages and Gemini
|
|
15
|
+
* generateContent. A request is forwarded unchanged, apart from the model name and the credentials, when a
|
|
16
|
+
* provider of the model speaks the protocol it was sent in; otherwise it is translated into a protocol a
|
|
17
|
+
* provider speaks, and the response is translated back. Content that cannot be translated, such as a tool
|
|
18
|
+
* that runs on another provider's servers or a reference to a file stored with another provider, is refused
|
|
19
|
+
* with 400 rather than dropped. Reasoning settings such as `reasoning_effort` are passed through as written;
|
|
20
|
+
* a model's `capabilities` lists the values it accepts.
|
|
21
|
+
*
|
|
22
|
+
* Responses is stateless: `store` must be false, and a response cannot be retrieved after it is returned.
|
|
23
|
+
* Send the output items of a response back unchanged, in their order, as input to the next request.
|
|
24
|
+
*
|
|
25
|
+
* What a model does follows from its `input_modalities`, `output_modalities` and the media blocks of its
|
|
26
|
+
* `capabilities`. Embeddings, images, audio and videos are accepted for a model whose providers serve them.
|
|
18
27
|
*
|
|
19
28
|
* Management operations use `/api/v1`. The management model catalogue names how each model is billed in Billing;
|
|
20
29
|
* `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
|
|
@@ -4,17 +4,26 @@
|
|
|
4
4
|
* Leaflow Canopy API
|
|
5
5
|
* Canopy model inference, API keys, model catalogue, service enablement and recorded usage.
|
|
6
6
|
*
|
|
7
|
-
* Project inference is served on this host
|
|
7
|
+
* Project inference is served on this host at each protocol's own endpoints:
|
|
8
8
|
*
|
|
9
9
|
* - OpenAI: `/v1/chat/completions`, `/v1/responses` and `/v1/embeddings`; use
|
|
10
10
|
* `https://canopy.leaflow.cloud/v1` as the OpenAI SDK base URL.
|
|
11
11
|
* - Anthropic: `/v1/messages`; use `https://canopy.leaflow.cloud` as the Anthropic SDK base URL.
|
|
12
12
|
* - Gemini: `/v1beta/models/{model}:generateContent` and `:streamGenerateContent`.
|
|
13
13
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* the model
|
|
17
|
-
*
|
|
14
|
+
* Every chat model accepts all four chat protocols: Chat Completions, Responses, Messages and Gemini
|
|
15
|
+
* generateContent. A request is forwarded unchanged, apart from the model name and the credentials, when a
|
|
16
|
+
* provider of the model speaks the protocol it was sent in; otherwise it is translated into a protocol a
|
|
17
|
+
* provider speaks, and the response is translated back. Content that cannot be translated, such as a tool
|
|
18
|
+
* that runs on another provider's servers or a reference to a file stored with another provider, is refused
|
|
19
|
+
* with 400 rather than dropped. Reasoning settings such as `reasoning_effort` are passed through as written;
|
|
20
|
+
* a model's `capabilities` lists the values it accepts.
|
|
21
|
+
*
|
|
22
|
+
* Responses is stateless: `store` must be false, and a response cannot be retrieved after it is returned.
|
|
23
|
+
* Send the output items of a response back unchanged, in their order, as input to the next request.
|
|
24
|
+
*
|
|
25
|
+
* What a model does follows from its `input_modalities`, `output_modalities` and the media blocks of its
|
|
26
|
+
* `capabilities`. Embeddings, images, audio and videos are accepted for a model whose providers serve them.
|
|
18
27
|
*
|
|
19
28
|
* Management operations use `/api/v1`. The management model catalogue names how each model is billed in Billing;
|
|
20
29
|
* `/v1/models` returns the OpenAI model format with Canopy capabilities and parameter limits.
|