@keystrokehq/openai 0.1.0 → 0.1.3
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/README.md +1 -1
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-upload-part.cjs +5 -5
- package/dist/actions/add-upload-part.cjs.map +1 -1
- package/dist/actions/add-upload-part.d.cts +28 -3
- package/dist/actions/add-upload-part.d.cts.map +1 -1
- package/dist/actions/add-upload-part.d.mts +28 -3
- package/dist/actions/add-upload-part.d.mts.map +1 -1
- package/dist/actions/add-upload-part.mjs +5 -5
- package/dist/actions/add-upload-part.mjs.map +1 -1
- package/dist/actions/cancel-batch.cjs +19 -19
- package/dist/actions/cancel-batch.cjs.map +1 -1
- package/dist/actions/cancel-batch.d.cts +56 -3
- package/dist/actions/cancel-batch.d.cts.map +1 -1
- package/dist/actions/cancel-batch.d.mts +56 -3
- package/dist/actions/cancel-batch.d.mts.map +1 -1
- package/dist/actions/cancel-batch.mjs +19 -19
- package/dist/actions/cancel-batch.mjs.map +1 -1
- package/dist/actions/cancel-eval-run.cjs +31 -31
- package/dist/actions/cancel-eval-run.cjs.map +1 -1
- package/dist/actions/cancel-eval-run.d.cts +58 -3
- package/dist/actions/cancel-eval-run.d.cts.map +1 -1
- package/dist/actions/cancel-eval-run.d.mts +58 -3
- package/dist/actions/cancel-eval-run.d.mts.map +1 -1
- package/dist/actions/cancel-eval-run.mjs +31 -31
- package/dist/actions/cancel-eval-run.mjs.map +1 -1
- package/dist/actions/cancel-response.cjs +14 -14
- package/dist/actions/cancel-response.cjs.map +1 -1
- package/dist/actions/cancel-response.d.cts +73 -3
- package/dist/actions/cancel-response.d.cts.map +1 -1
- package/dist/actions/cancel-response.d.mts +73 -3
- package/dist/actions/cancel-response.d.mts.map +1 -1
- package/dist/actions/cancel-response.mjs +14 -14
- package/dist/actions/cancel-response.mjs.map +1 -1
- package/dist/actions/cancel-run.cjs +21 -21
- package/dist/actions/cancel-run.cjs.map +1 -1
- package/dist/actions/cancel-run.d.cts +69 -3
- package/dist/actions/cancel-run.d.cts.map +1 -1
- package/dist/actions/cancel-run.d.mts +69 -3
- package/dist/actions/cancel-run.d.mts.map +1 -1
- package/dist/actions/cancel-run.mjs +21 -21
- package/dist/actions/cancel-run.mjs.map +1 -1
- package/dist/actions/cancel-upload.cjs +17 -17
- package/dist/actions/cancel-upload.cjs.map +1 -1
- package/dist/actions/cancel-upload.d.cts +32 -3
- package/dist/actions/cancel-upload.d.cts.map +1 -1
- package/dist/actions/cancel-upload.d.mts +32 -3
- package/dist/actions/cancel-upload.d.mts.map +1 -1
- package/dist/actions/cancel-upload.mjs +17 -17
- package/dist/actions/cancel-upload.mjs.map +1 -1
- package/dist/actions/compact-response.cjs +21 -21
- package/dist/actions/compact-response.cjs.map +1 -1
- package/dist/actions/compact-response.d.cts +61 -3
- package/dist/actions/compact-response.d.cts.map +1 -1
- package/dist/actions/compact-response.d.mts +61 -3
- package/dist/actions/compact-response.d.mts.map +1 -1
- package/dist/actions/compact-response.mjs +21 -21
- package/dist/actions/compact-response.mjs.map +1 -1
- package/dist/actions/create-audio-transcription.cjs +3 -3
- package/dist/actions/create-audio-transcription.cjs.map +1 -1
- package/dist/actions/create-audio-transcription.d.cts +64 -3
- package/dist/actions/create-audio-transcription.d.cts.map +1 -1
- package/dist/actions/create-audio-transcription.d.mts +64 -3
- package/dist/actions/create-audio-transcription.d.mts.map +1 -1
- package/dist/actions/create-audio-transcription.mjs +3 -3
- package/dist/actions/create-audio-transcription.mjs.map +1 -1
- package/dist/actions/create-audio-translation.cjs +1 -1
- package/dist/actions/create-audio-translation.cjs.map +1 -1
- package/dist/actions/create-audio-translation.d.cts +40 -3
- package/dist/actions/create-audio-translation.d.cts.map +1 -1
- package/dist/actions/create-audio-translation.d.mts +40 -3
- package/dist/actions/create-audio-translation.d.mts.map +1 -1
- package/dist/actions/create-audio-translation.mjs +1 -1
- package/dist/actions/create-audio-translation.mjs.map +1 -1
- package/dist/actions/create-batch.cjs +21 -21
- package/dist/actions/create-batch.cjs.map +1 -1
- package/dist/actions/create-batch.d.cts +84 -3
- package/dist/actions/create-batch.d.cts.map +1 -1
- package/dist/actions/create-batch.d.mts +84 -3
- package/dist/actions/create-batch.d.mts.map +1 -1
- package/dist/actions/create-batch.mjs +21 -21
- package/dist/actions/create-batch.mjs.map +1 -1
- package/dist/actions/create-chat-completion.cjs +22 -22
- package/dist/actions/create-chat-completion.cjs.map +1 -1
- package/dist/actions/create-chat-completion.d.cts +186 -3
- package/dist/actions/create-chat-completion.d.cts.map +1 -1
- package/dist/actions/create-chat-completion.d.mts +186 -3
- package/dist/actions/create-chat-completion.d.mts.map +1 -1
- package/dist/actions/create-chat-completion.mjs +22 -22
- package/dist/actions/create-chat-completion.mjs.map +1 -1
- package/dist/actions/create-completion.cjs +18 -18
- package/dist/actions/create-completion.cjs.map +1 -1
- package/dist/actions/create-completion.d.cts +73 -3
- package/dist/actions/create-completion.d.cts.map +1 -1
- package/dist/actions/create-completion.d.mts +73 -3
- package/dist/actions/create-completion.d.mts.map +1 -1
- package/dist/actions/create-completion.mjs +18 -18
- package/dist/actions/create-completion.mjs.map +1 -1
- package/dist/actions/create-container-file.cjs +8 -8
- package/dist/actions/create-container-file.cjs.map +1 -1
- package/dist/actions/create-container-file.d.cts +19 -3
- package/dist/actions/create-container-file.d.cts.map +1 -1
- package/dist/actions/create-container-file.d.mts +19 -3
- package/dist/actions/create-container-file.d.mts.map +1 -1
- package/dist/actions/create-container-file.mjs +8 -8
- package/dist/actions/create-container-file.mjs.map +1 -1
- package/dist/actions/create-container.cjs +14 -14
- package/dist/actions/create-container.cjs.map +1 -1
- package/dist/actions/create-container.d.cts +85 -3
- package/dist/actions/create-container.d.cts.map +1 -1
- package/dist/actions/create-container.d.mts +85 -3
- package/dist/actions/create-container.d.mts.map +1 -1
- package/dist/actions/create-container.mjs +14 -14
- package/dist/actions/create-container.mjs.map +1 -1
- package/dist/actions/create-conversation-items.cjs +10 -10
- package/dist/actions/create-conversation-items.cjs.map +1 -1
- package/dist/actions/create-conversation-items.d.cts +67 -3
- package/dist/actions/create-conversation-items.d.cts.map +1 -1
- package/dist/actions/create-conversation-items.d.mts +67 -3
- package/dist/actions/create-conversation-items.d.mts.map +1 -1
- package/dist/actions/create-conversation-items.mjs +10 -10
- package/dist/actions/create-conversation-items.mjs.map +1 -1
- package/dist/actions/create-conversation.cjs +6 -6
- package/dist/actions/create-conversation.cjs.map +1 -1
- package/dist/actions/create-conversation.d.cts +28 -3
- package/dist/actions/create-conversation.d.cts.map +1 -1
- package/dist/actions/create-conversation.d.mts +28 -3
- package/dist/actions/create-conversation.d.mts.map +1 -1
- package/dist/actions/create-conversation.mjs +6 -6
- package/dist/actions/create-conversation.mjs.map +1 -1
- package/dist/actions/create-embeddings.cjs +9 -9
- package/dist/actions/create-embeddings.cjs.map +1 -1
- package/dist/actions/create-embeddings.d.cts +30 -3
- package/dist/actions/create-embeddings.d.cts.map +1 -1
- package/dist/actions/create-embeddings.d.mts +30 -3
- package/dist/actions/create-embeddings.d.mts.map +1 -1
- package/dist/actions/create-embeddings.mjs +9 -9
- package/dist/actions/create-embeddings.mjs.map +1 -1
- package/dist/actions/create-eval-run.cjs +45 -45
- package/dist/actions/create-eval-run.cjs.map +1 -1
- package/dist/actions/create-eval-run.d.cts +155 -3
- package/dist/actions/create-eval-run.d.cts.map +1 -1
- package/dist/actions/create-eval-run.d.mts +155 -3
- package/dist/actions/create-eval-run.d.mts.map +1 -1
- package/dist/actions/create-eval-run.mjs +45 -45
- package/dist/actions/create-eval-run.mjs.map +1 -1
- package/dist/actions/create-eval.cjs +14 -14
- package/dist/actions/create-eval.cjs.map +1 -1
- package/dist/actions/create-eval.d.cts +94 -3
- package/dist/actions/create-eval.d.cts.map +1 -1
- package/dist/actions/create-eval.d.mts +94 -3
- package/dist/actions/create-eval.d.mts.map +1 -1
- package/dist/actions/create-eval.mjs +14 -14
- package/dist/actions/create-eval.mjs.map +1 -1
- package/dist/actions/create-fine-tuning-job.cjs +13 -13
- package/dist/actions/create-fine-tuning-job.cjs.map +1 -1
- package/dist/actions/create-fine-tuning-job.d.cts +67 -3
- package/dist/actions/create-fine-tuning-job.d.cts.map +1 -1
- package/dist/actions/create-fine-tuning-job.d.mts +67 -3
- package/dist/actions/create-fine-tuning-job.d.mts.map +1 -1
- package/dist/actions/create-fine-tuning-job.mjs +13 -13
- package/dist/actions/create-fine-tuning-job.mjs.map +1 -1
- package/dist/actions/create-image-edit.cjs +6 -6
- package/dist/actions/create-image-edit.cjs.map +1 -1
- package/dist/actions/create-image-edit.d.cts +82 -3
- package/dist/actions/create-image-edit.d.cts.map +1 -1
- package/dist/actions/create-image-edit.d.mts +82 -3
- package/dist/actions/create-image-edit.d.mts.map +1 -1
- package/dist/actions/create-image-edit.mjs +6 -6
- package/dist/actions/create-image-edit.mjs.map +1 -1
- package/dist/actions/create-image-variation.cjs +3 -3
- package/dist/actions/create-image-variation.cjs.map +1 -1
- package/dist/actions/create-image-variation.d.cts +39 -3
- package/dist/actions/create-image-variation.d.cts.map +1 -1
- package/dist/actions/create-image-variation.d.mts +39 -3
- package/dist/actions/create-image-variation.d.mts.map +1 -1
- package/dist/actions/create-image-variation.mjs +3 -3
- package/dist/actions/create-image-variation.mjs.map +1 -1
- package/dist/actions/create-image.cjs +10 -10
- package/dist/actions/create-image.cjs.map +1 -1
- package/dist/actions/create-image.d.cts +70 -3
- package/dist/actions/create-image.d.cts.map +1 -1
- package/dist/actions/create-image.d.mts +70 -3
- package/dist/actions/create-image.d.mts.map +1 -1
- package/dist/actions/create-image.mjs +10 -10
- package/dist/actions/create-image.mjs.map +1 -1
- package/dist/actions/create-message.cjs +24 -24
- package/dist/actions/create-message.cjs.map +1 -1
- package/dist/actions/create-message.d.cts +101 -3
- package/dist/actions/create-message.d.cts.map +1 -1
- package/dist/actions/create-message.d.mts +101 -3
- package/dist/actions/create-message.d.mts.map +1 -1
- package/dist/actions/create-message.mjs +24 -24
- package/dist/actions/create-message.mjs.map +1 -1
- package/dist/actions/create-moderation.cjs +32 -32
- package/dist/actions/create-moderation.cjs.map +1 -1
- package/dist/actions/create-moderation.d.cts +69 -3
- package/dist/actions/create-moderation.d.cts.map +1 -1
- package/dist/actions/create-moderation.d.mts +69 -3
- package/dist/actions/create-moderation.d.mts.map +1 -1
- package/dist/actions/create-moderation.mjs +32 -32
- package/dist/actions/create-moderation.mjs.map +1 -1
- package/dist/actions/create-realtime-call.cjs +2 -2
- package/dist/actions/create-realtime-call.cjs.map +1 -1
- package/dist/actions/create-realtime-call.d.cts +12 -3
- package/dist/actions/create-realtime-call.d.cts.map +1 -1
- package/dist/actions/create-realtime-call.d.mts +12 -3
- package/dist/actions/create-realtime-call.d.mts.map +1 -1
- package/dist/actions/create-realtime-call.mjs +2 -2
- package/dist/actions/create-realtime-call.mjs.map +1 -1
- package/dist/actions/create-realtime-client-secret.cjs +5 -5
- package/dist/actions/create-realtime-client-secret.cjs.map +1 -1
- package/dist/actions/create-realtime-client-secret.d.cts +55 -3
- package/dist/actions/create-realtime-client-secret.d.cts.map +1 -1
- package/dist/actions/create-realtime-client-secret.d.mts +55 -3
- package/dist/actions/create-realtime-client-secret.d.mts.map +1 -1
- package/dist/actions/create-realtime-client-secret.mjs +5 -5
- package/dist/actions/create-realtime-client-secret.mjs.map +1 -1
- package/dist/actions/create-realtime-session.cjs +12 -12
- package/dist/actions/create-realtime-session.cjs.map +1 -1
- package/dist/actions/create-realtime-session.d.cts +130 -3
- package/dist/actions/create-realtime-session.d.cts.map +1 -1
- package/dist/actions/create-realtime-session.d.mts +130 -3
- package/dist/actions/create-realtime-session.d.mts.map +1 -1
- package/dist/actions/create-realtime-session.mjs +12 -12
- package/dist/actions/create-realtime-session.mjs.map +1 -1
- package/dist/actions/create-realtime-transcription-session.cjs +6 -6
- package/dist/actions/create-realtime-transcription-session.cjs.map +1 -1
- package/dist/actions/create-realtime-transcription-session.d.cts +70 -3
- package/dist/actions/create-realtime-transcription-session.d.cts.map +1 -1
- package/dist/actions/create-realtime-transcription-session.d.mts +70 -3
- package/dist/actions/create-realtime-transcription-session.d.mts.map +1 -1
- package/dist/actions/create-realtime-transcription-session.mjs +6 -6
- package/dist/actions/create-realtime-transcription-session.mjs.map +1 -1
- package/dist/actions/create-response.cjs +24 -24
- package/dist/actions/create-response.cjs.map +1 -1
- package/dist/actions/create-response.d.cts +161 -3
- package/dist/actions/create-response.d.cts.map +1 -1
- package/dist/actions/create-response.d.mts +161 -3
- package/dist/actions/create-response.d.mts.map +1 -1
- package/dist/actions/create-response.mjs +24 -24
- package/dist/actions/create-response.mjs.map +1 -1
- package/dist/actions/create-run.cjs +46 -46
- package/dist/actions/create-run.cjs.map +1 -1
- package/dist/actions/create-run.d.cts +206 -3
- package/dist/actions/create-run.d.cts.map +1 -1
- package/dist/actions/create-run.d.mts +206 -3
- package/dist/actions/create-run.d.mts.map +1 -1
- package/dist/actions/create-run.mjs +46 -46
- package/dist/actions/create-run.mjs.map +1 -1
- package/dist/actions/create-skill.cjs +10 -10
- package/dist/actions/create-skill.cjs.map +1 -1
- package/dist/actions/create-skill.d.cts +33 -3
- package/dist/actions/create-skill.d.cts.map +1 -1
- package/dist/actions/create-skill.d.mts +33 -3
- package/dist/actions/create-skill.d.mts.map +1 -1
- package/dist/actions/create-skill.mjs +10 -10
- package/dist/actions/create-skill.mjs.map +1 -1
- package/dist/actions/create-speech.cjs +5 -5
- package/dist/actions/create-speech.cjs.map +1 -1
- package/dist/actions/create-speech.d.cts +46 -3
- package/dist/actions/create-speech.d.cts.map +1 -1
- package/dist/actions/create-speech.d.mts +46 -3
- package/dist/actions/create-speech.d.mts.map +1 -1
- package/dist/actions/create-speech.mjs +5 -5
- package/dist/actions/create-speech.mjs.map +1 -1
- package/dist/actions/create-thread-and-run.cjs +53 -53
- package/dist/actions/create-thread-and-run.cjs.map +1 -1
- package/dist/actions/create-thread-and-run.d.cts +263 -3
- package/dist/actions/create-thread-and-run.d.cts.map +1 -1
- package/dist/actions/create-thread-and-run.d.mts +263 -3
- package/dist/actions/create-thread-and-run.d.mts.map +1 -1
- package/dist/actions/create-thread-and-run.mjs +53 -53
- package/dist/actions/create-thread-and-run.mjs.map +1 -1
- package/dist/actions/create-thread.cjs +10 -10
- package/dist/actions/create-thread.cjs.map +1 -1
- package/dist/actions/create-thread.d.cts +31 -3
- package/dist/actions/create-thread.d.cts.map +1 -1
- package/dist/actions/create-thread.d.mts +31 -3
- package/dist/actions/create-thread.d.mts.map +1 -1
- package/dist/actions/create-thread.mjs +10 -10
- package/dist/actions/create-thread.mjs.map +1 -1
- package/dist/actions/create-upload.cjs +16 -16
- package/dist/actions/create-upload.cjs.map +1 -1
- package/dist/actions/create-upload.d.cts +53 -3
- package/dist/actions/create-upload.d.cts.map +1 -1
- package/dist/actions/create-upload.d.mts +53 -3
- package/dist/actions/create-upload.d.mts.map +1 -1
- package/dist/actions/create-upload.mjs +16 -16
- package/dist/actions/create-upload.mjs.map +1 -1
- package/dist/actions/create-vector-store-file-batch.cjs +20 -20
- package/dist/actions/create-vector-store-file-batch.cjs.map +1 -1
- package/dist/actions/create-vector-store-file-batch.d.cts +92 -3
- package/dist/actions/create-vector-store-file-batch.d.cts.map +1 -1
- package/dist/actions/create-vector-store-file-batch.d.mts +92 -3
- package/dist/actions/create-vector-store-file-batch.d.mts.map +1 -1
- package/dist/actions/create-vector-store-file-batch.mjs +20 -20
- package/dist/actions/create-vector-store-file-batch.mjs.map +1 -1
- package/dist/actions/create-vector-store-file.cjs +15 -15
- package/dist/actions/create-vector-store-file.cjs.map +1 -1
- package/dist/actions/create-vector-store-file.d.cts +58 -3
- package/dist/actions/create-vector-store-file.d.cts.map +1 -1
- package/dist/actions/create-vector-store-file.d.mts +58 -3
- package/dist/actions/create-vector-store-file.d.mts.map +1 -1
- package/dist/actions/create-vector-store-file.mjs +15 -15
- package/dist/actions/create-vector-store-file.mjs.map +1 -1
- package/dist/actions/create-vector-store.cjs +19 -19
- package/dist/actions/create-vector-store.cjs.map +1 -1
- package/dist/actions/create-vector-store.d.cts +71 -3
- package/dist/actions/create-vector-store.d.cts.map +1 -1
- package/dist/actions/create-vector-store.d.mts +71 -3
- package/dist/actions/create-vector-store.d.mts.map +1 -1
- package/dist/actions/create-vector-store.mjs +19 -19
- package/dist/actions/create-vector-store.mjs.map +1 -1
- package/dist/actions/create-video-remix.cjs +8 -8
- package/dist/actions/create-video-remix.cjs.map +1 -1
- package/dist/actions/create-video-remix.d.cts +40 -3
- package/dist/actions/create-video-remix.d.cts.map +1 -1
- package/dist/actions/create-video-remix.d.mts +40 -3
- package/dist/actions/create-video-remix.d.mts.map +1 -1
- package/dist/actions/create-video-remix.mjs +8 -8
- package/dist/actions/create-video-remix.mjs.map +1 -1
- package/dist/actions/create-video.cjs +12 -12
- package/dist/actions/create-video.cjs.map +1 -1
- package/dist/actions/create-video.d.cts +39 -3
- package/dist/actions/create-video.d.cts.map +1 -1
- package/dist/actions/create-video.d.mts +39 -3
- package/dist/actions/create-video.d.mts.map +1 -1
- package/dist/actions/create-video.mjs +12 -12
- package/dist/actions/create-video.mjs.map +1 -1
- package/dist/actions/delete-assistant.cjs +1 -1
- package/dist/actions/delete-assistant.cjs.map +1 -1
- package/dist/actions/delete-assistant.d.cts +11 -3
- package/dist/actions/delete-assistant.d.cts.map +1 -1
- package/dist/actions/delete-assistant.d.mts +11 -3
- package/dist/actions/delete-assistant.d.mts.map +1 -1
- package/dist/actions/delete-assistant.mjs +1 -1
- package/dist/actions/delete-assistant.mjs.map +1 -1
- package/dist/actions/delete-chat-completion.cjs +4 -4
- package/dist/actions/delete-chat-completion.cjs.map +1 -1
- package/dist/actions/delete-chat-completion.d.cts +11 -3
- package/dist/actions/delete-chat-completion.d.cts.map +1 -1
- package/dist/actions/delete-chat-completion.d.mts +11 -3
- package/dist/actions/delete-chat-completion.d.mts.map +1 -1
- package/dist/actions/delete-chat-completion.mjs +4 -4
- package/dist/actions/delete-chat-completion.mjs.map +1 -1
- package/dist/actions/delete-container-file.cjs +1 -1
- package/dist/actions/delete-container-file.cjs.map +1 -1
- package/dist/actions/delete-container-file.d.cts +13 -3
- package/dist/actions/delete-container-file.d.cts.map +1 -1
- package/dist/actions/delete-container-file.d.mts +13 -3
- package/dist/actions/delete-container-file.d.mts.map +1 -1
- package/dist/actions/delete-container-file.mjs +1 -1
- package/dist/actions/delete-container-file.mjs.map +1 -1
- package/dist/actions/delete-container.cjs +4 -4
- package/dist/actions/delete-container.cjs.map +1 -1
- package/dist/actions/delete-container.d.cts +11 -3
- package/dist/actions/delete-container.d.cts.map +1 -1
- package/dist/actions/delete-container.d.mts +11 -3
- package/dist/actions/delete-container.d.mts.map +1 -1
- package/dist/actions/delete-container.mjs +4 -4
- package/dist/actions/delete-container.mjs.map +1 -1
- package/dist/actions/delete-conversation-item.cjs +1 -1
- package/dist/actions/delete-conversation-item.cjs.map +1 -1
- package/dist/actions/delete-conversation-item.d.cts +14 -3
- package/dist/actions/delete-conversation-item.d.cts.map +1 -1
- package/dist/actions/delete-conversation-item.d.mts +14 -3
- package/dist/actions/delete-conversation-item.d.mts.map +1 -1
- package/dist/actions/delete-conversation-item.mjs +1 -1
- package/dist/actions/delete-conversation-item.mjs.map +1 -1
- package/dist/actions/delete-conversation.cjs +4 -4
- package/dist/actions/delete-conversation.cjs.map +1 -1
- package/dist/actions/delete-conversation.d.cts +11 -3
- package/dist/actions/delete-conversation.d.cts.map +1 -1
- package/dist/actions/delete-conversation.d.mts +11 -3
- package/dist/actions/delete-conversation.d.mts.map +1 -1
- package/dist/actions/delete-conversation.mjs +4 -4
- package/dist/actions/delete-conversation.mjs.map +1 -1
- package/dist/actions/delete-eval-run.cjs +4 -4
- package/dist/actions/delete-eval-run.cjs.map +1 -1
- package/dist/actions/delete-eval-run.d.cts +13 -3
- package/dist/actions/delete-eval-run.d.cts.map +1 -1
- package/dist/actions/delete-eval-run.d.mts +13 -3
- package/dist/actions/delete-eval-run.d.mts.map +1 -1
- package/dist/actions/delete-eval-run.mjs +4 -4
- package/dist/actions/delete-eval-run.mjs.map +1 -1
- package/dist/actions/delete-eval.cjs +4 -4
- package/dist/actions/delete-eval.cjs.map +1 -1
- package/dist/actions/delete-eval.d.cts +11 -3
- package/dist/actions/delete-eval.d.cts.map +1 -1
- package/dist/actions/delete-eval.d.mts +11 -3
- package/dist/actions/delete-eval.d.mts.map +1 -1
- package/dist/actions/delete-eval.mjs +4 -4
- package/dist/actions/delete-eval.mjs.map +1 -1
- package/dist/actions/delete-file.cjs +4 -4
- package/dist/actions/delete-file.cjs.map +1 -1
- package/dist/actions/delete-file.d.cts +11 -3
- package/dist/actions/delete-file.d.cts.map +1 -1
- package/dist/actions/delete-file.d.mts +11 -3
- package/dist/actions/delete-file.d.mts.map +1 -1
- package/dist/actions/delete-file.mjs +4 -4
- package/dist/actions/delete-file.mjs.map +1 -1
- package/dist/actions/delete-message.cjs +4 -4
- package/dist/actions/delete-message.cjs.map +1 -1
- package/dist/actions/delete-message.d.cts +13 -3
- package/dist/actions/delete-message.d.cts.map +1 -1
- package/dist/actions/delete-message.d.mts +13 -3
- package/dist/actions/delete-message.d.mts.map +1 -1
- package/dist/actions/delete-message.mjs +4 -4
- package/dist/actions/delete-message.mjs.map +1 -1
- package/dist/actions/delete-response.cjs +4 -4
- package/dist/actions/delete-response.cjs.map +1 -1
- package/dist/actions/delete-response.d.cts +11 -3
- package/dist/actions/delete-response.d.cts.map +1 -1
- package/dist/actions/delete-response.d.mts +11 -3
- package/dist/actions/delete-response.d.mts.map +1 -1
- package/dist/actions/delete-response.mjs +4 -4
- package/dist/actions/delete-response.mjs.map +1 -1
- package/dist/actions/delete-skill.cjs +4 -4
- package/dist/actions/delete-skill.cjs.map +1 -1
- package/dist/actions/delete-skill.d.cts +11 -3
- package/dist/actions/delete-skill.d.cts.map +1 -1
- package/dist/actions/delete-skill.d.mts +11 -3
- package/dist/actions/delete-skill.d.mts.map +1 -1
- package/dist/actions/delete-skill.mjs +4 -4
- package/dist/actions/delete-skill.mjs.map +1 -1
- package/dist/actions/delete-thread.cjs +4 -4
- package/dist/actions/delete-thread.cjs.map +1 -1
- package/dist/actions/delete-thread.d.cts +11 -3
- package/dist/actions/delete-thread.d.cts.map +1 -1
- package/dist/actions/delete-thread.d.mts +11 -3
- package/dist/actions/delete-thread.d.mts.map +1 -1
- package/dist/actions/delete-thread.mjs +4 -4
- package/dist/actions/delete-thread.mjs.map +1 -1
- package/dist/actions/delete-vector-store-file.cjs +1 -1
- package/dist/actions/delete-vector-store-file.cjs.map +1 -1
- package/dist/actions/delete-vector-store-file.d.cts +13 -3
- package/dist/actions/delete-vector-store-file.d.cts.map +1 -1
- package/dist/actions/delete-vector-store-file.d.mts +13 -3
- package/dist/actions/delete-vector-store-file.d.mts.map +1 -1
- package/dist/actions/delete-vector-store-file.mjs +1 -1
- package/dist/actions/delete-vector-store-file.mjs.map +1 -1
- package/dist/actions/delete-vector-store.cjs +4 -4
- package/dist/actions/delete-vector-store.cjs.map +1 -1
- package/dist/actions/delete-vector-store.d.cts +11 -3
- package/dist/actions/delete-vector-store.d.cts.map +1 -1
- package/dist/actions/delete-vector-store.d.mts +11 -3
- package/dist/actions/delete-vector-store.d.mts.map +1 -1
- package/dist/actions/delete-vector-store.mjs +4 -4
- package/dist/actions/delete-vector-store.mjs.map +1 -1
- package/dist/actions/delete-video.cjs +4 -4
- package/dist/actions/delete-video.cjs.map +1 -1
- package/dist/actions/delete-video.d.cts +11 -3
- package/dist/actions/delete-video.d.cts.map +1 -1
- package/dist/actions/delete-video.d.mts +11 -3
- package/dist/actions/delete-video.d.mts.map +1 -1
- package/dist/actions/delete-video.mjs +4 -4
- package/dist/actions/delete-video.mjs.map +1 -1
- package/dist/actions/download-file.cjs +5 -5
- package/dist/actions/download-file.cjs.map +1 -1
- package/dist/actions/download-file.d.cts +13 -3
- package/dist/actions/download-file.d.cts.map +1 -1
- package/dist/actions/download-file.d.mts +13 -3
- package/dist/actions/download-file.d.mts.map +1 -1
- package/dist/actions/download-file.mjs +5 -5
- package/dist/actions/download-file.mjs.map +1 -1
- package/dist/actions/download-video.cjs +7 -7
- package/dist/actions/download-video.cjs.map +1 -1
- package/dist/actions/download-video.d.cts +22 -3
- package/dist/actions/download-video.d.cts.map +1 -1
- package/dist/actions/download-video.d.mts +22 -3
- package/dist/actions/download-video.d.mts.map +1 -1
- package/dist/actions/download-video.mjs +7 -7
- package/dist/actions/download-video.mjs.map +1 -1
- package/dist/actions/get-chat-completion-messages.cjs +8 -8
- package/dist/actions/get-chat-completion-messages.cjs.map +1 -1
- package/dist/actions/get-chat-completion-messages.d.cts +32 -3
- package/dist/actions/get-chat-completion-messages.d.cts.map +1 -1
- package/dist/actions/get-chat-completion-messages.d.mts +32 -3
- package/dist/actions/get-chat-completion-messages.d.mts.map +1 -1
- package/dist/actions/get-chat-completion-messages.mjs +8 -8
- package/dist/actions/get-chat-completion-messages.mjs.map +1 -1
- package/dist/actions/get-chat-completion.cjs +17 -17
- package/dist/actions/get-chat-completion.cjs.map +1 -1
- package/dist/actions/get-chat-completion.d.cts +44 -3
- package/dist/actions/get-chat-completion.d.cts.map +1 -1
- package/dist/actions/get-chat-completion.d.mts +44 -3
- package/dist/actions/get-chat-completion.d.mts.map +1 -1
- package/dist/actions/get-chat-completion.mjs +17 -17
- package/dist/actions/get-chat-completion.mjs.map +1 -1
- package/dist/actions/get-chatkit-thread.cjs +10 -10
- package/dist/actions/get-chatkit-thread.cjs.map +1 -1
- package/dist/actions/get-chatkit-thread.d.cts +22 -3
- package/dist/actions/get-chatkit-thread.d.cts.map +1 -1
- package/dist/actions/get-chatkit-thread.d.mts +22 -3
- package/dist/actions/get-chatkit-thread.d.mts.map +1 -1
- package/dist/actions/get-chatkit-thread.mjs +10 -10
- package/dist/actions/get-chatkit-thread.mjs.map +1 -1
- package/dist/actions/get-conversation-item.cjs +3 -3
- package/dist/actions/get-conversation-item.cjs.map +1 -1
- package/dist/actions/get-conversation-item.d.cts +41 -3
- package/dist/actions/get-conversation-item.d.cts.map +1 -1
- package/dist/actions/get-conversation-item.d.mts +41 -3
- package/dist/actions/get-conversation-item.d.mts.map +1 -1
- package/dist/actions/get-conversation-item.mjs +3 -3
- package/dist/actions/get-conversation-item.mjs.map +1 -1
- package/dist/actions/get-eval-run-output-item.cjs +21 -21
- package/dist/actions/get-eval-run-output-item.cjs.map +1 -1
- package/dist/actions/get-eval-run-output-item.d.cts +47 -3
- package/dist/actions/get-eval-run-output-item.d.cts.map +1 -1
- package/dist/actions/get-eval-run-output-item.d.mts +47 -3
- package/dist/actions/get-eval-run-output-item.d.mts.map +1 -1
- package/dist/actions/get-eval-run-output-item.mjs +21 -21
- package/dist/actions/get-eval-run-output-item.mjs.map +1 -1
- package/dist/actions/get-eval-run-output-items.cjs +25 -25
- package/dist/actions/get-eval-run-output-items.cjs.map +1 -1
- package/dist/actions/get-eval-run-output-items.d.cts +68 -3
- package/dist/actions/get-eval-run-output-items.d.cts.map +1 -1
- package/dist/actions/get-eval-run-output-items.d.mts +68 -3
- package/dist/actions/get-eval-run-output-items.d.mts.map +1 -1
- package/dist/actions/get-eval-run-output-items.mjs +25 -25
- package/dist/actions/get-eval-run-output-items.mjs.map +1 -1
- package/dist/actions/get-eval-run.cjs +36 -36
- package/dist/actions/get-eval-run.cjs.map +1 -1
- package/dist/actions/get-eval-run.d.cts +76 -3
- package/dist/actions/get-eval-run.d.cts.map +1 -1
- package/dist/actions/get-eval-run.d.mts +76 -3
- package/dist/actions/get-eval-run.d.mts.map +1 -1
- package/dist/actions/get-eval-run.mjs +36 -36
- package/dist/actions/get-eval-run.mjs.map +1 -1
- package/dist/actions/get-eval-runs.cjs +29 -29
- package/dist/actions/get-eval-runs.cjs.map +1 -1
- package/dist/actions/get-eval-runs.d.cts +64 -3
- package/dist/actions/get-eval-runs.d.cts.map +1 -1
- package/dist/actions/get-eval-runs.d.mts +64 -3
- package/dist/actions/get-eval-runs.d.mts.map +1 -1
- package/dist/actions/get-eval-runs.mjs +29 -29
- package/dist/actions/get-eval-runs.mjs.map +1 -1
- package/dist/actions/get-eval.cjs +5 -5
- package/dist/actions/get-eval.cjs.map +1 -1
- package/dist/actions/get-eval.d.cts +15 -3
- package/dist/actions/get-eval.d.cts.map +1 -1
- package/dist/actions/get-eval.d.mts +15 -3
- package/dist/actions/get-eval.d.mts.map +1 -1
- package/dist/actions/get-eval.mjs +5 -5
- package/dist/actions/get-eval.mjs.map +1 -1
- package/dist/actions/get-input-token-counts.cjs +3 -3
- package/dist/actions/get-input-token-counts.cjs.map +1 -1
- package/dist/actions/get-input-token-counts.d.cts +47 -3
- package/dist/actions/get-input-token-counts.d.cts.map +1 -1
- package/dist/actions/get-input-token-counts.d.mts +47 -3
- package/dist/actions/get-input-token-counts.d.mts.map +1 -1
- package/dist/actions/get-input-token-counts.mjs +3 -3
- package/dist/actions/get-input-token-counts.mjs.map +1 -1
- package/dist/actions/get-message.cjs +19 -19
- package/dist/actions/get-message.cjs.map +1 -1
- package/dist/actions/get-message.d.cts +64 -3
- package/dist/actions/get-message.d.cts.map +1 -1
- package/dist/actions/get-message.d.mts +64 -3
- package/dist/actions/get-message.d.mts.map +1 -1
- package/dist/actions/get-message.mjs +19 -19
- package/dist/actions/get-message.mjs.map +1 -1
- package/dist/actions/get-response.cjs +19 -19
- package/dist/actions/get-response.cjs.map +1 -1
- package/dist/actions/get-response.d.cts +77 -3
- package/dist/actions/get-response.d.cts.map +1 -1
- package/dist/actions/get-response.d.mts +77 -3
- package/dist/actions/get-response.d.mts.map +1 -1
- package/dist/actions/get-response.mjs +19 -19
- package/dist/actions/get-response.mjs.map +1 -1
- package/dist/actions/get-run-step.cjs +43 -43
- package/dist/actions/get-run-step.cjs.map +1 -1
- package/dist/actions/get-run-step.d.cts +91 -3
- package/dist/actions/get-run-step.d.cts.map +1 -1
- package/dist/actions/get-run-step.d.mts +91 -3
- package/dist/actions/get-run-step.d.mts.map +1 -1
- package/dist/actions/get-run-step.mjs +43 -43
- package/dist/actions/get-run-step.mjs.map +1 -1
- package/dist/actions/get-vector-store-file-batch.cjs +11 -11
- package/dist/actions/get-vector-store-file-batch.cjs.map +1 -1
- package/dist/actions/get-vector-store-file-batch.d.cts +27 -3
- package/dist/actions/get-vector-store-file-batch.d.cts.map +1 -1
- package/dist/actions/get-vector-store-file-batch.d.mts +27 -3
- package/dist/actions/get-vector-store-file-batch.d.mts.map +1 -1
- package/dist/actions/get-vector-store-file-batch.mjs +11 -11
- package/dist/actions/get-vector-store-file-batch.mjs.map +1 -1
- package/dist/actions/get-vector-store-file.cjs +12 -12
- package/dist/actions/get-vector-store-file.cjs.map +1 -1
- package/dist/actions/get-vector-store-file.d.cts +32 -3
- package/dist/actions/get-vector-store-file.d.cts.map +1 -1
- package/dist/actions/get-vector-store-file.d.mts +32 -3
- package/dist/actions/get-vector-store-file.d.mts.map +1 -1
- package/dist/actions/get-vector-store-file.mjs +12 -12
- package/dist/actions/get-vector-store-file.mjs.map +1 -1
- package/dist/actions/get-vector-store.cjs +15 -15
- package/dist/actions/get-vector-store.cjs.map +1 -1
- package/dist/actions/get-vector-store.d.cts +34 -3
- package/dist/actions/get-vector-store.d.cts.map +1 -1
- package/dist/actions/get-vector-store.d.mts +34 -3
- package/dist/actions/get-vector-store.d.mts.map +1 -1
- package/dist/actions/get-vector-store.mjs +15 -15
- package/dist/actions/get-vector-store.mjs.map +1 -1
- package/dist/actions/get-video.cjs +9 -9
- package/dist/actions/get-video.cjs.map +1 -1
- package/dist/actions/get-video.d.cts +38 -3
- package/dist/actions/get-video.d.cts.map +1 -1
- package/dist/actions/get-video.d.mts +38 -3
- package/dist/actions/get-video.d.mts.map +1 -1
- package/dist/actions/get-video.mjs +9 -9
- package/dist/actions/get-video.mjs.map +1 -1
- package/dist/actions/list-assistants.cjs +28 -28
- package/dist/actions/list-assistants.cjs.map +1 -1
- package/dist/actions/list-assistants.d.cts +77 -3
- package/dist/actions/list-assistants.d.cts.map +1 -1
- package/dist/actions/list-assistants.d.mts +77 -3
- package/dist/actions/list-assistants.d.mts.map +1 -1
- package/dist/actions/list-assistants.mjs +28 -28
- package/dist/actions/list-assistants.mjs.map +1 -1
- package/dist/actions/list-batches.cjs +23 -23
- package/dist/actions/list-batches.cjs.map +1 -1
- package/dist/actions/list-batches.d.cts +64 -3
- package/dist/actions/list-batches.d.cts.map +1 -1
- package/dist/actions/list-batches.d.mts +64 -3
- package/dist/actions/list-batches.d.mts.map +1 -1
- package/dist/actions/list-batches.mjs +23 -23
- package/dist/actions/list-batches.mjs.map +1 -1
- package/dist/actions/list-chat-completions.cjs +14 -14
- package/dist/actions/list-chat-completions.cjs.map +1 -1
- package/dist/actions/list-chat-completions.d.cts +44 -3
- package/dist/actions/list-chat-completions.d.cts.map +1 -1
- package/dist/actions/list-chat-completions.d.mts +44 -3
- package/dist/actions/list-chat-completions.d.mts.map +1 -1
- package/dist/actions/list-chat-completions.mjs +14 -14
- package/dist/actions/list-chat-completions.mjs.map +1 -1
- package/dist/actions/list-chatkit-thread-items.cjs +9 -9
- package/dist/actions/list-chatkit-thread-items.cjs.map +1 -1
- package/dist/actions/list-chatkit-thread-items.d.cts +43 -3
- package/dist/actions/list-chatkit-thread-items.d.cts.map +1 -1
- package/dist/actions/list-chatkit-thread-items.d.mts +43 -3
- package/dist/actions/list-chatkit-thread-items.d.mts.map +1 -1
- package/dist/actions/list-chatkit-thread-items.mjs +9 -9
- package/dist/actions/list-chatkit-thread-items.mjs.map +1 -1
- package/dist/actions/list-container-files.cjs +11 -11
- package/dist/actions/list-container-files.cjs.map +1 -1
- package/dist/actions/list-container-files.d.cts +30 -3
- package/dist/actions/list-container-files.d.cts.map +1 -1
- package/dist/actions/list-container-files.d.mts +30 -3
- package/dist/actions/list-container-files.d.mts.map +1 -1
- package/dist/actions/list-container-files.mjs +11 -11
- package/dist/actions/list-container-files.mjs.map +1 -1
- package/dist/actions/list-containers.cjs +11 -11
- package/dist/actions/list-containers.cjs.map +1 -1
- package/dist/actions/list-containers.d.cts +38 -3
- package/dist/actions/list-containers.d.cts.map +1 -1
- package/dist/actions/list-containers.d.mts +38 -3
- package/dist/actions/list-containers.d.mts.map +1 -1
- package/dist/actions/list-containers.mjs +11 -11
- package/dist/actions/list-containers.mjs.map +1 -1
- package/dist/actions/list-conversation-items.cjs +6 -6
- package/dist/actions/list-conversation-items.cjs.map +1 -1
- package/dist/actions/list-conversation-items.d.cts +54 -3
- package/dist/actions/list-conversation-items.d.cts.map +1 -1
- package/dist/actions/list-conversation-items.d.mts +54 -3
- package/dist/actions/list-conversation-items.d.mts.map +1 -1
- package/dist/actions/list-conversation-items.mjs +6 -6
- package/dist/actions/list-conversation-items.mjs.map +1 -1
- package/dist/actions/list-engines.cjs +8 -8
- package/dist/actions/list-engines.cjs.map +1 -1
- package/dist/actions/list-engines.d.cts +12 -3
- package/dist/actions/list-engines.d.cts.map +1 -1
- package/dist/actions/list-engines.d.mts +12 -3
- package/dist/actions/list-engines.d.mts.map +1 -1
- package/dist/actions/list-engines.mjs +8 -8
- package/dist/actions/list-engines.mjs.map +1 -1
- package/dist/actions/list-evals.cjs +50 -50
- package/dist/actions/list-evals.cjs.map +1 -1
- package/dist/actions/list-evals.d.cts +138 -3
- package/dist/actions/list-evals.d.cts.map +1 -1
- package/dist/actions/list-evals.d.mts +138 -3
- package/dist/actions/list-evals.d.mts.map +1 -1
- package/dist/actions/list-evals.mjs +50 -50
- package/dist/actions/list-evals.mjs.map +1 -1
- package/dist/actions/list-files-in-vector-store-batch.cjs +15 -15
- package/dist/actions/list-files-in-vector-store-batch.cjs.map +1 -1
- package/dist/actions/list-files-in-vector-store-batch.d.cts +56 -3
- package/dist/actions/list-files-in-vector-store-batch.d.cts.map +1 -1
- package/dist/actions/list-files-in-vector-store-batch.d.mts +56 -3
- package/dist/actions/list-files-in-vector-store-batch.d.mts.map +1 -1
- package/dist/actions/list-files-in-vector-store-batch.mjs +15 -15
- package/dist/actions/list-files-in-vector-store-batch.mjs.map +1 -1
- package/dist/actions/list-files.cjs +10 -10
- package/dist/actions/list-files.cjs.map +1 -1
- package/dist/actions/list-files.d.cts +27 -3
- package/dist/actions/list-files.d.cts.map +1 -1
- package/dist/actions/list-files.d.mts +27 -3
- package/dist/actions/list-files.d.mts.map +1 -1
- package/dist/actions/list-files.mjs +10 -10
- package/dist/actions/list-files.mjs.map +1 -1
- package/dist/actions/list-fine-tunes.cjs +25 -25
- package/dist/actions/list-fine-tunes.cjs.map +1 -1
- package/dist/actions/list-fine-tunes.d.cts +61 -3
- package/dist/actions/list-fine-tunes.d.cts.map +1 -1
- package/dist/actions/list-fine-tunes.d.mts +61 -3
- package/dist/actions/list-fine-tunes.d.mts.map +1 -1
- package/dist/actions/list-fine-tunes.mjs +25 -25
- package/dist/actions/list-fine-tunes.mjs.map +1 -1
- package/dist/actions/list-fine-tuning-events.cjs +9 -9
- package/dist/actions/list-fine-tuning-events.cjs.map +1 -1
- package/dist/actions/list-fine-tuning-events.d.cts +23 -3
- package/dist/actions/list-fine-tuning-events.d.cts.map +1 -1
- package/dist/actions/list-fine-tuning-events.d.mts +23 -3
- package/dist/actions/list-fine-tuning-events.d.mts.map +1 -1
- package/dist/actions/list-fine-tuning-events.mjs +9 -9
- package/dist/actions/list-fine-tuning-events.mjs.map +1 -1
- package/dist/actions/list-fine-tuning-job-checkpoints.cjs +11 -11
- package/dist/actions/list-fine-tuning-job-checkpoints.cjs.map +1 -1
- package/dist/actions/list-fine-tuning-job-checkpoints.d.cts +33 -3
- package/dist/actions/list-fine-tuning-job-checkpoints.d.cts.map +1 -1
- package/dist/actions/list-fine-tuning-job-checkpoints.d.mts +33 -3
- package/dist/actions/list-fine-tuning-job-checkpoints.d.mts.map +1 -1
- package/dist/actions/list-fine-tuning-job-checkpoints.mjs +11 -11
- package/dist/actions/list-fine-tuning-job-checkpoints.mjs.map +1 -1
- package/dist/actions/list-input-items.cjs +8 -8
- package/dist/actions/list-input-items.cjs.map +1 -1
- package/dist/actions/list-input-items.d.cts +52 -3
- package/dist/actions/list-input-items.d.cts.map +1 -1
- package/dist/actions/list-input-items.d.mts +52 -3
- package/dist/actions/list-input-items.d.mts.map +1 -1
- package/dist/actions/list-input-items.mjs +8 -8
- package/dist/actions/list-input-items.mjs.map +1 -1
- package/dist/actions/list-messages.cjs +22 -22
- package/dist/actions/list-messages.cjs.map +1 -1
- package/dist/actions/list-messages.d.cts +79 -3
- package/dist/actions/list-messages.d.cts.map +1 -1
- package/dist/actions/list-messages.d.mts +79 -3
- package/dist/actions/list-messages.d.mts.map +1 -1
- package/dist/actions/list-messages.mjs +22 -22
- package/dist/actions/list-messages.mjs.map +1 -1
- package/dist/actions/list-models.cjs +19 -19
- package/dist/actions/list-models.cjs.map +1 -1
- package/dist/actions/list-models.d.cts +27 -3
- package/dist/actions/list-models.d.cts.map +1 -1
- package/dist/actions/list-models.d.mts +27 -3
- package/dist/actions/list-models.d.mts.map +1 -1
- package/dist/actions/list-models.mjs +19 -19
- package/dist/actions/list-models.mjs.map +1 -1
- package/dist/actions/list-run-steps.cjs +46 -46
- package/dist/actions/list-run-steps.cjs.map +1 -1
- package/dist/actions/list-run-steps.d.cts +106 -3
- package/dist/actions/list-run-steps.d.cts.map +1 -1
- package/dist/actions/list-run-steps.d.mts +106 -3
- package/dist/actions/list-run-steps.d.mts.map +1 -1
- package/dist/actions/list-run-steps.mjs +46 -46
- package/dist/actions/list-run-steps.mjs.map +1 -1
- package/dist/actions/list-runs.cjs +24 -24
- package/dist/actions/list-runs.cjs.map +1 -1
- package/dist/actions/list-runs.d.cts +77 -3
- package/dist/actions/list-runs.d.cts.map +1 -1
- package/dist/actions/list-runs.d.mts +77 -3
- package/dist/actions/list-runs.d.mts.map +1 -1
- package/dist/actions/list-runs.mjs +24 -24
- package/dist/actions/list-runs.mjs.map +1 -1
- package/dist/actions/list-skills.cjs +11 -11
- package/dist/actions/list-skills.cjs.map +1 -1
- package/dist/actions/list-skills.d.cts +28 -3
- package/dist/actions/list-skills.d.cts.map +1 -1
- package/dist/actions/list-skills.d.mts +28 -3
- package/dist/actions/list-skills.d.mts.map +1 -1
- package/dist/actions/list-skills.mjs +11 -11
- package/dist/actions/list-skills.mjs.map +1 -1
- package/dist/actions/list-threads.cjs +10 -10
- package/dist/actions/list-threads.cjs.map +1 -1
- package/dist/actions/list-threads.d.cts +33 -3
- package/dist/actions/list-threads.d.cts.map +1 -1
- package/dist/actions/list-threads.d.mts +33 -3
- package/dist/actions/list-threads.d.mts.map +1 -1
- package/dist/actions/list-threads.mjs +10 -10
- package/dist/actions/list-threads.mjs.map +1 -1
- package/dist/actions/list-vector-store-files.cjs +12 -12
- package/dist/actions/list-vector-store-files.cjs.map +1 -1
- package/dist/actions/list-vector-store-files.d.cts +49 -3
- package/dist/actions/list-vector-store-files.d.cts.map +1 -1
- package/dist/actions/list-vector-store-files.d.mts +49 -3
- package/dist/actions/list-vector-store-files.d.mts.map +1 -1
- package/dist/actions/list-vector-store-files.mjs +12 -12
- package/dist/actions/list-vector-store-files.mjs.map +1 -1
- package/dist/actions/list-vector-stores.cjs +19 -19
- package/dist/actions/list-vector-stores.cjs.map +1 -1
- package/dist/actions/list-vector-stores.d.cts +49 -3
- package/dist/actions/list-vector-stores.d.cts.map +1 -1
- package/dist/actions/list-vector-stores.d.mts +49 -3
- package/dist/actions/list-vector-stores.d.mts.map +1 -1
- package/dist/actions/list-vector-stores.mjs +19 -19
- package/dist/actions/list-vector-stores.mjs.map +1 -1
- package/dist/actions/list-videos.cjs +12 -12
- package/dist/actions/list-videos.cjs.map +1 -1
- package/dist/actions/list-videos.d.cts +51 -3
- package/dist/actions/list-videos.d.cts.map +1 -1
- package/dist/actions/list-videos.d.mts +51 -3
- package/dist/actions/list-videos.d.mts.map +1 -1
- package/dist/actions/list-videos.mjs +12 -12
- package/dist/actions/list-videos.mjs.map +1 -1
- package/dist/actions/modify-assistant.cjs +7 -7
- package/dist/actions/modify-assistant.cjs.map +1 -1
- package/dist/actions/modify-assistant.d.cts +55 -3
- package/dist/actions/modify-assistant.d.cts.map +1 -1
- package/dist/actions/modify-assistant.d.mts +55 -3
- package/dist/actions/modify-assistant.d.mts.map +1 -1
- package/dist/actions/modify-assistant.mjs +7 -7
- package/dist/actions/modify-assistant.mjs.map +1 -1
- package/dist/actions/modify-message.cjs +18 -18
- package/dist/actions/modify-message.cjs.map +1 -1
- package/dist/actions/modify-message.d.cts +64 -3
- package/dist/actions/modify-message.d.cts.map +1 -1
- package/dist/actions/modify-message.d.mts +64 -3
- package/dist/actions/modify-message.d.mts.map +1 -1
- package/dist/actions/modify-message.mjs +18 -18
- package/dist/actions/modify-message.mjs.map +1 -1
- package/dist/actions/modify-run.cjs +23 -23
- package/dist/actions/modify-run.cjs.map +1 -1
- package/dist/actions/modify-run.d.cts +71 -3
- package/dist/actions/modify-run.d.cts.map +1 -1
- package/dist/actions/modify-run.d.mts +71 -3
- package/dist/actions/modify-run.d.mts.map +1 -1
- package/dist/actions/modify-run.mjs +23 -23
- package/dist/actions/modify-run.mjs.map +1 -1
- package/dist/actions/modify-thread.cjs +6 -6
- package/dist/actions/modify-thread.cjs.map +1 -1
- package/dist/actions/modify-thread.d.cts +14 -3
- package/dist/actions/modify-thread.d.cts.map +1 -1
- package/dist/actions/modify-thread.d.mts +14 -3
- package/dist/actions/modify-thread.d.mts.map +1 -1
- package/dist/actions/modify-thread.mjs +6 -6
- package/dist/actions/modify-thread.mjs.map +1 -1
- package/dist/actions/modify-vector-store.cjs +16 -16
- package/dist/actions/modify-vector-store.cjs.map +1 -1
- package/dist/actions/modify-vector-store.d.cts +48 -3
- package/dist/actions/modify-vector-store.d.cts.map +1 -1
- package/dist/actions/modify-vector-store.d.mts +48 -3
- package/dist/actions/modify-vector-store.d.mts.map +1 -1
- package/dist/actions/modify-vector-store.mjs +16 -16
- package/dist/actions/modify-vector-store.mjs.map +1 -1
- package/dist/actions/retrieve-assistant.cjs +9 -9
- package/dist/actions/retrieve-assistant.cjs.map +1 -1
- package/dist/actions/retrieve-assistant.d.cts +26 -3
- package/dist/actions/retrieve-assistant.d.cts.map +1 -1
- package/dist/actions/retrieve-assistant.d.mts +26 -3
- package/dist/actions/retrieve-assistant.d.mts.map +1 -1
- package/dist/actions/retrieve-assistant.mjs +9 -9
- package/dist/actions/retrieve-assistant.mjs.map +1 -1
- package/dist/actions/retrieve-batch.cjs +19 -19
- package/dist/actions/retrieve-batch.cjs.map +1 -1
- package/dist/actions/retrieve-batch.d.cts +56 -3
- package/dist/actions/retrieve-batch.d.cts.map +1 -1
- package/dist/actions/retrieve-batch.d.mts +56 -3
- package/dist/actions/retrieve-batch.d.mts.map +1 -1
- package/dist/actions/retrieve-batch.mjs +19 -19
- package/dist/actions/retrieve-batch.mjs.map +1 -1
- package/dist/actions/retrieve-container-file-content.cjs +5 -5
- package/dist/actions/retrieve-container-file-content.cjs.map +1 -1
- package/dist/actions/retrieve-container-file-content.d.cts +15 -3
- package/dist/actions/retrieve-container-file-content.d.cts.map +1 -1
- package/dist/actions/retrieve-container-file-content.d.mts +15 -3
- package/dist/actions/retrieve-container-file-content.d.mts.map +1 -1
- package/dist/actions/retrieve-container-file-content.mjs +5 -5
- package/dist/actions/retrieve-container-file-content.mjs.map +1 -1
- package/dist/actions/retrieve-container-file.cjs +8 -8
- package/dist/actions/retrieve-container-file.cjs.map +1 -1
- package/dist/actions/retrieve-container-file.d.cts +17 -3
- package/dist/actions/retrieve-container-file.d.cts.map +1 -1
- package/dist/actions/retrieve-container-file.d.mts +17 -3
- package/dist/actions/retrieve-container-file.d.mts.map +1 -1
- package/dist/actions/retrieve-container-file.mjs +8 -8
- package/dist/actions/retrieve-container-file.mjs.map +1 -1
- package/dist/actions/retrieve-container.cjs +9 -9
- package/dist/actions/retrieve-container.cjs.map +1 -1
- package/dist/actions/retrieve-container.d.cts +33 -3
- package/dist/actions/retrieve-container.d.cts.map +1 -1
- package/dist/actions/retrieve-container.d.mts +33 -3
- package/dist/actions/retrieve-container.d.mts.map +1 -1
- package/dist/actions/retrieve-container.mjs +9 -9
- package/dist/actions/retrieve-container.mjs.map +1 -1
- package/dist/actions/retrieve-engine.cjs +6 -6
- package/dist/actions/retrieve-engine.cjs.map +1 -1
- package/dist/actions/retrieve-engine.d.cts +13 -3
- package/dist/actions/retrieve-engine.d.cts.map +1 -1
- package/dist/actions/retrieve-engine.d.mts +13 -3
- package/dist/actions/retrieve-engine.d.mts.map +1 -1
- package/dist/actions/retrieve-engine.mjs +6 -6
- package/dist/actions/retrieve-engine.mjs.map +1 -1
- package/dist/actions/retrieve-file.cjs +6 -6
- package/dist/actions/retrieve-file.cjs.map +1 -1
- package/dist/actions/retrieve-file.d.cts +30 -3
- package/dist/actions/retrieve-file.d.cts.map +1 -1
- package/dist/actions/retrieve-file.d.mts +30 -3
- package/dist/actions/retrieve-file.d.mts.map +1 -1
- package/dist/actions/retrieve-file.mjs +6 -6
- package/dist/actions/retrieve-file.mjs.map +1 -1
- package/dist/actions/retrieve-fine-tuning-job.cjs +13 -13
- package/dist/actions/retrieve-fine-tuning-job.cjs.map +1 -1
- package/dist/actions/retrieve-fine-tuning-job.d.cts +51 -3
- package/dist/actions/retrieve-fine-tuning-job.d.cts.map +1 -1
- package/dist/actions/retrieve-fine-tuning-job.d.mts +51 -3
- package/dist/actions/retrieve-fine-tuning-job.d.mts.map +1 -1
- package/dist/actions/retrieve-fine-tuning-job.mjs +13 -13
- package/dist/actions/retrieve-fine-tuning-job.mjs.map +1 -1
- package/dist/actions/retrieve-model.cjs +17 -17
- package/dist/actions/retrieve-model.cjs.map +1 -1
- package/dist/actions/retrieve-model.d.cts +28 -3
- package/dist/actions/retrieve-model.d.cts.map +1 -1
- package/dist/actions/retrieve-model.d.mts +28 -3
- package/dist/actions/retrieve-model.d.mts.map +1 -1
- package/dist/actions/retrieve-model.mjs +17 -17
- package/dist/actions/retrieve-model.mjs.map +1 -1
- package/dist/actions/retrieve-run.cjs +21 -21
- package/dist/actions/retrieve-run.cjs.map +1 -1
- package/dist/actions/retrieve-run.d.cts +63 -3
- package/dist/actions/retrieve-run.d.cts.map +1 -1
- package/dist/actions/retrieve-run.d.mts +63 -3
- package/dist/actions/retrieve-run.d.mts.map +1 -1
- package/dist/actions/retrieve-run.mjs +21 -21
- package/dist/actions/retrieve-run.mjs.map +1 -1
- package/dist/actions/retrieve-thread.cjs +5 -5
- package/dist/actions/retrieve-thread.cjs.map +1 -1
- package/dist/actions/retrieve-thread.d.cts +12 -3
- package/dist/actions/retrieve-thread.d.cts.map +1 -1
- package/dist/actions/retrieve-thread.d.mts +12 -3
- package/dist/actions/retrieve-thread.d.mts.map +1 -1
- package/dist/actions/retrieve-thread.mjs +5 -5
- package/dist/actions/retrieve-thread.mjs.map +1 -1
- package/dist/actions/retrieve-vector-store-file-content.cjs +6 -6
- package/dist/actions/retrieve-vector-store-file-content.cjs.map +1 -1
- package/dist/actions/retrieve-vector-store-file-content.d.cts +17 -3
- package/dist/actions/retrieve-vector-store-file-content.d.cts.map +1 -1
- package/dist/actions/retrieve-vector-store-file-content.d.mts +17 -3
- package/dist/actions/retrieve-vector-store-file-content.d.mts.map +1 -1
- package/dist/actions/retrieve-vector-store-file-content.mjs +6 -6
- package/dist/actions/retrieve-vector-store-file-content.mjs.map +1 -1
- package/dist/actions/run-grader.cjs +27 -27
- package/dist/actions/run-grader.cjs.map +1 -1
- package/dist/actions/run-grader.d.cts +118 -3
- package/dist/actions/run-grader.d.cts.map +1 -1
- package/dist/actions/run-grader.d.mts +118 -3
- package/dist/actions/run-grader.d.mts.map +1 -1
- package/dist/actions/run-grader.mjs +27 -27
- package/dist/actions/run-grader.mjs.map +1 -1
- package/dist/actions/search-vector-store.cjs +9 -9
- package/dist/actions/search-vector-store.cjs.map +1 -1
- package/dist/actions/search-vector-store.d.cts +42 -3
- package/dist/actions/search-vector-store.d.cts.map +1 -1
- package/dist/actions/search-vector-store.d.mts +42 -3
- package/dist/actions/search-vector-store.d.mts.map +1 -1
- package/dist/actions/search-vector-store.mjs +9 -9
- package/dist/actions/search-vector-store.mjs.map +1 -1
- package/dist/actions/submit-tool-outputs-to-run.cjs +23 -23
- package/dist/actions/submit-tool-outputs-to-run.cjs.map +1 -1
- package/dist/actions/submit-tool-outputs-to-run.d.cts +80 -3
- package/dist/actions/submit-tool-outputs-to-run.d.cts.map +1 -1
- package/dist/actions/submit-tool-outputs-to-run.d.mts +80 -3
- package/dist/actions/submit-tool-outputs-to-run.d.mts.map +1 -1
- package/dist/actions/submit-tool-outputs-to-run.mjs +23 -23
- package/dist/actions/submit-tool-outputs-to-run.mjs.map +1 -1
- package/dist/actions/update-chat-completion.cjs +18 -18
- package/dist/actions/update-chat-completion.cjs.map +1 -1
- package/dist/actions/update-chat-completion.d.cts +46 -3
- package/dist/actions/update-chat-completion.d.cts.map +1 -1
- package/dist/actions/update-chat-completion.d.mts +46 -3
- package/dist/actions/update-chat-completion.d.mts.map +1 -1
- package/dist/actions/update-chat-completion.mjs +18 -18
- package/dist/actions/update-chat-completion.mjs.map +1 -1
- package/dist/actions/update-conversation.cjs +4 -4
- package/dist/actions/update-conversation.cjs.map +1 -1
- package/dist/actions/update-conversation.d.cts +14 -3
- package/dist/actions/update-conversation.d.cts.map +1 -1
- package/dist/actions/update-conversation.d.mts +14 -3
- package/dist/actions/update-conversation.d.mts.map +1 -1
- package/dist/actions/update-conversation.mjs +4 -4
- package/dist/actions/update-conversation.mjs.map +1 -1
- package/dist/actions/update-eval.cjs +5 -5
- package/dist/actions/update-eval.cjs.map +1 -1
- package/dist/actions/update-eval.d.cts +19 -3
- package/dist/actions/update-eval.d.cts.map +1 -1
- package/dist/actions/update-eval.d.mts +19 -3
- package/dist/actions/update-eval.d.mts.map +1 -1
- package/dist/actions/update-eval.mjs +5 -5
- package/dist/actions/update-eval.mjs.map +1 -1
- package/dist/actions/update-vector-store-file-attributes.cjs +12 -12
- package/dist/actions/update-vector-store-file-attributes.cjs.map +1 -1
- package/dist/actions/update-vector-store-file-attributes.d.cts +34 -3
- package/dist/actions/update-vector-store-file-attributes.d.cts.map +1 -1
- package/dist/actions/update-vector-store-file-attributes.d.mts +34 -3
- package/dist/actions/update-vector-store-file-attributes.d.mts.map +1 -1
- package/dist/actions/update-vector-store-file-attributes.mjs +12 -12
- package/dist/actions/update-vector-store-file-attributes.mjs.map +1 -1
- package/dist/actions/upload-file.cjs +8 -8
- package/dist/actions/upload-file.cjs.map +1 -1
- package/dist/actions/upload-file.d.cts +18 -3
- package/dist/actions/upload-file.d.cts.map +1 -1
- package/dist/actions/upload-file.d.mts +18 -3
- package/dist/actions/upload-file.d.mts.map +1 -1
- package/dist/actions/upload-file.mjs +8 -8
- package/dist/actions/upload-file.mjs.map +1 -1
- package/dist/actions/validate-grader.cjs +9 -9
- package/dist/actions/validate-grader.cjs.map +1 -1
- package/dist/actions/validate-grader.d.cts +91 -3
- package/dist/actions/validate-grader.d.cts.map +1 -1
- package/dist/actions/validate-grader.d.mts +91 -3
- package/dist/actions/validate-grader.d.mts.map +1 -1
- package/dist/actions/validate-grader.mjs +9 -9
- package/dist/actions/validate-grader.mjs.map +1 -1
- package/dist/catalog.cjs +14 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +13 -0
- package/dist/catalog.d.mts +13 -0
- package/dist/catalog.mjs +14 -1
- package/dist/catalog.mjs.map +1 -1
- package/dist/execute.cjs +1 -1
- package/dist/execute.cjs.map +1 -1
- package/dist/execute.mjs +1 -1
- package/dist/execute.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,192 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-chat-completion.d.ts
|
|
4
|
-
declare const OpenaiCreateChatCompletionInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const OpenaiCreateChatCompletionInput: z.ZodObject<{
|
|
5
|
+
n: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
seed: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
stop: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
8
|
+
user: z.ZodOptional<z.ZodString>;
|
|
9
|
+
audio: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
10
|
+
model: z.ZodString;
|
|
11
|
+
store: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
13
|
+
type: z.ZodEnum<{
|
|
14
|
+
function: "function";
|
|
15
|
+
code_interpreter: "code_interpreter";
|
|
16
|
+
file_search: "file_search";
|
|
17
|
+
}>;
|
|
18
|
+
function: z.ZodOptional<z.ZodObject<{
|
|
19
|
+
name: z.ZodString;
|
|
20
|
+
strict: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
+
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
22
|
+
description: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
}, z.core.$loose>>>;
|
|
25
|
+
top_p: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
stream: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
+
logprobs: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
29
|
+
name: z.ZodOptional<z.ZodString>;
|
|
30
|
+
role: z.ZodEnum<{
|
|
31
|
+
function: "function";
|
|
32
|
+
user: "user";
|
|
33
|
+
assistant: "assistant";
|
|
34
|
+
system: "system";
|
|
35
|
+
tool: "tool";
|
|
36
|
+
}>;
|
|
37
|
+
content: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>;
|
|
38
|
+
tool_calls: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
39
|
+
tool_call_id: z.ZodOptional<z.ZodString>;
|
|
40
|
+
function_call: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
41
|
+
}, z.core.$loose>>;
|
|
42
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
43
|
+
functions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
44
|
+
name: z.ZodString;
|
|
45
|
+
strict: z.ZodOptional<z.ZodBoolean>;
|
|
46
|
+
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
47
|
+
description: z.ZodOptional<z.ZodString>;
|
|
48
|
+
}, z.core.$loose>>>;
|
|
49
|
+
logit_bias: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
50
|
+
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
51
|
+
modalities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
52
|
+
text: "text";
|
|
53
|
+
audio: "audio";
|
|
54
|
+
}>>>;
|
|
55
|
+
prediction: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
56
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
57
|
+
tool_choice: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
58
|
+
none: "none";
|
|
59
|
+
auto: "auto";
|
|
60
|
+
required: "required";
|
|
61
|
+
}>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
62
|
+
service_tier: z.ZodOptional<z.ZodEnum<{
|
|
63
|
+
default: "default";
|
|
64
|
+
auto: "auto";
|
|
65
|
+
}>>;
|
|
66
|
+
top_logprobs: z.ZodOptional<z.ZodNumber>;
|
|
67
|
+
function_call: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
68
|
+
none: "none";
|
|
69
|
+
auto: "auto";
|
|
70
|
+
}>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
71
|
+
stream_options: z.ZodOptional<z.ZodObject<{
|
|
72
|
+
include_usage: z.ZodOptional<z.ZodBoolean>;
|
|
73
|
+
}, z.core.$strip>>;
|
|
74
|
+
response_format: z.ZodOptional<z.ZodObject<{
|
|
75
|
+
type: z.ZodEnum<{
|
|
76
|
+
text: "text";
|
|
77
|
+
json_object: "json_object";
|
|
78
|
+
json_schema: "json_schema";
|
|
79
|
+
}>;
|
|
80
|
+
json_schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
81
|
+
}, z.core.$strip>>;
|
|
82
|
+
presence_penalty: z.ZodOptional<z.ZodNumber>;
|
|
83
|
+
reasoning_effort: z.ZodOptional<z.ZodEnum<{
|
|
84
|
+
low: "low";
|
|
85
|
+
medium: "medium";
|
|
86
|
+
high: "high";
|
|
87
|
+
}>>;
|
|
88
|
+
frequency_penalty: z.ZodOptional<z.ZodNumber>;
|
|
89
|
+
parallel_tool_calls: z.ZodOptional<z.ZodBoolean>;
|
|
90
|
+
max_completion_tokens: z.ZodOptional<z.ZodNumber>;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
declare const OpenaiCreateChatCompletionOutput: z.ZodObject<{
|
|
93
|
+
id: z.ZodNullable<z.ZodString>;
|
|
94
|
+
model: z.ZodNullable<z.ZodString>;
|
|
95
|
+
usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
96
|
+
total_tokens: z.ZodNullable<z.ZodNumber>;
|
|
97
|
+
prompt_tokens: z.ZodNullable<z.ZodNumber>;
|
|
98
|
+
completion_tokens: z.ZodNullable<z.ZodNumber>;
|
|
99
|
+
prompt_tokens_details: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
100
|
+
audio_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
101
|
+
cached_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
102
|
+
}, z.core.$loose>>>;
|
|
103
|
+
completion_tokens_details: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
104
|
+
audio_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
105
|
+
reasoning_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
106
|
+
accepted_prediction_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
107
|
+
rejected_prediction_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
108
|
+
}, z.core.$loose>>>;
|
|
109
|
+
}, z.core.$loose>>>;
|
|
110
|
+
object: z.ZodNullable<z.ZodString>;
|
|
111
|
+
choices: z.ZodArray<z.ZodObject<{
|
|
112
|
+
index: z.ZodNullable<z.ZodNumber>;
|
|
113
|
+
message: z.ZodNullable<z.ZodObject<{
|
|
114
|
+
role: z.ZodNullable<z.ZodString>;
|
|
115
|
+
content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
116
|
+
refusal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
117
|
+
tool_calls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
118
|
+
function_call: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
119
|
+
}, z.core.$loose>>;
|
|
120
|
+
logprobs: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
121
|
+
content: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
122
|
+
refusal: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
123
|
+
}, z.core.$loose>>>;
|
|
124
|
+
finish_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
125
|
+
}, z.core.$loose>>;
|
|
126
|
+
created: z.ZodNullable<z.ZodNumber>;
|
|
127
|
+
service_tier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
128
|
+
system_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
129
|
+
}, z.core.$loose>;
|
|
130
|
+
declare const openaiCreateChatCompletion: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
131
|
+
model: string;
|
|
132
|
+
messages: {
|
|
133
|
+
[x: string]: unknown;
|
|
134
|
+
role: "function" | "user" | "assistant" | "system" | "tool";
|
|
135
|
+
name?: string | undefined;
|
|
136
|
+
content?: string | Record<string, unknown>[] | undefined;
|
|
137
|
+
tool_calls?: Record<string, unknown>[] | undefined;
|
|
138
|
+
tool_call_id?: string | undefined;
|
|
139
|
+
function_call?: Record<string, unknown> | undefined;
|
|
140
|
+
}[];
|
|
141
|
+
n?: number | undefined;
|
|
142
|
+
seed?: number | undefined;
|
|
143
|
+
stop?: string | string[] | undefined;
|
|
144
|
+
user?: string | undefined;
|
|
145
|
+
audio?: Record<string, unknown> | undefined;
|
|
146
|
+
store?: boolean | undefined;
|
|
147
|
+
tools?: {
|
|
148
|
+
[x: string]: unknown;
|
|
149
|
+
type: "function" | "code_interpreter" | "file_search";
|
|
150
|
+
function?: {
|
|
151
|
+
name: string;
|
|
152
|
+
strict?: boolean | undefined;
|
|
153
|
+
parameters?: Record<string, unknown> | undefined;
|
|
154
|
+
description?: string | undefined;
|
|
155
|
+
} | undefined;
|
|
156
|
+
}[] | undefined;
|
|
157
|
+
top_p?: number | undefined;
|
|
158
|
+
stream?: boolean | undefined;
|
|
159
|
+
logprobs?: boolean | undefined;
|
|
160
|
+
metadata?: Record<string, unknown> | undefined;
|
|
161
|
+
functions?: {
|
|
162
|
+
[x: string]: unknown;
|
|
163
|
+
name: string;
|
|
164
|
+
strict?: boolean | undefined;
|
|
165
|
+
parameters?: Record<string, unknown> | undefined;
|
|
166
|
+
description?: string | undefined;
|
|
167
|
+
}[] | undefined;
|
|
168
|
+
logit_bias?: Record<string, unknown> | undefined;
|
|
169
|
+
max_tokens?: number | undefined;
|
|
170
|
+
modalities?: ("text" | "audio")[] | undefined;
|
|
171
|
+
prediction?: Record<string, unknown> | undefined;
|
|
172
|
+
temperature?: number | undefined;
|
|
173
|
+
tool_choice?: Record<string, unknown> | "none" | "auto" | "required" | undefined;
|
|
174
|
+
service_tier?: "default" | "auto" | undefined;
|
|
175
|
+
top_logprobs?: number | undefined;
|
|
176
|
+
function_call?: Record<string, unknown> | "none" | "auto" | undefined;
|
|
177
|
+
stream_options?: {
|
|
178
|
+
include_usage?: boolean | undefined;
|
|
179
|
+
} | undefined;
|
|
180
|
+
response_format?: {
|
|
181
|
+
type: "text" | "json_object" | "json_schema";
|
|
182
|
+
json_schema?: Record<string, unknown> | undefined;
|
|
183
|
+
} | undefined;
|
|
184
|
+
presence_penalty?: number | undefined;
|
|
185
|
+
reasoning_effort?: "low" | "medium" | "high" | undefined;
|
|
186
|
+
frequency_penalty?: number | undefined;
|
|
187
|
+
parallel_tool_calls?: boolean | undefined;
|
|
188
|
+
max_completion_tokens?: number | undefined;
|
|
189
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
190
|
//#endregion
|
|
8
191
|
export { openaiCreateChatCompletion };
|
|
9
192
|
//# sourceMappingURL=create-chat-completion.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-chat-completion.d.mts","names":[],"sources":["../../src/actions/create-chat-completion.ts"],"mappings":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"create-chat-completion.d.mts","names":[],"sources":["../../src/actions/create-chat-completion.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2F/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAWhC,0BAAA,gCAA0B,wBAAA"}
|
|
@@ -21,7 +21,7 @@ const OpenaiCreateChatCompletionInput = z.object({
|
|
|
21
21
|
parameters: z.record(z.string(), z.unknown()).describe("The parameters the function accepts, described as a JSON Schema object. Omit to indicate the function accepts no parameters").optional(),
|
|
22
22
|
description: z.string().describe("A description of what the function does. Used by the model to choose when to call the function").optional()
|
|
23
23
|
}).describe("Function definition for function calling.").optional()
|
|
24
|
-
}).describe("Tool definition for tool calling.")).describe("A list of tools the model may call. Use this for function calling. The model can choose to call one or more functions").optional(),
|
|
24
|
+
}).passthrough().describe("Tool definition for tool calling.")).describe("A list of tools the model may call. Use this for function calling. The model can choose to call one or more functions").optional(),
|
|
25
25
|
top_p: z.number().describe("Nucleus sampling parameter. The model considers tokens with top_p probability mass. 0.1 means only tokens comprising the top 10% probability mass are considered. Mutually exclusive with temperature").optional(),
|
|
26
26
|
stream: z.boolean().describe("If set to true, partial message deltas will be sent as server-sent events (SSE) as they become available").optional(),
|
|
27
27
|
logprobs: z.boolean().describe("Whether to return log probabilities of the output tokens. If true, returns the log probabilities of each output token in the content").optional(),
|
|
@@ -38,15 +38,15 @@ const OpenaiCreateChatCompletionInput = z.object({
|
|
|
38
38
|
tool_calls: z.array(z.record(z.string(), z.unknown())).describe("Tool calls generated by the model. Only present in assistant messages when the model decides to call functions").optional(),
|
|
39
39
|
tool_call_id: z.string().describe("Tool call ID that this message is responding to. Required when role is 'tool'").optional(),
|
|
40
40
|
function_call: z.record(z.string(), z.unknown()).describe("Deprecated. Function call generated by the model. Use tool_calls instead").optional()
|
|
41
|
-
}).describe("A message in the chat conversation.")).describe("A list of messages comprising the conversation so far. Each message has a role and content"),
|
|
42
|
-
metadata: z.
|
|
41
|
+
}).passthrough().describe("A message in the chat conversation.")).describe("A list of messages comprising the conversation so far. Each message has a role and content"),
|
|
42
|
+
metadata: z.record(z.string(), z.unknown()).describe("Developer-defined tags and values for filtering completions in the dashboard. All values must be strings").optional(),
|
|
43
43
|
functions: z.array(z.object({
|
|
44
44
|
name: z.string().describe("The name of the function to be called. Must be a-z, A-Z, 0-9, underscores and dashes, with a maximum length of 64 characters"),
|
|
45
45
|
strict: z.boolean().describe("Whether to enable strict schema adherence when generating the function call. If true, the model will follow the exact schema").optional(),
|
|
46
46
|
parameters: z.record(z.string(), z.unknown()).describe("The parameters the function accepts, described as a JSON Schema object. Omit to indicate the function accepts no parameters").optional(),
|
|
47
47
|
description: z.string().describe("A description of what the function does. Used by the model to choose when to call the function").optional()
|
|
48
|
-
}).describe("Function definition for function calling.")).describe("Deprecated. A list of functions the model may generate JSON inputs for. Use tools instead").optional(),
|
|
49
|
-
logit_bias: z.
|
|
48
|
+
}).passthrough().describe("Function definition for function calling.")).describe("Deprecated. A list of functions the model may generate JSON inputs for. Use tools instead").optional(),
|
|
49
|
+
logit_bias: z.record(z.string(), z.unknown()).describe("Modify the likelihood of specified tokens appearing in the completion. Maps token IDs to bias values from -100 to 100. Use tokenizer to find token IDs").optional(),
|
|
50
50
|
max_tokens: z.number().int().describe("The maximum number of tokens to generate in the chat completion. The total length of input tokens and generated tokens is limited by the model's context length").optional(),
|
|
51
51
|
modalities: z.array(z.enum(["text", "audio"])).describe("Output modalities for the response. Include 'audio' for audio output. Defaults to ['text']").optional(),
|
|
52
52
|
prediction: z.record(z.string(), z.unknown()).describe("Configuration for predicted outputs. Used for latency optimization with certain models").optional(),
|
|
@@ -58,7 +58,7 @@ const OpenaiCreateChatCompletionInput = z.object({
|
|
|
58
58
|
]), z.record(z.string(), z.unknown())]).optional(),
|
|
59
59
|
service_tier: z.enum(["auto", "default"]).describe("Specifies the latency tier to use for processing the request. 'auto' lets the system infer the best tier, 'default' uses standard processing").optional(),
|
|
60
60
|
top_logprobs: z.number().int().describe("An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability. Requires logprobs=true").optional(),
|
|
61
|
-
function_call: z.union([z.enum(["none", "auto"]), z.
|
|
61
|
+
function_call: z.union([z.enum(["none", "auto"]), z.record(z.string(), z.unknown())]).optional(),
|
|
62
62
|
stream_options: z.object({ include_usage: z.boolean().describe("If set, an additional chunk will be streamed at the end with usage statistics. Only applicable when stream=true").optional() }).describe("Streaming options configuration.").optional(),
|
|
63
63
|
response_format: z.object({
|
|
64
64
|
type: z.enum([
|
|
@@ -81,52 +81,52 @@ const OpenaiCreateChatCompletionInput = z.object({
|
|
|
81
81
|
const OpenaiCreateChatCompletion_PromptTokensDetailsSchema = z.object({
|
|
82
82
|
audio_tokens: z.number().int().describe("Number of audio tokens in the prompt").nullable().optional(),
|
|
83
83
|
cached_tokens: z.number().int().describe("Number of tokens that were cached and reused").nullable().optional()
|
|
84
|
-
}).describe("Breakdown of tokens used in the prompt.");
|
|
84
|
+
}).passthrough().describe("Breakdown of tokens used in the prompt.");
|
|
85
85
|
const OpenaiCreateChatCompletion_CompletionTokensDetailsSchema = z.object({
|
|
86
86
|
audio_tokens: z.number().int().describe("Number of audio tokens generated").nullable().optional(),
|
|
87
87
|
reasoning_tokens: z.number().int().describe("Number of reasoning tokens generated by the model").nullable().optional(),
|
|
88
88
|
accepted_prediction_tokens: z.number().int().describe("Number of tokens from predictions that were accepted").nullable().optional(),
|
|
89
89
|
rejected_prediction_tokens: z.number().int().describe("Number of tokens from predictions that were rejected").nullable().optional()
|
|
90
|
-
}).describe("Breakdown of tokens used in a completion.");
|
|
90
|
+
}).passthrough().describe("Breakdown of tokens used in a completion.");
|
|
91
91
|
const OpenaiCreateChatCompletion_CompletionUsageSchema = z.object({
|
|
92
|
-
total_tokens: z.number().int().describe("Total number of tokens used in the request (prompt + completion)"),
|
|
93
|
-
prompt_tokens: z.number().int().describe("Number of tokens in the prompt"),
|
|
94
|
-
completion_tokens: z.number().int().describe("Number of tokens in the generated completion"),
|
|
92
|
+
total_tokens: z.number().int().describe("Total number of tokens used in the request (prompt + completion)").nullable(),
|
|
93
|
+
prompt_tokens: z.number().int().describe("Number of tokens in the prompt").nullable(),
|
|
94
|
+
completion_tokens: z.number().int().describe("Number of tokens in the generated completion").nullable(),
|
|
95
95
|
prompt_tokens_details: OpenaiCreateChatCompletion_PromptTokensDetailsSchema.nullable().optional(),
|
|
96
96
|
completion_tokens_details: OpenaiCreateChatCompletion_CompletionTokensDetailsSchema.nullable().optional()
|
|
97
|
-
}).describe("Usage statistics for the completion request.");
|
|
97
|
+
}).passthrough().describe("Usage statistics for the completion request.");
|
|
98
98
|
const OpenaiCreateChatCompletion_ChoiceMessageSchema = z.object({
|
|
99
|
-
role: z.string().describe("The role of the author of this message"),
|
|
99
|
+
role: z.string().describe("The role of the author of this message").nullable(),
|
|
100
100
|
content: z.string().describe("The content of the message. May be null for tool calls").nullable().optional(),
|
|
101
101
|
refusal: z.string().describe("The refusal message if the model refused to fulfill the request").nullable().optional(),
|
|
102
102
|
tool_calls: z.array(z.record(z.string(), z.unknown())).describe("The tool calls generated by the model").nullable().optional(),
|
|
103
103
|
function_call: z.record(z.string(), z.unknown()).describe("Deprecated. The function call generated by the model").nullable().optional()
|
|
104
|
-
}).describe("The message in a chat completion choice.");
|
|
104
|
+
}).passthrough().describe("The message in a chat completion choice.");
|
|
105
105
|
const OpenaiCreateChatCompletion_ChoiceLogprobsSchema = z.object({
|
|
106
106
|
content: z.array(z.record(z.string(), z.unknown())).describe("A list of message content tokens with log probability information").nullable().optional(),
|
|
107
107
|
refusal: z.array(z.record(z.string(), z.unknown())).describe("A list of refusal tokens with log probability information").nullable().optional()
|
|
108
|
-
}).describe("Log probability information for a choice.");
|
|
108
|
+
}).passthrough().describe("Log probability information for a choice.");
|
|
109
109
|
const OpenaiCreateChatCompletion_ChatCompletionChoiceSchema = z.object({
|
|
110
|
-
index: z.number().int().describe("The index of this choice in the list of choices"),
|
|
110
|
+
index: z.number().int().describe("The index of this choice in the list of choices").nullable(),
|
|
111
111
|
message: OpenaiCreateChatCompletion_ChoiceMessageSchema.nullable(),
|
|
112
112
|
logprobs: OpenaiCreateChatCompletion_ChoiceLogprobsSchema.nullable().optional(),
|
|
113
113
|
finish_reason: z.string().describe("The reason the model stopped generating tokens. 'stop' for natural stop point or stop sequence, 'length' for max_tokens limit, 'content_filter' for content filter, 'tool_calls' for tool use, 'function_call' for function call").nullable().optional()
|
|
114
|
-
}).describe("A chat completion choice.");
|
|
114
|
+
}).passthrough().describe("A chat completion choice.");
|
|
115
115
|
const openaiCreateChatCompletion = action("OPENAI_CREATE_CHAT_COMPLETION", {
|
|
116
116
|
slug: "openai-create-chat-completion",
|
|
117
117
|
name: "Create Chat Completion",
|
|
118
118
|
description: "Tool to create a chat completion response from OpenAI models. Use for conversational AI, text generation, function calling, multimodal tasks with vision/audio, and structured JSON outputs. Supports advanced features like reasoning models, tool use, and streaming responses.",
|
|
119
119
|
input: OpenaiCreateChatCompletionInput,
|
|
120
120
|
output: z.object({
|
|
121
|
-
id: z.string().describe("A unique identifier for the chat completion"),
|
|
122
|
-
model: z.string().describe("The model used for the chat completion"),
|
|
121
|
+
id: z.string().describe("A unique identifier for the chat completion").nullable(),
|
|
122
|
+
model: z.string().describe("The model used for the chat completion").nullable(),
|
|
123
123
|
usage: OpenaiCreateChatCompletion_CompletionUsageSchema.nullable().optional(),
|
|
124
|
-
object: z.string().describe("The object type, which is always 'chat.completion'"),
|
|
124
|
+
object: z.string().describe("The object type, which is always 'chat.completion'").nullable(),
|
|
125
125
|
choices: z.array(OpenaiCreateChatCompletion_ChatCompletionChoiceSchema).describe("A list of chat completion choices. Can be more than one if n is greater than 1"),
|
|
126
|
-
created: z.number().int().describe("The Unix timestamp (in seconds) of when the chat completion was created"),
|
|
126
|
+
created: z.number().int().describe("The Unix timestamp (in seconds) of when the chat completion was created").nullable(),
|
|
127
127
|
service_tier: z.string().describe("The service tier used for processing the request").nullable().optional(),
|
|
128
128
|
system_fingerprint: z.string().describe("This fingerprint represents the backend configuration that the model runs with. Can be used with the seed parameter to understand when backend changes have been made that might impact determinism").nullable().optional()
|
|
129
|
-
}).describe("Response schema for chat completion creation.")
|
|
129
|
+
}).passthrough().describe("Response schema for chat completion creation.")
|
|
130
130
|
});
|
|
131
131
|
//#endregion
|
|
132
132
|
export { openaiCreateChatCompletion };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-chat-completion.mjs","names":[],"sources":["../../src/actions/create-chat-completion.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateChatCompletionInput: z.ZodTypeAny = z.object({\n n: z.number().int().describe(\"How many chat completion choices to generate for each input message. Default is 1\").optional(),\n seed: z.number().int().describe(\"If specified, the system will make a best effort to sample deterministically. Determinism is not guaranteed, check system_fingerprint in response\").optional(),\n stop: z.union([z.string(), z.array(z.string())]).optional(),\n user: z.string().describe(\"A unique identifier representing your end-user. Helps OpenAI monitor and detect abuse\").optional(),\n audio: z.record(z.string(), z.unknown()).describe(\"Parameters for audio output. Supported by audio-capable models\").optional(),\n model: z.string().describe(\"ID of the model to use. Supported models include gpt-4o, gpt-4o-mini, gpt-4-turbo, gpt-3.5-turbo, o1, o1-mini, o3-mini, and others\"),\n store: z.boolean().describe(\"Whether to store the output of this chat completion request for use in model distillation or evaluations. Default is true for eligible models\").optional(),\n tools: z.array(z.object({\n type: z.enum([\"function\", \"code_interpreter\", \"file_search\"]).describe(\"The type of tool. 'function' for custom functions, 'code_interpreter' for code execution, 'file_search' for file retrieval\"),\n \"function\": z.object({\n name: z.string().describe(\"The name of the function to be called. Must be a-z, A-Z, 0-9, underscores and dashes, with a maximum length of 64 characters\"),\n strict: z.boolean().describe(\"Whether to enable strict schema adherence when generating the function call. If true, the model will follow the exact schema\").optional(),\n parameters: z.record(z.string(), z.unknown()).describe(\"The parameters the function accepts, described as a JSON Schema object. Omit to indicate the function accepts no parameters\").optional(),\n description: z.string().describe(\"A description of what the function does. Used by the model to choose when to call the function\").optional(),\n}).describe(\"Function definition for function calling.\").optional(),\n}).describe(\"Tool definition for tool calling.\")).describe(\"A list of tools the model may call. Use this for function calling. The model can choose to call one or more functions\").optional(),\n top_p: z.number().describe(\"Nucleus sampling parameter. The model considers tokens with top_p probability mass. 0.1 means only tokens comprising the top 10% probability mass are considered. Mutually exclusive with temperature\").optional(),\n stream: z.boolean().describe(\"If set to true, partial message deltas will be sent as server-sent events (SSE) as they become available\").optional(),\n logprobs: z.boolean().describe(\"Whether to return log probabilities of the output tokens. If true, returns the log probabilities of each output token in the content\").optional(),\n messages: z.array(z.object({\n name: z.string().describe(\"An optional name for the participant. Used in multi-party conversations to differentiate users or for tool/function call results\").optional(),\n role: z.enum([\"system\", \"user\", \"assistant\", \"tool\", \"function\"]).describe(\"The role of the message author. 'system' for instructions, 'user' for user input, 'assistant' for model responses, 'tool' for tool call results, 'function' for function call results (deprecated)\"),\n content: z.union([z.string(), z.array(z.record(z.string(), z.unknown()))]).optional(),\n tool_calls: z.array(z.record(z.string(), z.unknown())).describe(\"Tool calls generated by the model. Only present in assistant messages when the model decides to call functions\").optional(),\n tool_call_id: z.string().describe(\"Tool call ID that this message is responding to. Required when role is 'tool'\").optional(),\n function_call: z.record(z.string(), z.unknown()).describe(\"Deprecated. Function call generated by the model. Use tool_calls instead\").optional(),\n}).describe(\"A message in the chat conversation.\")).describe(\"A list of messages comprising the conversation so far. Each message has a role and content\"),\n metadata: z.object({}).describe(\"Developer-defined tags and values for filtering completions in the dashboard. All values must be strings\").optional(),\n functions: z.array(z.object({\n name: z.string().describe(\"The name of the function to be called. Must be a-z, A-Z, 0-9, underscores and dashes, with a maximum length of 64 characters\"),\n strict: z.boolean().describe(\"Whether to enable strict schema adherence when generating the function call. If true, the model will follow the exact schema\").optional(),\n parameters: z.record(z.string(), z.unknown()).describe(\"The parameters the function accepts, described as a JSON Schema object. Omit to indicate the function accepts no parameters\").optional(),\n description: z.string().describe(\"A description of what the function does. Used by the model to choose when to call the function\").optional(),\n}).describe(\"Function definition for function calling.\")).describe(\"Deprecated. A list of functions the model may generate JSON inputs for. Use tools instead\").optional(),\n logit_bias: z.object({}).describe(\"Modify the likelihood of specified tokens appearing in the completion. Maps token IDs to bias values from -100 to 100. Use tokenizer to find token IDs\").optional(),\n max_tokens: z.number().int().describe(\"The maximum number of tokens to generate in the chat completion. The total length of input tokens and generated tokens is limited by the model's context length\").optional(),\n modalities: z.array(z.enum([\"text\", \"audio\"])).describe(\"Output modalities for the response. Include 'audio' for audio output. Defaults to ['text']\").optional(),\n prediction: z.record(z.string(), z.unknown()).describe(\"Configuration for predicted outputs. Used for latency optimization with certain models\").optional(),\n temperature: z.number().describe(\"Sampling temperature between 0 and 2. Higher values like 0.8 make output more random, lower values like 0.2 make it more focused and deterministic. Mutually exclusive with top_p\").optional(),\n tool_choice: z.union([z.enum([\"none\", \"auto\", \"required\"]), z.record(z.string(), z.unknown())]).optional(),\n service_tier: z.enum([\"auto\", \"default\"]).describe(\"Specifies the latency tier to use for processing the request. 'auto' lets the system infer the best tier, 'default' uses standard processing\").optional(),\n top_logprobs: z.number().int().describe(\"An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability. Requires logprobs=true\").optional(),\n function_call: z.union([z.enum([\"none\", \"auto\"]), z.object({})]).optional(),\n stream_options: z.object({\n include_usage: z.boolean().describe(\"If set, an additional chunk will be streamed at the end with usage statistics. Only applicable when stream=true\").optional(),\n}).describe(\"Streaming options configuration.\").optional(),\n response_format: z.object({\n type: z.enum([\"text\", \"json_object\", \"json_schema\"]).describe(\"The type of response format. 'text' for plain text, 'json_object' for JSON mode, 'json_schema' for strict structured outputs with a schema\"),\n json_schema: z.record(z.string(), z.unknown()).describe(\"The JSON schema definition. Required when type is 'json_schema'\").optional(),\n}).describe(\"Response format specification for structured outputs.\").optional(),\n presence_penalty: z.number().describe(\"Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics\").optional(),\n reasoning_effort: z.enum([\"low\", \"medium\", \"high\"]).describe(\"Reasoning effort level for reasoning models like o1. 'low' for faster responses, 'high' for more thorough reasoning. Only applicable to reasoning models\").optional(),\n frequency_penalty: z.number().describe(\"Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim\").optional(),\n parallel_tool_calls: z.boolean().describe(\"Whether to enable parallel function calling during tool use. Default is true\").optional(),\n max_completion_tokens: z.number().int().describe(\"An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens. Preferred over max_tokens for newer models\").optional(),\n}).describe(\"Request model for creating a chat completion.\");\nconst OpenaiCreateChatCompletion_PromptTokensDetailsSchema: z.ZodTypeAny = z.object({\n audio_tokens: z.number().int().describe(\"Number of audio tokens in the prompt\").nullable().optional(),\n cached_tokens: z.number().int().describe(\"Number of tokens that were cached and reused\").nullable().optional(),\n}).describe(\"Breakdown of tokens used in the prompt.\");\nconst OpenaiCreateChatCompletion_CompletionTokensDetailsSchema: z.ZodTypeAny = z.object({\n audio_tokens: z.number().int().describe(\"Number of audio tokens generated\").nullable().optional(),\n reasoning_tokens: z.number().int().describe(\"Number of reasoning tokens generated by the model\").nullable().optional(),\n accepted_prediction_tokens: z.number().int().describe(\"Number of tokens from predictions that were accepted\").nullable().optional(),\n rejected_prediction_tokens: z.number().int().describe(\"Number of tokens from predictions that were rejected\").nullable().optional(),\n}).describe(\"Breakdown of tokens used in a completion.\");\nconst OpenaiCreateChatCompletion_CompletionUsageSchema: z.ZodTypeAny = z.object({\n total_tokens: z.number().int().describe(\"Total number of tokens used in the request (prompt + completion)\"),\n prompt_tokens: z.number().int().describe(\"Number of tokens in the prompt\"),\n completion_tokens: z.number().int().describe(\"Number of tokens in the generated completion\"),\n prompt_tokens_details: OpenaiCreateChatCompletion_PromptTokensDetailsSchema.nullable().optional(),\n completion_tokens_details: OpenaiCreateChatCompletion_CompletionTokensDetailsSchema.nullable().optional(),\n}).describe(\"Usage statistics for the completion request.\");\nconst OpenaiCreateChatCompletion_ChoiceMessageSchema: z.ZodTypeAny = z.object({\n role: z.string().describe(\"The role of the author of this message\"),\n content: z.string().describe(\"The content of the message. May be null for tool calls\").nullable().optional(),\n refusal: z.string().describe(\"The refusal message if the model refused to fulfill the request\").nullable().optional(),\n tool_calls: z.array(z.record(z.string(), z.unknown())).describe(\"The tool calls generated by the model\").nullable().optional(),\n function_call: z.record(z.string(), z.unknown()).describe(\"Deprecated. The function call generated by the model\").nullable().optional(),\n}).describe(\"The message in a chat completion choice.\");\nconst OpenaiCreateChatCompletion_ChoiceLogprobsSchema: z.ZodTypeAny = z.object({\n content: z.array(z.record(z.string(), z.unknown())).describe(\"A list of message content tokens with log probability information\").nullable().optional(),\n refusal: z.array(z.record(z.string(), z.unknown())).describe(\"A list of refusal tokens with log probability information\").nullable().optional(),\n}).describe(\"Log probability information for a choice.\");\nconst OpenaiCreateChatCompletion_ChatCompletionChoiceSchema: z.ZodTypeAny = z.object({\n index: z.number().int().describe(\"The index of this choice in the list of choices\"),\n message: OpenaiCreateChatCompletion_ChoiceMessageSchema.nullable(),\n logprobs: OpenaiCreateChatCompletion_ChoiceLogprobsSchema.nullable().optional(),\n finish_reason: z.string().describe(\"The reason the model stopped generating tokens. 'stop' for natural stop point or stop sequence, 'length' for max_tokens limit, 'content_filter' for content filter, 'tool_calls' for tool use, 'function_call' for function call\").nullable().optional(),\n}).describe(\"A chat completion choice.\");\nexport const OpenaiCreateChatCompletionOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"A unique identifier for the chat completion\"),\n model: z.string().describe(\"The model used for the chat completion\"),\n usage: OpenaiCreateChatCompletion_CompletionUsageSchema.nullable().optional(),\n object: z.string().describe(\"The object type, which is always 'chat.completion'\"),\n choices: z.array(OpenaiCreateChatCompletion_ChatCompletionChoiceSchema).describe(\"A list of chat completion choices. Can be more than one if n is greater than 1\"),\n created: z.number().int().describe(\"The Unix timestamp (in seconds) of when the chat completion was created\"),\n service_tier: z.string().describe(\"The service tier used for processing the request\").nullable().optional(),\n system_fingerprint: z.string().describe(\"This fingerprint represents the backend configuration that the model runs with. Can be used with the seed parameter to understand when backend changes have been made that might impact determinism\").nullable().optional(),\n}).describe(\"Response schema for chat completion creation.\");\n\nexport const openaiCreateChatCompletion = action(\"OPENAI_CREATE_CHAT_COMPLETION\", {\n slug: \"openai-create-chat-completion\",\n name: \"Create Chat Completion\",\n description: \"Tool to create a chat completion response from OpenAI models. Use for conversational AI, text generation, function calling, multimodal tasks with vision/audio, and structured JSON outputs. Supports advanced features like reasoning models, tool use, and streaming responses.\",\n input: OpenaiCreateChatCompletionInput,\n output: OpenaiCreateChatCompletionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgD,EAAE,OAAO;CACpE,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CAC3H,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;CAC9L,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CAC5H,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC7H,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI;CAC/J,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,+IAA+I,CAAC,CAAC,SAAS;CACtL,OAAO,EAAE,MAAM,EAAE,OAAO;EACxB,MAAM,EAAE,KAAK;GAAC;GAAY;GAAoB;EAAa,CAAC,CAAC,CAAC,SAAS,4HAA4H;EACnM,YAAY,EAAE,OAAO;GACrB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8HAA8H;GACxJ,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,8HAA8H,CAAC,CAAC,SAAS;GACtK,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6HAA6H,CAAC,CAAC,SAAS;GAC/L,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;EAC9I,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClE,CAAC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O,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,qMAAqM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrQ,CAAC,CAAC,CAAC,SAAS,+CAOF;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-chat-completion.mjs","names":[],"sources":["../../src/actions/create-chat-completion.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateChatCompletionInput = z.object({\n n: z.number().int().describe(\"How many chat completion choices to generate for each input message. Default is 1\").optional(),\n seed: z.number().int().describe(\"If specified, the system will make a best effort to sample deterministically. Determinism is not guaranteed, check system_fingerprint in response\").optional(),\n stop: z.union([z.string(), z.array(z.string())]).optional(),\n user: z.string().describe(\"A unique identifier representing your end-user. Helps OpenAI monitor and detect abuse\").optional(),\n audio: z.record(z.string(), z.unknown()).describe(\"Parameters for audio output. Supported by audio-capable models\").optional(),\n model: z.string().describe(\"ID of the model to use. Supported models include gpt-4o, gpt-4o-mini, gpt-4-turbo, gpt-3.5-turbo, o1, o1-mini, o3-mini, and others\"),\n store: z.boolean().describe(\"Whether to store the output of this chat completion request for use in model distillation or evaluations. Default is true for eligible models\").optional(),\n tools: z.array(z.object({\n type: z.enum([\"function\", \"code_interpreter\", \"file_search\"]).describe(\"The type of tool. 'function' for custom functions, 'code_interpreter' for code execution, 'file_search' for file retrieval\"),\n \"function\": z.object({\n name: z.string().describe(\"The name of the function to be called. Must be a-z, A-Z, 0-9, underscores and dashes, with a maximum length of 64 characters\"),\n strict: z.boolean().describe(\"Whether to enable strict schema adherence when generating the function call. If true, the model will follow the exact schema\").optional(),\n parameters: z.record(z.string(), z.unknown()).describe(\"The parameters the function accepts, described as a JSON Schema object. Omit to indicate the function accepts no parameters\").optional(),\n description: z.string().describe(\"A description of what the function does. Used by the model to choose when to call the function\").optional(),\n}).describe(\"Function definition for function calling.\").optional(),\n}).passthrough().describe(\"Tool definition for tool calling.\")).describe(\"A list of tools the model may call. Use this for function calling. The model can choose to call one or more functions\").optional(),\n top_p: z.number().describe(\"Nucleus sampling parameter. The model considers tokens with top_p probability mass. 0.1 means only tokens comprising the top 10% probability mass are considered. Mutually exclusive with temperature\").optional(),\n stream: z.boolean().describe(\"If set to true, partial message deltas will be sent as server-sent events (SSE) as they become available\").optional(),\n logprobs: z.boolean().describe(\"Whether to return log probabilities of the output tokens. If true, returns the log probabilities of each output token in the content\").optional(),\n messages: z.array(z.object({\n name: z.string().describe(\"An optional name for the participant. Used in multi-party conversations to differentiate users or for tool/function call results\").optional(),\n role: z.enum([\"system\", \"user\", \"assistant\", \"tool\", \"function\"]).describe(\"The role of the message author. 'system' for instructions, 'user' for user input, 'assistant' for model responses, 'tool' for tool call results, 'function' for function call results (deprecated)\"),\n content: z.union([z.string(), z.array(z.record(z.string(), z.unknown()))]).optional(),\n tool_calls: z.array(z.record(z.string(), z.unknown())).describe(\"Tool calls generated by the model. Only present in assistant messages when the model decides to call functions\").optional(),\n tool_call_id: z.string().describe(\"Tool call ID that this message is responding to. Required when role is 'tool'\").optional(),\n function_call: z.record(z.string(), z.unknown()).describe(\"Deprecated. Function call generated by the model. Use tool_calls instead\").optional(),\n}).passthrough().describe(\"A message in the chat conversation.\")).describe(\"A list of messages comprising the conversation so far. Each message has a role and content\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Developer-defined tags and values for filtering completions in the dashboard. All values must be strings\").optional(),\n functions: z.array(z.object({\n name: z.string().describe(\"The name of the function to be called. Must be a-z, A-Z, 0-9, underscores and dashes, with a maximum length of 64 characters\"),\n strict: z.boolean().describe(\"Whether to enable strict schema adherence when generating the function call. If true, the model will follow the exact schema\").optional(),\n parameters: z.record(z.string(), z.unknown()).describe(\"The parameters the function accepts, described as a JSON Schema object. Omit to indicate the function accepts no parameters\").optional(),\n description: z.string().describe(\"A description of what the function does. Used by the model to choose when to call the function\").optional(),\n}).passthrough().describe(\"Function definition for function calling.\")).describe(\"Deprecated. A list of functions the model may generate JSON inputs for. Use tools instead\").optional(),\n logit_bias: z.record(z.string(), z.unknown()).describe(\"Modify the likelihood of specified tokens appearing in the completion. Maps token IDs to bias values from -100 to 100. Use tokenizer to find token IDs\").optional(),\n max_tokens: z.number().int().describe(\"The maximum number of tokens to generate in the chat completion. The total length of input tokens and generated tokens is limited by the model's context length\").optional(),\n modalities: z.array(z.enum([\"text\", \"audio\"])).describe(\"Output modalities for the response. Include 'audio' for audio output. Defaults to ['text']\").optional(),\n prediction: z.record(z.string(), z.unknown()).describe(\"Configuration for predicted outputs. Used for latency optimization with certain models\").optional(),\n temperature: z.number().describe(\"Sampling temperature between 0 and 2. Higher values like 0.8 make output more random, lower values like 0.2 make it more focused and deterministic. Mutually exclusive with top_p\").optional(),\n tool_choice: z.union([z.enum([\"none\", \"auto\", \"required\"]), z.record(z.string(), z.unknown())]).optional(),\n service_tier: z.enum([\"auto\", \"default\"]).describe(\"Specifies the latency tier to use for processing the request. 'auto' lets the system infer the best tier, 'default' uses standard processing\").optional(),\n top_logprobs: z.number().int().describe(\"An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability. Requires logprobs=true\").optional(),\n function_call: z.union([z.enum([\"none\", \"auto\"]), z.record(z.string(), z.unknown())]).optional(),\n stream_options: z.object({\n include_usage: z.boolean().describe(\"If set, an additional chunk will be streamed at the end with usage statistics. Only applicable when stream=true\").optional(),\n}).describe(\"Streaming options configuration.\").optional(),\n response_format: z.object({\n type: z.enum([\"text\", \"json_object\", \"json_schema\"]).describe(\"The type of response format. 'text' for plain text, 'json_object' for JSON mode, 'json_schema' for strict structured outputs with a schema\"),\n json_schema: z.record(z.string(), z.unknown()).describe(\"The JSON schema definition. Required when type is 'json_schema'\").optional(),\n}).describe(\"Response format specification for structured outputs.\").optional(),\n presence_penalty: z.number().describe(\"Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics\").optional(),\n reasoning_effort: z.enum([\"low\", \"medium\", \"high\"]).describe(\"Reasoning effort level for reasoning models like o1. 'low' for faster responses, 'high' for more thorough reasoning. Only applicable to reasoning models\").optional(),\n frequency_penalty: z.number().describe(\"Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim\").optional(),\n parallel_tool_calls: z.boolean().describe(\"Whether to enable parallel function calling during tool use. Default is true\").optional(),\n max_completion_tokens: z.number().int().describe(\"An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens. Preferred over max_tokens for newer models\").optional(),\n}).describe(\"Request model for creating a chat completion.\");\nconst OpenaiCreateChatCompletion_PromptTokensDetailsSchema = z.object({\n audio_tokens: z.number().int().describe(\"Number of audio tokens in the prompt\").nullable().optional(),\n cached_tokens: z.number().int().describe(\"Number of tokens that were cached and reused\").nullable().optional(),\n}).passthrough().describe(\"Breakdown of tokens used in the prompt.\");\nconst OpenaiCreateChatCompletion_CompletionTokensDetailsSchema = z.object({\n audio_tokens: z.number().int().describe(\"Number of audio tokens generated\").nullable().optional(),\n reasoning_tokens: z.number().int().describe(\"Number of reasoning tokens generated by the model\").nullable().optional(),\n accepted_prediction_tokens: z.number().int().describe(\"Number of tokens from predictions that were accepted\").nullable().optional(),\n rejected_prediction_tokens: z.number().int().describe(\"Number of tokens from predictions that were rejected\").nullable().optional(),\n}).passthrough().describe(\"Breakdown of tokens used in a completion.\");\nconst OpenaiCreateChatCompletion_CompletionUsageSchema = z.object({\n total_tokens: z.number().int().describe(\"Total number of tokens used in the request (prompt + completion)\").nullable(),\n prompt_tokens: z.number().int().describe(\"Number of tokens in the prompt\").nullable(),\n completion_tokens: z.number().int().describe(\"Number of tokens in the generated completion\").nullable(),\n prompt_tokens_details: OpenaiCreateChatCompletion_PromptTokensDetailsSchema.nullable().optional(),\n completion_tokens_details: OpenaiCreateChatCompletion_CompletionTokensDetailsSchema.nullable().optional(),\n}).passthrough().describe(\"Usage statistics for the completion request.\");\nconst OpenaiCreateChatCompletion_ChoiceMessageSchema = z.object({\n role: z.string().describe(\"The role of the author of this message\").nullable(),\n content: z.string().describe(\"The content of the message. May be null for tool calls\").nullable().optional(),\n refusal: z.string().describe(\"The refusal message if the model refused to fulfill the request\").nullable().optional(),\n tool_calls: z.array(z.record(z.string(), z.unknown())).describe(\"The tool calls generated by the model\").nullable().optional(),\n function_call: z.record(z.string(), z.unknown()).describe(\"Deprecated. The function call generated by the model\").nullable().optional(),\n}).passthrough().describe(\"The message in a chat completion choice.\");\nconst OpenaiCreateChatCompletion_ChoiceLogprobsSchema = z.object({\n content: z.array(z.record(z.string(), z.unknown())).describe(\"A list of message content tokens with log probability information\").nullable().optional(),\n refusal: z.array(z.record(z.string(), z.unknown())).describe(\"A list of refusal tokens with log probability information\").nullable().optional(),\n}).passthrough().describe(\"Log probability information for a choice.\");\nconst OpenaiCreateChatCompletion_ChatCompletionChoiceSchema = z.object({\n index: z.number().int().describe(\"The index of this choice in the list of choices\").nullable(),\n message: OpenaiCreateChatCompletion_ChoiceMessageSchema.nullable(),\n logprobs: OpenaiCreateChatCompletion_ChoiceLogprobsSchema.nullable().optional(),\n finish_reason: z.string().describe(\"The reason the model stopped generating tokens. 'stop' for natural stop point or stop sequence, 'length' for max_tokens limit, 'content_filter' for content filter, 'tool_calls' for tool use, 'function_call' for function call\").nullable().optional(),\n}).passthrough().describe(\"A chat completion choice.\");\nexport const OpenaiCreateChatCompletionOutput = z.object({\n id: z.string().describe(\"A unique identifier for the chat completion\").nullable(),\n model: z.string().describe(\"The model used for the chat completion\").nullable(),\n usage: OpenaiCreateChatCompletion_CompletionUsageSchema.nullable().optional(),\n object: z.string().describe(\"The object type, which is always 'chat.completion'\").nullable(),\n choices: z.array(OpenaiCreateChatCompletion_ChatCompletionChoiceSchema).describe(\"A list of chat completion choices. Can be more than one if n is greater than 1\"),\n created: z.number().int().describe(\"The Unix timestamp (in seconds) of when the chat completion was created\").nullable(),\n service_tier: z.string().describe(\"The service tier used for processing the request\").nullable().optional(),\n system_fingerprint: z.string().describe(\"This fingerprint represents the backend configuration that the model runs with. Can be used with the seed parameter to understand when backend changes have been made that might impact determinism\").nullable().optional(),\n}).passthrough().describe(\"Response schema for chat completion creation.\");\n\nexport const openaiCreateChatCompletion = action(\"OPENAI_CREATE_CHAT_COMPLETION\", {\n slug: \"openai-create-chat-completion\",\n name: \"Create Chat Completion\",\n description: \"Tool to create a chat completion response from OpenAI models. Use for conversational AI, text generation, function calling, multimodal tasks with vision/audio, and structured JSON outputs. Supports advanced features like reasoning models, tool use, and streaming responses.\",\n input: OpenaiCreateChatCompletionInput,\n output: OpenaiCreateChatCompletionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CAC3H,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;CAC9L,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CAC5H,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC7H,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI;CAC/J,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,+IAA+I,CAAC,CAAC,SAAS;CACtL,OAAO,EAAE,MAAM,EAAE,OAAO;EACxB,MAAM,EAAE,KAAK;GAAC;GAAY;GAAoB;EAAa,CAAC,CAAC,CAAC,SAAS,4HAA4H;EACnM,YAAY,EAAE,OAAO;GACrB,MAAM,EAAE,OAAO,C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,SAAS,+CAA+C,SAAS;CACjE,UAAU,gDAAgD,SAAS,CAAC,CAAC,SAAS;CAC9E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kOAAkO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7R,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2BAA2B;AAYrD,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhB8C,EAAE,OAAO;EACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EAC9E,OAAO,iDAAiD,SAAS,CAAC,CAAC,SAAS;EAC5E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EAC3F,SAAS,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,gFAAgF;EACjK,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;EACvH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,qMAAqM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAOhB;AACV,CAAC"}
|
|
@@ -19,51 +19,51 @@ const OpenaiCreateCompletionInput = zod.z.object({
|
|
|
19
19
|
suffix: zod.z.string().describe("The suffix that comes after a completion of inserted text. This parameter is only supported for gpt-3.5-turbo-instruct.").optional(),
|
|
20
20
|
best_of: zod.z.number().int().describe("Generates best_of completions server-side and returns the \"best\" (the one with the highest log probability per token). Results cannot be streamed. When used with n, best_of controls the number of candidate completions and n specifies how many to return. best_of must be greater than n. Note: Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for max_tokens and stop.").optional(),
|
|
21
21
|
logprobs: zod.z.number().int().describe("Include the log probabilities on the logprobs most likely output tokens, as well the chosen tokens. For example, if logprobs is 5, the API will return a list of the 5 most likely tokens. The API will always return the logprob of the sampled token, so there may be up to logprobs+1 elements in the response. The maximum value for logprobs is 5.").optional(),
|
|
22
|
-
logit_bias: zod.z.
|
|
22
|
+
logit_bias: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Modify the likelihood of specified tokens appearing in the completion. Accepts a JSON object that maps tokens (specified by their token ID in the GPT tokenizer) to an associated bias value from -100 to 100. You can use this tokenizer tool to convert text to token IDs. Mathematically, the bias is added to the logits generated by the model prior to sampling. The exact effect will vary per model, but values between -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100 should result in a ban or exclusive selection of the relevant token.").optional(),
|
|
23
23
|
max_tokens: zod.z.number().int().describe("The maximum number of tokens that can be generated in the completion. The token count of your prompt plus max_tokens cannot exceed the model's context length. Default is 16.").optional(),
|
|
24
24
|
temperature: zod.z.number().describe("What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. We generally recommend altering this or top_p but not both. Default is 1.").optional(),
|
|
25
|
-
stream_options: zod.z.
|
|
25
|
+
stream_options: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Options for streaming responses. Can include 'include_usage' and 'include_obfuscation' fields.").optional(),
|
|
26
26
|
presence_penalty: zod.z.number().describe("Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. Default is 0.").optional(),
|
|
27
27
|
frequency_penalty: zod.z.number().describe("Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. Default is 0.").optional()
|
|
28
28
|
}).describe("Request model for creating text completions via the legacy Completions API.");
|
|
29
29
|
const OpenaiCreateCompletion_PromptTokensDetailsSchema = zod.z.object({
|
|
30
30
|
audio_tokens: zod.z.number().int().describe("Number of audio tokens in the prompt.").nullable().optional(),
|
|
31
31
|
cached_tokens: zod.z.number().int().describe("Number of cached tokens in the prompt.").nullable().optional()
|
|
32
|
-
}).describe("Breakdown of tokens used in the prompt.");
|
|
32
|
+
}).passthrough().describe("Breakdown of tokens used in the prompt.");
|
|
33
33
|
const OpenaiCreateCompletion_CompletionTokensDetailsSchema = zod.z.object({
|
|
34
34
|
audio_tokens: zod.z.number().int().describe("Number of audio tokens used.").nullable().optional(),
|
|
35
35
|
reasoning_tokens: zod.z.number().int().describe("Number of reasoning tokens used.").nullable().optional(),
|
|
36
36
|
accepted_prediction_tokens: zod.z.number().int().describe("Number of accepted prediction tokens.").nullable().optional(),
|
|
37
37
|
rejected_prediction_tokens: zod.z.number().int().describe("Number of rejected prediction tokens.").nullable().optional()
|
|
38
|
-
}).describe("Breakdown of tokens used in a completion.");
|
|
38
|
+
}).passthrough().describe("Breakdown of tokens used in a completion.");
|
|
39
39
|
const OpenaiCreateCompletion_CompletionUsageSchema = zod.z.object({
|
|
40
|
-
total_tokens: zod.z.number().int().describe("Total number of tokens used in the request (prompt + completion)."),
|
|
41
|
-
prompt_tokens: zod.z.number().int().describe("Number of tokens in the prompt."),
|
|
40
|
+
total_tokens: zod.z.number().int().describe("Total number of tokens used in the request (prompt + completion).").nullable(),
|
|
41
|
+
prompt_tokens: zod.z.number().int().describe("Number of tokens in the prompt.").nullable(),
|
|
42
42
|
completion_tokens: zod.z.number().int().describe("Number of tokens in the generated completion.").nullable().optional(),
|
|
43
43
|
prompt_tokens_details: OpenaiCreateCompletion_PromptTokensDetailsSchema.nullable().optional(),
|
|
44
44
|
completion_tokens_details: OpenaiCreateCompletion_CompletionTokensDetailsSchema.nullable().optional()
|
|
45
|
-
}).describe("Usage statistics for the completion request.");
|
|
45
|
+
}).passthrough().describe("Usage statistics for the completion request.");
|
|
46
46
|
const OpenaiCreateCompletion_CompletionLogprobsSchema = zod.z.object({
|
|
47
47
|
tokens: zod.z.array(zod.z.string()).describe("The list of tokens generated.").nullable().optional(),
|
|
48
48
|
text_offset: zod.z.array(zod.z.number().int()).describe("The character offsets of each token in the completion.").nullable().optional(),
|
|
49
|
-
top_logprobs: zod.z.array(zod.z.
|
|
50
|
-
token_logprobs: zod.z.array(zod.z.number().nullable()).describe("The log probabilities of each token.").optional()
|
|
51
|
-
}).describe("Log probability information for a completion.");
|
|
49
|
+
top_logprobs: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown()).nullable()).describe("For each token, a dictionary of the top alternative tokens and their log probabilities.").nullable().optional(),
|
|
50
|
+
token_logprobs: zod.z.array(zod.z.number().nullable()).describe("The log probabilities of each token.").nullable().optional()
|
|
51
|
+
}).passthrough().describe("Log probability information for a completion.");
|
|
52
52
|
const OpenaiCreateCompletion_CompletionChoiceSchema = zod.z.object({
|
|
53
|
-
text: zod.z.string().describe("The generated completion text."),
|
|
54
|
-
index: zod.z.number().int().describe("The index of this completion choice."),
|
|
53
|
+
text: zod.z.string().describe("The generated completion text.").nullable(),
|
|
54
|
+
index: zod.z.number().int().describe("The index of this completion choice.").nullable(),
|
|
55
55
|
logprobs: OpenaiCreateCompletion_CompletionLogprobsSchema.nullable().optional(),
|
|
56
56
|
finish_reason: zod.z.string().describe("The reason the completion finished. Possible values: 'stop' (API returned complete message), 'length' (incomplete due to max_tokens limit), 'content_filter' (content was filtered by content filters).").nullable().optional()
|
|
57
|
-
}).describe("A single completion choice returned by the API.");
|
|
57
|
+
}).passthrough().describe("A single completion choice returned by the API.");
|
|
58
58
|
const OpenaiCreateCompletionOutput = zod.z.object({
|
|
59
|
-
id: zod.z.string().describe("A unique identifier for the completion."),
|
|
60
|
-
model: zod.z.string().describe("The model used for completion."),
|
|
59
|
+
id: zod.z.string().describe("A unique identifier for the completion.").nullable(),
|
|
60
|
+
model: zod.z.string().describe("The model used for completion.").nullable(),
|
|
61
61
|
usage: OpenaiCreateCompletion_CompletionUsageSchema.nullable().optional(),
|
|
62
|
-
object: zod.z.string().describe("The object type, which is always 'text_completion'."),
|
|
62
|
+
object: zod.z.string().describe("The object type, which is always 'text_completion'.").nullable(),
|
|
63
63
|
choices: zod.z.array(OpenaiCreateCompletion_CompletionChoiceSchema).describe("The list of completion choices the model generated for the input prompt."),
|
|
64
|
-
created: zod.z.number().int().describe("The Unix timestamp (in seconds) of when the completion was created."),
|
|
64
|
+
created: zod.z.number().int().describe("The Unix timestamp (in seconds) of when the completion was created.").nullable(),
|
|
65
65
|
system_fingerprint: zod.z.string().describe("This fingerprint represents the backend configuration that the model runs with. Can be used in conjunction with the seed request parameter to understand when backend changes have been made that might impact determinism.").nullable().optional()
|
|
66
|
-
}).describe("Response schema for text completion creation.");
|
|
66
|
+
}).passthrough().describe("Response schema for text completion creation.");
|
|
67
67
|
const openaiCreateCompletion = require_action.action("OPENAI_CREATE_COMPLETION", {
|
|
68
68
|
slug: "openai-create-completion",
|
|
69
69
|
name: "Create Completion (Legacy)",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-completion.cjs","names":["z","action"],"sources":["../../src/actions/create-completion.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateCompletionInput: z.ZodTypeAny = z.object({\n n: z.number().int().describe(\"How many completions to generate for each prompt. Note: Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for max_tokens and stop. Default is 1.\").optional(),\n echo: z.boolean().describe(\"Echo back the prompt in addition to the completion. Default is false.\").optional(),\n seed: z.number().int().describe(\"If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed, and you should refer to the system_fingerprint response parameter to monitor changes in the backend.\").optional(),\n stop: z.union([z.string(), z.array(z.string())]).optional(),\n user: z.string().describe(\"A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.\").optional(),\n model: z.string().describe(\"ID of the model to use. You can use the List models API to see all of your available models, or see the Model overview for descriptions of them. Examples: 'gpt-3.5-turbo-instruct', 'davinci-002', 'babbage-002'.\"),\n top_p: z.number().describe(\"An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or temperature but not both. Default is 1.\").optional(),\n prompt: z.union([z.string(), z.array(z.string()), z.array(z.number().int()), z.array(z.array(z.number().int()))]),\n stream: z.boolean().describe(\"Whether to stream back partial progress. If set, tokens will be sent as data-only server-sent events as they become available, with the stream terminated by a data: [DONE] message. Default is false.\").optional(),\n suffix: z.string().describe(\"The suffix that comes after a completion of inserted text. This parameter is only supported for gpt-3.5-turbo-instruct.\").optional(),\n best_of: z.number().int().describe(\"Generates best_of completions server-side and returns the \\\"best\\\" (the one with the highest log probability per token). Results cannot be streamed. When used with n, best_of controls the number of candidate completions and n specifies how many to return. best_of must be greater than n. Note: Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for max_tokens and stop.\").optional(),\n logprobs: z.number().int().describe(\"Include the log probabilities on the logprobs most likely output tokens, as well the chosen tokens. For example, if logprobs is 5, the API will return a list of the 5 most likely tokens. The API will always return the logprob of the sampled token, so there may be up to logprobs+1 elements in the response. The maximum value for logprobs is 5.\").optional(),\n logit_bias: z.object({}).describe(\"Modify the likelihood of specified tokens appearing in the completion. Accepts a JSON object that maps tokens (specified by their token ID in the GPT tokenizer) to an associated bias value from -100 to 100. You can use this tokenizer tool to convert text to token IDs. Mathematically, the bias is added to the logits generated by the model prior to sampling. The exact effect will vary per model, but values between -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100 should result in a ban or exclusive selection of the relevant token.\").optional(),\n max_tokens: z.number().int().describe(\"The maximum number of tokens that can be generated in the completion. The token count of your prompt plus max_tokens cannot exceed the model's context length. Default is 16.\").optional(),\n temperature: z.number().describe(\"What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. We generally recommend altering this or top_p but not both. Default is 1.\").optional(),\n stream_options: z.object({}).describe(\"Options for streaming responses. Can include 'include_usage' and 'include_obfuscation' fields.\").optional(),\n presence_penalty: z.number().describe(\"Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. Default is 0.\").optional(),\n frequency_penalty: z.number().describe(\"Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. Default is 0.\").optional(),\n}).describe(\"Request model for creating text completions via the legacy Completions API.\");\nconst OpenaiCreateCompletion_PromptTokensDetailsSchema: z.ZodTypeAny = z.object({\n audio_tokens: z.number().int().describe(\"Number of audio tokens in the prompt.\").nullable().optional(),\n cached_tokens: z.number().int().describe(\"Number of cached tokens in the prompt.\").nullable().optional(),\n}).describe(\"Breakdown of tokens used in the prompt.\");\nconst OpenaiCreateCompletion_CompletionTokensDetailsSchema: z.ZodTypeAny = z.object({\n audio_tokens: z.number().int().describe(\"Number of audio tokens used.\").nullable().optional(),\n reasoning_tokens: z.number().int().describe(\"Number of reasoning tokens used.\").nullable().optional(),\n accepted_prediction_tokens: z.number().int().describe(\"Number of accepted prediction tokens.\").nullable().optional(),\n rejected_prediction_tokens: z.number().int().describe(\"Number of rejected prediction tokens.\").nullable().optional(),\n}).describe(\"Breakdown of tokens used in a completion.\");\nconst OpenaiCreateCompletion_CompletionUsageSchema: z.ZodTypeAny = z.object({\n total_tokens: z.number().int().describe(\"Total number of tokens used in the request (prompt + completion).\"),\n prompt_tokens: z.number().int().describe(\"Number of tokens in the prompt.\"),\n completion_tokens: z.number().int().describe(\"Number of tokens in the generated completion.\").nullable().optional(),\n prompt_tokens_details: OpenaiCreateCompletion_PromptTokensDetailsSchema.nullable().optional(),\n completion_tokens_details: OpenaiCreateCompletion_CompletionTokensDetailsSchema.nullable().optional(),\n}).describe(\"Usage statistics for the completion request.\");\nconst OpenaiCreateCompletion_CompletionLogprobsSchema: z.ZodTypeAny = z.object({\n tokens: z.array(z.string()).describe(\"The list of tokens generated.\").nullable().optional(),\n text_offset: z.array(z.number().int()).describe(\"The character offsets of each token in the completion.\").nullable().optional(),\n top_logprobs: z.array(z.object({}).nullable()).describe(\"For each token, a dictionary of the top alternative tokens and their log probabilities.\").optional(),\n token_logprobs: z.array(z.number().nullable()).describe(\"The log probabilities of each token.\").optional(),\n}).describe(\"Log probability information for a completion.\");\nconst OpenaiCreateCompletion_CompletionChoiceSchema: z.ZodTypeAny = z.object({\n text: z.string().describe(\"The generated completion text.\"),\n index: z.number().int().describe(\"The index of this completion choice.\"),\n logprobs: OpenaiCreateCompletion_CompletionLogprobsSchema.nullable().optional(),\n finish_reason: z.string().describe(\"The reason the completion finished. Possible values: 'stop' (API returned complete message), 'length' (incomplete due to max_tokens limit), 'content_filter' (content was filtered by content filters).\").nullable().optional(),\n}).describe(\"A single completion choice returned by the API.\");\nexport const OpenaiCreateCompletionOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"A unique identifier for the completion.\"),\n model: z.string().describe(\"The model used for completion.\"),\n usage: OpenaiCreateCompletion_CompletionUsageSchema.nullable().optional(),\n object: z.string().describe(\"The object type, which is always 'text_completion'.\"),\n choices: z.array(OpenaiCreateCompletion_CompletionChoiceSchema).describe(\"The list of completion choices the model generated for the input prompt.\"),\n created: z.number().int().describe(\"The Unix timestamp (in seconds) of when the completion was created.\"),\n system_fingerprint: z.string().describe(\"This fingerprint represents the backend configuration that the model runs with. Can be used in conjunction with the seed request parameter to understand when backend changes have been made that might impact determinism.\").nullable().optional(),\n}).describe(\"Response schema for text completion creation.\");\n\nexport const openaiCreateCompletion = action(\"OPENAI_CREATE_COMPLETION\", {\n slug: \"openai-create-completion\",\n name: \"Create Completion (Legacy)\",\n description: \"Tool to generate text completions using OpenAI's legacy Completions API. Use for single-turn text generation with models like gpt-3.5-turbo-instruct. Note: This endpoint is legacy; prefer Chat Completions for newer models.\",\n input: OpenaiCreateCompletionInput,\n output: OpenaiC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SAAS,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,gDAA8DA,IAAAA,EAAE,OAAO;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC;CACvE,UAAU,gDAAgD,SAAS,CAAC,CAAC,SAAS;CAC9E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yMAAyM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpQ,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACjE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC3D,OAAO,6CAA6C,SAAS,CAAC,CAAC,SAAS;CACxE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CACjF,SAASA,IAAAA,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,0EAA0E;CACnJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE;CACxG,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6NAA6N,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7R,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAE3D,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-completion.cjs","names":["z","action"],"sources":["../../src/actions/create-completion.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateCompletionInput = z.object({\n n: z.number().int().describe(\"How many completions to generate for each prompt. Note: Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for max_tokens and stop. Default is 1.\").optional(),\n echo: z.boolean().describe(\"Echo back the prompt in addition to the completion. Default is false.\").optional(),\n seed: z.number().int().describe(\"If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed, and you should refer to the system_fingerprint response parameter to monitor changes in the backend.\").optional(),\n stop: z.union([z.string(), z.array(z.string())]).optional(),\n user: z.string().describe(\"A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.\").optional(),\n model: z.string().describe(\"ID of the model to use. You can use the List models API to see all of your available models, or see the Model overview for descriptions of them. Examples: 'gpt-3.5-turbo-instruct', 'davinci-002', 'babbage-002'.\"),\n top_p: z.number().describe(\"An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or temperature but not both. Default is 1.\").optional(),\n prompt: z.union([z.string(), z.array(z.string()), z.array(z.number().int()), z.array(z.array(z.number().int()))]),\n stream: z.boolean().describe(\"Whether to stream back partial progress. If set, tokens will be sent as data-only server-sent events as they become available, with the stream terminated by a data: [DONE] message. Default is false.\").optional(),\n suffix: z.string().describe(\"The suffix that comes after a completion of inserted text. This parameter is only supported for gpt-3.5-turbo-instruct.\").optional(),\n best_of: z.number().int().describe(\"Generates best_of completions server-side and returns the \\\"best\\\" (the one with the highest log probability per token). Results cannot be streamed. When used with n, best_of controls the number of candidate completions and n specifies how many to return. best_of must be greater than n. Note: Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for max_tokens and stop.\").optional(),\n logprobs: z.number().int().describe(\"Include the log probabilities on the logprobs most likely output tokens, as well the chosen tokens. For example, if logprobs is 5, the API will return a list of the 5 most likely tokens. The API will always return the logprob of the sampled token, so there may be up to logprobs+1 elements in the response. The maximum value for logprobs is 5.\").optional(),\n logit_bias: z.record(z.string(), z.unknown()).describe(\"Modify the likelihood of specified tokens appearing in the completion. Accepts a JSON object that maps tokens (specified by their token ID in the GPT tokenizer) to an associated bias value from -100 to 100. You can use this tokenizer tool to convert text to token IDs. Mathematically, the bias is added to the logits generated by the model prior to sampling. The exact effect will vary per model, but values between -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100 should result in a ban or exclusive selection of the relevant token.\").optional(),\n max_tokens: z.number().int().describe(\"The maximum number of tokens that can be generated in the completion. The token count of your prompt plus max_tokens cannot exceed the model's context length. Default is 16.\").optional(),\n temperature: z.number().describe(\"What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. We generally recommend altering this or top_p but not both. Default is 1.\").optional(),\n stream_options: z.record(z.string(), z.unknown()).describe(\"Options for streaming responses. Can include 'include_usage' and 'include_obfuscation' fields.\").optional(),\n presence_penalty: z.number().describe(\"Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. Default is 0.\").optional(),\n frequency_penalty: z.number().describe(\"Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. Default is 0.\").optional(),\n}).describe(\"Request model for creating text completions via the legacy Completions API.\");\nconst OpenaiCreateCompletion_PromptTokensDetailsSchema = z.object({\n audio_tokens: z.number().int().describe(\"Number of audio tokens in the prompt.\").nullable().optional(),\n cached_tokens: z.number().int().describe(\"Number of cached tokens in the prompt.\").nullable().optional(),\n}).passthrough().describe(\"Breakdown of tokens used in the prompt.\");\nconst OpenaiCreateCompletion_CompletionTokensDetailsSchema = z.object({\n audio_tokens: z.number().int().describe(\"Number of audio tokens used.\").nullable().optional(),\n reasoning_tokens: z.number().int().describe(\"Number of reasoning tokens used.\").nullable().optional(),\n accepted_prediction_tokens: z.number().int().describe(\"Number of accepted prediction tokens.\").nullable().optional(),\n rejected_prediction_tokens: z.number().int().describe(\"Number of rejected prediction tokens.\").nullable().optional(),\n}).passthrough().describe(\"Breakdown of tokens used in a completion.\");\nconst OpenaiCreateCompletion_CompletionUsageSchema = z.object({\n total_tokens: z.number().int().describe(\"Total number of tokens used in the request (prompt + completion).\").nullable(),\n prompt_tokens: z.number().int().describe(\"Number of tokens in the prompt.\").nullable(),\n completion_tokens: z.number().int().describe(\"Number of tokens in the generated completion.\").nullable().optional(),\n prompt_tokens_details: OpenaiCreateCompletion_PromptTokensDetailsSchema.nullable().optional(),\n completion_tokens_details: OpenaiCreateCompletion_CompletionTokensDetailsSchema.nullable().optional(),\n}).passthrough().describe(\"Usage statistics for the completion request.\");\nconst OpenaiCreateCompletion_CompletionLogprobsSchema = z.object({\n tokens: z.array(z.string()).describe(\"The list of tokens generated.\").nullable().optional(),\n text_offset: z.array(z.number().int()).describe(\"The character offsets of each token in the completion.\").nullable().optional(),\n top_logprobs: z.array(z.record(z.string(), z.unknown()).nullable()).describe(\"For each token, a dictionary of the top alternative tokens and their log probabilities.\").nullable().optional(),\n token_logprobs: z.array(z.number().nullable()).describe(\"The log probabilities of each token.\").nullable().optional(),\n}).passthrough().describe(\"Log probability information for a completion.\");\nconst OpenaiCreateCompletion_CompletionChoiceSchema = z.object({\n text: z.string().describe(\"The generated completion text.\").nullable(),\n index: z.number().int().describe(\"The index of this completion choice.\").nullable(),\n logprobs: OpenaiCreateCompletion_CompletionLogprobsSchema.nullable().optional(),\n finish_reason: z.string().describe(\"The reason the completion finished. Possible values: 'stop' (API returned complete message), 'length' (incomplete due to max_tokens limit), 'content_filter' (content was filtered by content filters).\").nullable().optional(),\n}).passthrough().describe(\"A single completion choice returned by the API.\");\nexport const OpenaiCreateCompletionOutput = z.object({\n id: z.string().describe(\"A unique identifier for the completion.\").nullable(),\n model: z.string().describe(\"The model used for completion.\").nullable(),\n usage: OpenaiCreateCompletion_CompletionUsageSchema.nullable().optional(),\n object: z.string().describe(\"The object type, which is always 'text_completion'.\").nullable(),\n choices: z.array(OpenaiCreateCompletion_CompletionChoiceSchema).describe(\"The list of completion choices the model generated for the input prompt.\"),\n created: z.number().int().describe(\"The Unix timestamp (in seconds) of when the completion was created.\").nullable(),\n system_fingerprint: z.string().describe(\"This fingerprint represents the backend configuration that the model runs with. Can be used in conjunction with the seed request parameter to understand when backend changes have been made that might impact determinism.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for text completion creation.\");\n\nexport const openaiCreateCompletion = action(\"OPENAI_CREATE_COMPLETION\", {\n slug: \"openai-create-completion\",\n name: \"Create Completion (Legacy)\",\n description: \"Tool to generate text completions using OpenAI's legacy Completions API. Use for single-turn text generation with models like gpt-3.5-turbo-instruct. Note: This endpoint is legacy; prefer Chat Completions for newer models.\",\n input: OpenaiCreateCompletionInput,\n output: OpenaiCreateCompletionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uPAAuP,CAAC,CAAC,SAAS;CAC/R,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAC7G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gTAAgT,CAAC,CAAC,SAAS;CAC3V,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CACzI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oNAAoN;CAC/O,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6TAA6T,CAAC,CAAC,SAAS;CACnW,QAAQA,IAAAA,EAAE,MAAM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