@sap-ai-sdk/foundation-models 1.6.1-20250115013059.0 → 1.6.1-20250117013046.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -0
- package/dist/azure-openai/azure-openai-chat-completion-response.d.ts +3 -3
- package/dist/azure-openai/azure-openai-chat-completion-response.d.ts.map +1 -1
- package/dist/azure-openai/azure-openai-chat-completion-response.js.map +1 -1
- package/dist/azure-openai/azure-openai-chat-completion-stream-chunk-response.d.ts +4 -4
- package/dist/azure-openai/azure-openai-chat-completion-stream-chunk-response.d.ts.map +1 -1
- package/dist/azure-openai/azure-openai-chat-completion-stream-chunk-response.js +2 -5
- package/dist/azure-openai/azure-openai-chat-completion-stream-chunk-response.js.map +1 -1
- package/dist/azure-openai/azure-openai-chat-completion-stream-response.d.ts +4 -4
- package/dist/azure-openai/azure-openai-chat-completion-stream-response.d.ts.map +1 -1
- package/dist/azure-openai/azure-openai-chat-completion-stream-response.js.map +1 -1
- package/dist/azure-openai/azure-openai-chat-completion-stream.d.ts +5 -4
- package/dist/azure-openai/azure-openai-chat-completion-stream.d.ts.map +1 -1
- package/dist/azure-openai/azure-openai-chat-completion-stream.js +9 -5
- package/dist/azure-openai/azure-openai-chat-completion-stream.js.map +1 -1
- package/dist/azure-openai/client/inference/schema/audio-response-format.js +1 -1
- package/dist/azure-openai/client/inference/schema/audio-response.d.ts +1 -1
- package/dist/azure-openai/client/inference/schema/audio-response.js +1 -1
- package/dist/azure-openai/client/inference/schema/audio-segment.js +1 -1
- package/dist/azure-openai/client/inference/schema/audio-verbose-response.d.ts +1 -1
- package/dist/azure-openai/client/inference/schema/azure-chat-extension-configuration.d.ts +3 -3
- package/dist/azure-openai/client/inference/schema/azure-chat-extension-type.d.ts +3 -3
- package/dist/azure-openai/client/inference/schema/azure-chat-extension-type.js +1 -1
- package/dist/azure-openai/client/inference/schema/azure-chat-extensions-message-context.d.ts +3 -3
- package/dist/azure-openai/client/inference/schema/azure-cosmos-db-field-mapping-options.js +1 -1
- package/dist/azure-openai/client/inference/schema/azure-search-index-field-mapping-options.js +1 -1
- package/dist/azure-openai/client/inference/schema/azure-search-query-type.js +1 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-choice-common.js +1 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-choice-log-probs.d.ts +4 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-choice-log-probs.d.ts.map +1 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-function-call-option.d.ts +11 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-function-call-option.d.ts.map +1 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-function-call-option.js +7 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-function-call-option.js.map +1 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-function-call.js +1 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-functions.d.ts +17 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-functions.d.ts.map +1 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-functions.js +2 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-functions.js.map +1 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-message-tool-call-chunk.d.ts +25 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-message-tool-call-chunk.d.ts.map +1 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-message-tool-call-chunk.js +7 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-message-tool-call-chunk.js.map +1 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-message-tool-calls.d.ts +6 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-message-tool-calls.d.ts.map +1 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-message-tool-calls.js +2 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-message-tool-calls.js.map +1 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-named-tool-choice.d.ts +2 -2
- package/dist/azure-openai/client/inference/schema/chat-completion-named-tool-choice.d.ts.map +1 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-named-tool-choice.js +1 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-request-assistant-message-content-part.d.ts +7 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-assistant-message-content-part.d.ts.map +1 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-assistant-message-content-part.js +2 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-assistant-message-content-part.js.map +1 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-assistant-message.d.ts +40 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-assistant-message.d.ts.map +1 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-assistant-message.js +2 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-assistant-message.js.map +1 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-function-message.d.ts +19 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-function-message.d.ts.map +1 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-function-message.js +7 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-function-message.js.map +1 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-content-part-image.d.ts +14 -7
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-content-part-image.d.ts.map +1 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-content-part-image.js +5 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-content-part-image.js.map +1 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-content-part-refusal.d.ts +14 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-content-part-refusal.d.ts.map +1 -0
- package/dist/azure-openai/client/inference/schema/{chat-completion-request-message-content-part-type.js → chat-completion-request-message-content-part-refusal.js} +2 -2
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-content-part-refusal.js.map +1 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-content-part-text.d.ts +4 -2
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-content-part-text.d.ts.map +1 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-content-part-text.js +1 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-function.d.ts +2 -3
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-function.d.ts.map +1 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-function.js +0 -5
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-function.js.map +1 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-tool.d.ts +2 -3
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-tool.d.ts.map +1 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-tool.js +0 -5
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-tool.js.map +1 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message.d.ts +6 -16
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message.d.ts.map +1 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-request-system-message-content-part.d.ts +6 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-system-message-content-part.d.ts.map +1 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-system-message-content-part.js +2 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-system-message-content-part.js.map +1 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-system-message.d.ts +19 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-system-message.d.ts.map +1 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-system-message.js +2 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-system-message.js.map +1 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-tool-message-content-part.d.ts +6 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-tool-message-content-part.d.ts.map +1 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-tool-message-content-part.js +2 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-tool-message-content-part.js.map +1 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-tool-message.d.ts +19 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-tool-message.d.ts.map +1 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-tool-message.js +2 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-tool-message.js.map +1 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-user-message-content-part.d.ts +7 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-user-message-content-part.d.ts.map +1 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-user-message-content-part.js +2 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-user-message-content-part.js.map +1 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-user-message.d.ts +20 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-user-message.d.ts.map +1 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-user-message.js +2 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-request-user-message.js.map +1 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-response-message-role.js +1 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-response-message.d.ts +6 -2
- package/dist/azure-openai/client/inference/schema/chat-completion-response-message.d.ts.map +1 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-stream-options.d.ts +12 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-stream-options.d.ts.map +1 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-stream-options.js +7 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-stream-options.js.map +1 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-stream-response-delta.d.ts +34 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-stream-response-delta.d.ts.map +1 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-stream-response-delta.js +2 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-stream-response-delta.js.map +1 -0
- package/dist/azure-openai/client/inference/schema/chat-completion-token-logprob.js +1 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-tool-choice-option.d.ts +1 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-tool.d.ts +6 -14
- package/dist/azure-openai/client/inference/schema/chat-completion-tool.d.ts.map +1 -1
- package/dist/azure-openai/client/inference/schema/chat-completions-request-common.d.ts +5 -1
- package/dist/azure-openai/client/inference/schema/chat-completions-request-common.d.ts.map +1 -1
- package/dist/azure-openai/client/inference/schema/chat-completions-request-common.js +1 -1
- package/dist/azure-openai/client/inference/schema/citation.d.ts +1 -1
- package/dist/azure-openai/client/inference/schema/citation.js +1 -1
- package/dist/azure-openai/client/inference/schema/completion-usage.d.ts +9 -0
- package/dist/azure-openai/client/inference/schema/completion-usage.d.ts.map +1 -1
- package/dist/azure-openai/client/inference/schema/completion-usage.js +1 -1
- package/dist/azure-openai/client/inference/schema/content-filter-result-base.js +1 -1
- package/dist/azure-openai/client/inference/schema/create-chat-completion-request.d.ts +111 -27
- package/dist/azure-openai/client/inference/schema/create-chat-completion-request.d.ts.map +1 -1
- package/dist/azure-openai/client/inference/schema/create-chat-completion-response.d.ts +58 -8
- package/dist/azure-openai/client/inference/schema/create-chat-completion-response.d.ts.map +1 -1
- package/dist/azure-openai/client/inference/schema/create-chat-completion-stream-response.d.ts +62 -0
- package/dist/azure-openai/client/inference/schema/create-chat-completion-stream-response.d.ts.map +1 -0
- package/dist/azure-openai/client/inference/schema/create-chat-completion-stream-response.js +2 -0
- package/dist/azure-openai/client/inference/schema/create-chat-completion-stream-response.js.map +1 -0
- package/dist/azure-openai/client/inference/schema/create-completion-request.d.ts +134 -0
- package/dist/azure-openai/client/inference/schema/create-completion-request.d.ts.map +1 -0
- package/dist/azure-openai/client/inference/schema/create-completion-request.js +7 -0
- package/dist/azure-openai/client/inference/schema/create-completion-request.js.map +1 -0
- package/dist/azure-openai/client/inference/schema/create-completion-response.d.ts +56 -0
- package/dist/azure-openai/client/inference/schema/create-completion-response.d.ts.map +1 -0
- package/dist/azure-openai/client/inference/schema/create-completion-response.js +2 -0
- package/dist/azure-openai/client/inference/schema/create-completion-response.js.map +1 -0
- package/dist/azure-openai/client/inference/schema/error-base.js +1 -1
- package/dist/azure-openai/client/inference/schema/function-object.d.ts +20 -0
- package/dist/azure-openai/client/inference/schema/function-object.d.ts.map +1 -0
- package/dist/azure-openai/client/inference/schema/function-object.js +2 -0
- package/dist/azure-openai/client/inference/schema/function-object.js.map +1 -0
- package/dist/azure-openai/client/inference/schema/function-parameters.d.ts +7 -0
- package/dist/azure-openai/client/inference/schema/function-parameters.d.ts.map +1 -0
- package/dist/azure-openai/client/inference/schema/function-parameters.js +7 -0
- package/dist/azure-openai/client/inference/schema/function-parameters.js.map +1 -0
- package/dist/azure-openai/client/inference/schema/generate-images-response.d.ts +1 -1
- package/dist/azure-openai/client/inference/schema/image-quality.js +1 -1
- package/dist/azure-openai/client/inference/schema/image-result.d.ts +1 -1
- package/dist/azure-openai/client/inference/schema/image-size.js +1 -1
- package/dist/azure-openai/client/inference/schema/image-style.js +1 -1
- package/dist/azure-openai/client/inference/schema/images-response-format.js +1 -1
- package/dist/azure-openai/client/inference/schema/index.d.ts +26 -13
- package/dist/azure-openai/client/inference/schema/index.d.ts.map +1 -1
- package/dist/azure-openai/client/inference/schema/index.js +27 -14
- package/dist/azure-openai/client/inference/schema/index.js.map +1 -1
- package/dist/azure-openai/client/inference/schema/inner-error-code.js +1 -1
- package/dist/azure-openai/client/inference/schema/on-your-data-api-key-authentication-options.js +1 -1
- package/dist/azure-openai/client/inference/schema/on-your-data-authentication-type.js +1 -1
- package/dist/azure-openai/client/inference/schema/on-your-data-connection-string-authentication-options.js +1 -1
- package/dist/azure-openai/client/inference/schema/on-your-data-deployment-name-vectorization-source.js +1 -1
- package/dist/azure-openai/client/inference/schema/on-your-data-system-assigned-managed-identity-authentication-options.js +1 -1
- package/dist/azure-openai/client/inference/schema/on-your-data-user-assigned-managed-identity-authentication-options.js +1 -1
- package/dist/azure-openai/client/inference/schema/on-your-data-vectorization-source-type.js +1 -1
- package/dist/azure-openai/client/inference/schema/parallel-tool-calls.d.ts +6 -0
- package/dist/azure-openai/client/inference/schema/parallel-tool-calls.d.ts.map +1 -0
- package/dist/azure-openai/client/inference/schema/parallel-tool-calls.js +7 -0
- package/dist/azure-openai/client/inference/schema/parallel-tool-calls.js.map +1 -0
- package/dist/azure-openai/client/inference/schema/response-format-json-object.d.ts +10 -0
- package/dist/azure-openai/client/inference/schema/response-format-json-object.d.ts.map +1 -0
- package/dist/azure-openai/client/inference/schema/response-format-json-object.js +7 -0
- package/dist/azure-openai/client/inference/schema/response-format-json-object.js.map +1 -0
- package/dist/azure-openai/client/inference/schema/response-format-json-schema-schema.d.ts +5 -0
- package/dist/azure-openai/client/inference/schema/response-format-json-schema-schema.d.ts.map +1 -0
- package/dist/azure-openai/client/inference/schema/response-format-json-schema-schema.js +7 -0
- package/dist/azure-openai/client/inference/schema/response-format-json-schema-schema.js.map +1 -0
- package/dist/azure-openai/client/inference/schema/response-format-json-schema.d.ts +26 -0
- package/dist/azure-openai/client/inference/schema/response-format-json-schema.d.ts.map +1 -0
- package/dist/azure-openai/client/inference/schema/response-format-json-schema.js +2 -0
- package/dist/azure-openai/client/inference/schema/response-format-json-schema.js.map +1 -0
- package/dist/azure-openai/client/inference/schema/response-format-text.d.ts +10 -0
- package/dist/azure-openai/client/inference/schema/response-format-text.d.ts.map +1 -0
- package/dist/azure-openai/client/inference/schema/response-format-text.js +7 -0
- package/dist/azure-openai/client/inference/schema/response-format-text.js.map +1 -0
- package/dist/azure-openai/client/inference/schema/tool-call-type.js +1 -1
- package/dist/azure-openai/model-types.d.ts +1 -1
- package/dist/azure-openai/model-types.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/package.json +5 -4
- package/dist/azure-openai/client/inference/schema/chat-completion-function-parameters.d.ts +0 -5
- package/dist/azure-openai/client/inference/schema/chat-completion-function-parameters.d.ts.map +0 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-function-parameters.js +0 -7
- package/dist/azure-openai/client/inference/schema/chat-completion-function-parameters.js.map +0 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-function.d.ts +0 -16
- package/dist/azure-openai/client/inference/schema/chat-completion-function.d.ts.map +0 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-function.js +0 -2
- package/dist/azure-openai/client/inference/schema/chat-completion-function.js.map +0 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-assistant.d.ts +0 -19
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-assistant.d.ts.map +0 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-assistant.js +0 -2
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-assistant.js.map +0 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-content-part-type.d.ts +0 -5
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-content-part-type.d.ts.map +0 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-content-part-type.js.map +0 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-content-part.d.ts +0 -11
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-content-part.d.ts.map +0 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-content-part.js +0 -2
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-content-part.js.map +0 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-role.d.ts +0 -5
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-role.d.ts.map +0 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-role.js +0 -7
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-role.js.map +0 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-system.d.ts +0 -12
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-system.d.ts.map +0 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-system.js +0 -7
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-system.js.map +0 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-user.d.ts +0 -10
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-user.d.ts.map +0 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-user.js +0 -2
- package/dist/azure-openai/client/inference/schema/chat-completion-request-message-user.js.map +0 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-response-format.d.ts +0 -7
- package/dist/azure-openai/client/inference/schema/chat-completion-response-format.d.ts.map +0 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-response-format.js +0 -7
- package/dist/azure-openai/client/inference/schema/chat-completion-response-format.js.map +0 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-response-object.d.ts +0 -5
- package/dist/azure-openai/client/inference/schema/chat-completion-response-object.d.ts.map +0 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-response-object.js +0 -7
- package/dist/azure-openai/client/inference/schema/chat-completion-response-object.js.map +0 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-tool-type.d.ts +0 -5
- package/dist/azure-openai/client/inference/schema/chat-completion-tool-type.d.ts.map +0 -1
- package/dist/azure-openai/client/inference/schema/chat-completion-tool-type.js +0 -7
- package/dist/azure-openai/client/inference/schema/chat-completion-tool-type.js.map +0 -1
- package/dist/azure-openai/client/inference/schema/chat-completions-response-common.d.ts +0 -27
- package/dist/azure-openai/client/inference/schema/chat-completions-response-common.d.ts.map +0 -1
- package/dist/azure-openai/client/inference/schema/chat-completions-response-common.js +0 -2
- package/dist/azure-openai/client/inference/schema/chat-completions-response-common.js.map +0 -1
- package/dist/azure-openai/client/inference/schema/image-detail-level.d.ts +0 -6
- package/dist/azure-openai/client/inference/schema/image-detail-level.d.ts.map +0 -1
- package/dist/azure-openai/client/inference/schema/image-detail-level.js +0 -7
- package/dist/azure-openai/client/inference/schema/image-detail-level.js.map +0 -1
package/README.md
CHANGED
|
@@ -275,6 +275,24 @@ const client = await new AzureOpenAiChatClient('gpt-35-turbo', {
|
|
|
275
275
|
By default, the fetched destination is cached.
|
|
276
276
|
To disable caching, set the `useCache` parameter to `false` together with the `destinationName` parameter.
|
|
277
277
|
|
|
278
|
+
### Overwriting API Version
|
|
279
|
+
|
|
280
|
+
We are continuously updating the OpenAI API version to match the latest version.
|
|
281
|
+
In case this behavior causes issues in your application, you can overwrite the API version.
|
|
282
|
+
|
|
283
|
+
To do this, set the `api-version` parameter in the `CustomRequestConfig` object, like the following:
|
|
284
|
+
|
|
285
|
+
```ts
|
|
286
|
+
const client = await new AzureOpenAiChatClient('gpt-35-turbo', {
|
|
287
|
+
destinationName: 'my-destination'
|
|
288
|
+
});
|
|
289
|
+
|
|
290
|
+
client.run(
|
|
291
|
+
{ messages: [{ role: 'user', content: 'YOUR_PROMPT' }] },
|
|
292
|
+
{ params: { 'api-version': 'YOUR_OLD_VERSION' } }
|
|
293
|
+
);
|
|
294
|
+
```
|
|
295
|
+
|
|
278
296
|
## Local Testing
|
|
279
297
|
|
|
280
298
|
For local testing instructions, refer to this [section](https://github.com/SAP/ai-sdk-js/blob/main/README.md#local-testing).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HttpResponse } from '@sap-cloud-sdk/http-client';
|
|
2
|
-
import type { AzureOpenAiCreateChatCompletionResponse } from './client/inference/schema/index.js';
|
|
2
|
+
import type { AzureOpenAiCompletionUsage, AzureOpenAiCreateChatCompletionResponse } from './client/inference/schema/index.js';
|
|
3
3
|
/**
|
|
4
4
|
* Azure OpenAI chat completion response.
|
|
5
5
|
*/
|
|
@@ -14,13 +14,13 @@ export declare class AzureOpenAiChatCompletionResponse {
|
|
|
14
14
|
* Usage of tokens in the response.
|
|
15
15
|
* @returns Token usage.
|
|
16
16
|
*/
|
|
17
|
-
getTokenUsage():
|
|
17
|
+
getTokenUsage(): AzureOpenAiCompletionUsage | undefined;
|
|
18
18
|
/**
|
|
19
19
|
* Reason for stopping the completion.
|
|
20
20
|
* @param choiceIndex - The index of the choice to parse.
|
|
21
21
|
* @returns The finish reason.
|
|
22
22
|
*/
|
|
23
|
-
getFinishReason(choiceIndex?: number):
|
|
23
|
+
getFinishReason(choiceIndex?: number): AzureOpenAiCreateChatCompletionResponse['choices'][0]['finish_reason'] | undefined;
|
|
24
24
|
/**
|
|
25
25
|
* Parses the Azure OpenAI response and returns the content.
|
|
26
26
|
* @param choiceIndex - The index of the choice to parse.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"azure-openai-chat-completion-response.d.ts","sourceRoot":"","sources":["../../src/azure-openai/azure-openai-chat-completion-response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"azure-openai-chat-completion-response.d.ts","sourceRoot":"","sources":["../../src/azure-openai/azure-openai-chat-completion-response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EACV,0BAA0B,EAC1B,uCAAuC,EACxC,MAAM,oCAAoC,CAAC;AAE5C;;GAEG;AACH,qBAAa,iCAAiC;aAKhB,WAAW,EAAE,YAAY;IAJrD;;OAEG;IACH,SAAgB,IAAI,EAAE,uCAAuC,CAAC;gBAClC,WAAW,EAAE,YAAY;IAIrD;;;OAGG;IACH,aAAa,IAAI,0BAA0B,GAAG,SAAS;IAIvD;;;;OAIG;IACH,eAAe,CACb,WAAW,SAAI,GAEb,uCAAuC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,GACtE,SAAS;IAIb;;;;OAIG;IACH,UAAU,CAAC,WAAW,SAAI,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI;CAIvD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"azure-openai-chat-completion-response.js","sourceRoot":"","sources":["../../src/azure-openai/azure-openai-chat-completion-response.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"azure-openai-chat-completion-response.js","sourceRoot":"","sources":["../../src/azure-openai/azure-openai-chat-completion-response.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,OAAO,iCAAiC;IAKhB;IAJ5B;;OAEG;IACa,IAAI,CAA0C;IAC9D,YAA4B,WAAyB;QAAzB,gBAAW,GAAX,WAAW,CAAc;QACnD,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC;IAC/B,CAAC;IAED;;;OAGG;IACH,aAAa;QACX,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;IACzB,CAAC;IAED;;;;OAIG;IACH,eAAe,CACb,WAAW,GAAG,CAAC;QAIf,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,WAAW,CAAC,EAAE,aAAa,CAAC;IAC7E,CAAC;IAED;;;;OAIG;IACH,UAAU,CAAC,WAAW,GAAG,CAAC;QACxB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,WAAW,CAAC,EAAE,OAAO;YAClE,EAAE,OAAO,CAAC;IACd,CAAC;CACF"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { AzureOpenAiCompletionUsage } from './client/inference/schema/index.js';
|
|
1
|
+
import type { AzureOpenAiCompletionUsage, AzureOpenAiCreateChatCompletionStreamResponse } from './client/inference/schema/index.js';
|
|
2
2
|
/**
|
|
3
3
|
* Azure OpenAI chat completion stream chunk response.
|
|
4
4
|
*/
|
|
5
5
|
export declare class AzureOpenAiChatCompletionStreamChunkResponse {
|
|
6
|
-
readonly data:
|
|
7
|
-
constructor(data:
|
|
6
|
+
readonly data: AzureOpenAiCreateChatCompletionStreamResponse;
|
|
7
|
+
constructor(data: AzureOpenAiCreateChatCompletionStreamResponse);
|
|
8
8
|
/**
|
|
9
9
|
* Usage of tokens in the chunk response.
|
|
10
10
|
* @returns Token usage.
|
|
@@ -15,7 +15,7 @@ export declare class AzureOpenAiChatCompletionStreamChunkResponse {
|
|
|
15
15
|
* @param choiceIndex - The index of the choice to parse.
|
|
16
16
|
* @returns The finish reason.
|
|
17
17
|
*/
|
|
18
|
-
getFinishReason(choiceIndex?: number):
|
|
18
|
+
getFinishReason(choiceIndex?: number): AzureOpenAiCreateChatCompletionStreamResponse['choices'][0]['finish_reason'] | undefined;
|
|
19
19
|
/**
|
|
20
20
|
* Parses the chunk response and returns the delta content.
|
|
21
21
|
* @param choiceIndex - The index of the choice to parse.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"azure-openai-chat-completion-stream-chunk-response.d.ts","sourceRoot":"","sources":["../../src/azure-openai/azure-openai-chat-completion-stream-chunk-response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"azure-openai-chat-completion-stream-chunk-response.d.ts","sourceRoot":"","sources":["../../src/azure-openai/azure-openai-chat-completion-stream-chunk-response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,0BAA0B,EAC1B,6CAA6C,EAC9C,MAAM,oCAAoC,CAAC;AAE5C;;GAEG;AACH,qBAAa,4CAA4C;aAErC,IAAI,EAAE,6CAA6C;gBAAnD,IAAI,EAAE,6CAA6C;IAKrE;;;OAGG;IACH,aAAa,IAAI,0BAA0B,GAAG,IAAI;IAIlD;;;;OAIG;IACH,eAAe,CACb,WAAW,SAAI,GAEb,6CAA6C,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,GAC5E,SAAS;IAIb;;;;OAIG;IACH,eAAe,CAAC,WAAW,SAAI,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI;CAG5D"}
|
|
@@ -5,7 +5,6 @@ export class AzureOpenAiChatCompletionStreamChunkResponse {
|
|
|
5
5
|
data;
|
|
6
6
|
constructor(data) {
|
|
7
7
|
this.data = data;
|
|
8
|
-
// TODO: Change `any` to `CreateChatCompletionStreamResponse` once the preview spec becomes stable.
|
|
9
8
|
this.data = data;
|
|
10
9
|
}
|
|
11
10
|
/**
|
|
@@ -21,8 +20,7 @@ export class AzureOpenAiChatCompletionStreamChunkResponse {
|
|
|
21
20
|
* @returns The finish reason.
|
|
22
21
|
*/
|
|
23
22
|
getFinishReason(choiceIndex = 0) {
|
|
24
|
-
return this.data.choices.find(
|
|
25
|
-
?.finish_reason;
|
|
23
|
+
return this.data.choices.find(c => c.index === choiceIndex)?.finish_reason;
|
|
26
24
|
}
|
|
27
25
|
/**
|
|
28
26
|
* Parses the chunk response and returns the delta content.
|
|
@@ -30,8 +28,7 @@ export class AzureOpenAiChatCompletionStreamChunkResponse {
|
|
|
30
28
|
* @returns The message delta content.
|
|
31
29
|
*/
|
|
32
30
|
getDeltaContent(choiceIndex = 0) {
|
|
33
|
-
return this.data.choices.find(
|
|
34
|
-
.content;
|
|
31
|
+
return this.data.choices.find(c => c.index === choiceIndex)?.delta.content;
|
|
35
32
|
}
|
|
36
33
|
}
|
|
37
34
|
//# sourceMappingURL=azure-openai-chat-completion-stream-chunk-response.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"azure-openai-chat-completion-stream-chunk-response.js","sourceRoot":"","sources":["../../src/azure-openai/azure-openai-chat-completion-stream-chunk-response.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"azure-openai-chat-completion-stream-chunk-response.js","sourceRoot":"","sources":["../../src/azure-openai/azure-openai-chat-completion-stream-chunk-response.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,OAAO,4CAA4C;IAErC;IADlB,YACkB,IAAmD;QAAnD,SAAI,GAAJ,IAAI,CAA+C;QAEnE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAED;;;OAGG;IACH,aAAa;QACX,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;IACzB,CAAC;IAED;;;;OAIG;IACH,eAAe,CACb,WAAW,GAAG,CAAC;QAIf,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,WAAW,CAAC,EAAE,aAAa,CAAC;IAC7E,CAAC;IAED;;;;OAIG;IACH,eAAe,CAAC,WAAW,GAAG,CAAC;QAC7B,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,WAAW,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC;IAC7E,CAAC;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AzureOpenAiCompletionUsage } from './client/inference/schema/index.js';
|
|
1
|
+
import type { AzureOpenAiCompletionUsage, AzureOpenAiCreateChatCompletionStreamResponse } from './client/inference/schema/index.js';
|
|
2
2
|
import type { AzureOpenAiChatCompletionStream } from './azure-openai-chat-completion-stream.js';
|
|
3
3
|
/**
|
|
4
4
|
* Azure OpenAI chat completion stream response.
|
|
@@ -15,15 +15,15 @@ export declare class AzureOpenAiChatCompletionStreamResponse<T> {
|
|
|
15
15
|
* @internal
|
|
16
16
|
*/
|
|
17
17
|
_setTokenUsage(usage: AzureOpenAiCompletionUsage): void;
|
|
18
|
-
getFinishReason(choiceIndex?: number):
|
|
18
|
+
getFinishReason(choiceIndex?: number): AzureOpenAiCreateChatCompletionStreamResponse['choices'][0]['finish_reason'] | undefined;
|
|
19
19
|
/**
|
|
20
20
|
* @internal
|
|
21
21
|
*/
|
|
22
|
-
_getFinishReasons(): Map<number,
|
|
22
|
+
_getFinishReasons(): Map<number, AzureOpenAiCreateChatCompletionStreamResponse['choices'][0]['finish_reason']>;
|
|
23
23
|
/**
|
|
24
24
|
* @internal
|
|
25
25
|
*/
|
|
26
|
-
_setFinishReasons(finishReasons: Map<number,
|
|
26
|
+
_setFinishReasons(finishReasons: Map<number, AzureOpenAiCreateChatCompletionStreamResponse['choices'][0]['finish_reason']>): void;
|
|
27
27
|
get stream(): AzureOpenAiChatCompletionStream<T>;
|
|
28
28
|
/**
|
|
29
29
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"azure-openai-chat-completion-stream-response.d.ts","sourceRoot":"","sources":["../../src/azure-openai/azure-openai-chat-completion-stream-response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"azure-openai-chat-completion-stream-response.d.ts","sourceRoot":"","sources":["../../src/azure-openai/azure-openai-chat-completion-stream-response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,0BAA0B,EAC1B,6CAA6C,EAC9C,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,0CAA0C,CAAC;AAEhG;;GAEG;AACH,qBAAa,uCAAuC,CAAC,CAAC;IACpD,OAAO,CAAC,MAAM,CAAyC;IACvD;;OAEG;IACH,OAAO,CAAC,cAAc,CAGR;IACd,OAAO,CAAC,OAAO,CAAiD;IAEzD,aAAa,IAAI,0BAA0B,GAAG,SAAS;IAI9D;;OAEG;IACH,cAAc,CAAC,KAAK,EAAE,0BAA0B,GAAG,IAAI;IAIhD,eAAe,CACpB,WAAW,SAAI,GAEb,6CAA6C,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,GAC5E,SAAS;IAIb;;OAEG;IACH,iBAAiB,IAAI,GAAG,CACtB,MAAM,EACN,6CAA6C,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAC7E;IAID;;OAEG;IACH,iBAAiB,CACf,aAAa,EAAE,GAAG,CAChB,MAAM,EACN,6CAA6C,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAC7E,GACA,IAAI;IAIP,IAAI,MAAM,IAAI,+BAA+B,CAAC,CAAC,CAAC,CAK/C;IAED;;OAEG;IACH,IAAI,MAAM,CAAC,MAAM,EAAE,+BAA+B,CAAC,CAAC,CAAC,EAEpD;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"azure-openai-chat-completion-stream-response.js","sourceRoot":"","sources":["../../src/azure-openai/azure-openai-chat-completion-stream-response.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"azure-openai-chat-completion-stream-response.js","sourceRoot":"","sources":["../../src/azure-openai/azure-openai-chat-completion-stream-response.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,OAAO,uCAAuC;IAC1C,MAAM,CAAyC;IACvD;;OAEG;IACK,cAAc,GAGlB,IAAI,GAAG,EAAE,CAAC;IACN,OAAO,CAAiD;IAEzD,aAAa;QAClB,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED;;OAEG;IACH,cAAc,CAAC,KAAiC;QAC9C,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACtB,CAAC;IAEM,eAAe,CACpB,WAAW,GAAG,CAAC;QAIf,OAAO,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAC9C,CAAC;IAED;;OAEG;IACH,iBAAiB;QAIf,OAAO,IAAI,CAAC,cAAc,CAAC;IAC7B,CAAC;IAED;;OAEG;IACH,iBAAiB,CACf,aAGC;QAED,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;IACtC,CAAC;IAED,IAAI,MAAM;QACR,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;YAClB,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;QACnD,CAAC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAED;;OAEG;IACH,IAAI,MAAM,CAAC,MAA0C;QACnD,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;CACF"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SseStream } from '@sap-ai-sdk/core';
|
|
2
2
|
import { AzureOpenAiChatCompletionStreamChunkResponse } from './azure-openai-chat-completion-stream-chunk-response.js';
|
|
3
|
+
import type { AzureOpenAiCreateChatCompletionStreamResponse } from './client/inference/schema/index.js';
|
|
3
4
|
import type { HttpResponse } from '@sap-cloud-sdk/http-client';
|
|
4
5
|
import type { AzureOpenAiChatCompletionStreamResponse } from './azure-openai-chat-completion-stream-response.js';
|
|
5
6
|
/**
|
|
@@ -13,21 +14,21 @@ export declare class AzureOpenAiChatCompletionStream<Item> extends SseStream<Ite
|
|
|
13
14
|
* @returns Chat completion stream.
|
|
14
15
|
* @internal
|
|
15
16
|
*/
|
|
16
|
-
static _create(response: HttpResponse, controller: AbortController): AzureOpenAiChatCompletionStream<
|
|
17
|
+
static _create(response: HttpResponse, controller: AbortController): AzureOpenAiChatCompletionStream<AzureOpenAiCreateChatCompletionStreamResponse>;
|
|
17
18
|
/**
|
|
18
19
|
* Wrap raw chunk data with chunk response class to provide helper functions.
|
|
19
20
|
* @param stream - Chat completion stream.
|
|
20
21
|
* @internal
|
|
21
22
|
*/
|
|
22
|
-
static _processChunk(stream: AzureOpenAiChatCompletionStream<
|
|
23
|
+
static _processChunk(stream: AzureOpenAiChatCompletionStream<AzureOpenAiCreateChatCompletionStreamResponse>): AsyncGenerator<AzureOpenAiChatCompletionStreamChunkResponse>;
|
|
23
24
|
/**
|
|
24
25
|
* @internal
|
|
25
26
|
*/
|
|
26
|
-
static _processFinishReason(stream: AzureOpenAiChatCompletionStream<AzureOpenAiChatCompletionStreamChunkResponse>, response?: AzureOpenAiChatCompletionStreamResponse<
|
|
27
|
+
static _processFinishReason(stream: AzureOpenAiChatCompletionStream<AzureOpenAiChatCompletionStreamChunkResponse>, response?: AzureOpenAiChatCompletionStreamResponse<AzureOpenAiChatCompletionStreamChunkResponse>): AsyncGenerator<AzureOpenAiChatCompletionStreamChunkResponse>;
|
|
27
28
|
/**
|
|
28
29
|
* @internal
|
|
29
30
|
*/
|
|
30
|
-
static _processTokenUsage(stream: AzureOpenAiChatCompletionStream<AzureOpenAiChatCompletionStreamChunkResponse>, response?: AzureOpenAiChatCompletionStreamResponse<
|
|
31
|
+
static _processTokenUsage(stream: AzureOpenAiChatCompletionStream<AzureOpenAiChatCompletionStreamChunkResponse>, response?: AzureOpenAiChatCompletionStreamResponse<AzureOpenAiChatCompletionStreamChunkResponse>): AsyncGenerator<AzureOpenAiChatCompletionStreamChunkResponse>;
|
|
31
32
|
/**
|
|
32
33
|
* Transform a stream of chunks into a stream of content strings.
|
|
33
34
|
* @param stream - Chat completion stream.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"azure-openai-chat-completion-stream.d.ts","sourceRoot":"","sources":["../../src/azure-openai/azure-openai-chat-completion-stream.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,4CAA4C,EAAE,MAAM,yDAAyD,CAAC;AACvH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,mDAAmD,CAAC;AAOjH;;GAEG;AACH,qBAAa,+BAA+B,CAAC,IAAI,CAAE,SAAQ,SAAS,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"azure-openai-chat-completion-stream.d.ts","sourceRoot":"","sources":["../../src/azure-openai/azure-openai-chat-completion-stream.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,4CAA4C,EAAE,MAAM,yDAAyD,CAAC;AACvH,OAAO,KAAK,EAAE,6CAA6C,EAAE,MAAM,oCAAoC,CAAC;AACxG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,mDAAmD,CAAC;AAOjH;;GAEG;AACH,qBAAa,+BAA+B,CAAC,IAAI,CAAE,SAAQ,SAAS,CAAC,IAAI,CAAC;IA2H/D,QAAQ,EAAE,MAAM,aAAa,CAAC,IAAI,CAAC;IA1H5C;;;;;OAKG;WACW,OAAO,CACnB,QAAQ,EAAE,YAAY,EACtB,UAAU,EAAE,eAAe,GAC1B,+BAA+B,CAAC,6CAA6C,CAAC;IASjF;;;;OAIG;WACW,aAAa,CACzB,MAAM,EAAE,+BAA+B,CAAC,6CAA6C,CAAC,GACrF,cAAc,CAAC,4CAA4C,CAAC;IAM/D;;OAEG;WACW,oBAAoB,CAChC,MAAM,EAAE,+BAA+B,CAAC,4CAA4C,CAAC,EACrF,QAAQ,CAAC,EAAE,uCAAuC,CAAC,4CAA4C,CAAC,GAC/F,cAAc,CAAC,4CAA4C,CAAC;IA8C/D;;OAEG;WACW,kBAAkB,CAC9B,MAAM,EAAE,+BAA+B,CAAC,4CAA4C,CAAC,EACrF,QAAQ,CAAC,EAAE,uCAAuC,CAAC,4CAA4C,CAAC,GAC/F,cAAc,CAAC,4CAA4C,CAAC;IAa/D;;;;;OAKG;WACW,qBAAqB,CACjC,MAAM,EAAE,+BAA+B,CAAC,4CAA4C,CAAC,EACrF,WAAW,SAAI,GACd,cAAc,CAAC,MAAM,CAAC;gBAWhB,QAAQ,EAAE,MAAM,aAAa,CAAC,IAAI,CAAC,EAC1C,UAAU,EAAE,eAAe;IAK7B;;;;;;OAMG;IACH,KAAK,CAAC,OAAO,EACX,SAAS,EAAE,CACT,MAAM,EAAE,+BAA+B,CAAC,IAAI,CAAC,EAC7C,QAAQ,CAAC,EAAE,uCAAuC,CAAC,GAAG,CAAC,KACpD,aAAa,CAAC,OAAO,CAAC,EAC3B,QAAQ,CAAC,EAAE,uCAAuC,CAAC,GAAG,CAAC,GACtD,+BAA+B,CAAC,OAAO,CAAC;IAapC,eAAe,CACpB,IAAI,EAAE,+BAA+B,CAAC,4CAA4C,CAAC,EACnF,WAAW,CAAC,EAAE,MAAM,GACnB,+BAA+B,CAAC,MAAM,CAAC;CAU3C"}
|
|
@@ -17,8 +17,7 @@ export class AzureOpenAiChatCompletionStream extends SseStream {
|
|
|
17
17
|
* @internal
|
|
18
18
|
*/
|
|
19
19
|
static _create(response, controller) {
|
|
20
|
-
|
|
21
|
-
const stream = SseStream.transformToSseStream(response, controller); // TODO: Change `any` to `CreateChatCompletionStreamResponse` once the preview spec becomes stable.
|
|
20
|
+
const stream = SseStream.transformToSseStream(response, controller);
|
|
22
21
|
return new AzureOpenAiChatCompletionStream(stream.iterator, controller);
|
|
23
22
|
}
|
|
24
23
|
/**
|
|
@@ -26,8 +25,7 @@ export class AzureOpenAiChatCompletionStream extends SseStream {
|
|
|
26
25
|
* @param stream - Chat completion stream.
|
|
27
26
|
* @internal
|
|
28
27
|
*/
|
|
29
|
-
static async *_processChunk(stream
|
|
30
|
-
) {
|
|
28
|
+
static async *_processChunk(stream) {
|
|
31
29
|
for await (const chunk of stream) {
|
|
32
30
|
yield new AzureOpenAiChatCompletionStreamChunkResponse(chunk);
|
|
33
31
|
}
|
|
@@ -41,7 +39,7 @@ export class AzureOpenAiChatCompletionStream extends SseStream {
|
|
|
41
39
|
const choiceIndex = choice.index;
|
|
42
40
|
if (choiceIndex >= 0) {
|
|
43
41
|
const finishReason = chunk.getFinishReason(choiceIndex);
|
|
44
|
-
if (finishReason) {
|
|
42
|
+
if (finishReason !== undefined) {
|
|
45
43
|
if (response) {
|
|
46
44
|
response._getFinishReasons().set(choiceIndex, finishReason);
|
|
47
45
|
}
|
|
@@ -55,6 +53,12 @@ export class AzureOpenAiChatCompletionStream extends SseStream {
|
|
|
55
53
|
case 'stop':
|
|
56
54
|
logger.debug(`Choice ${choiceIndex}: Stream finished.`);
|
|
57
55
|
break;
|
|
56
|
+
case 'tool_calls':
|
|
57
|
+
logger.error(`Choice ${choiceIndex}: Stream finished with tool calls exceeded.`);
|
|
58
|
+
break;
|
|
59
|
+
case 'function_call':
|
|
60
|
+
logger.error(`Choice ${choiceIndex}: Stream finished with function call exceeded.`);
|
|
61
|
+
break;
|
|
58
62
|
default:
|
|
59
63
|
logger.error(`Choice ${choiceIndex}: Stream finished with unknown reason '${finishReason}'.`);
|
|
60
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"azure-openai-chat-completion-stream.js","sourceRoot":"","sources":["../../src/azure-openai/azure-openai-chat-completion-stream.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,4CAA4C,EAAE,MAAM,yDAAyD,CAAC;
|
|
1
|
+
{"version":3,"file":"azure-openai-chat-completion-stream.js","sourceRoot":"","sources":["../../src/azure-openai/azure-openai-chat-completion-stream.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AzureOpenAiAudioResponse } from './audio-response.js';
|
|
2
2
|
import type { AzureOpenAiAudioSegment } from './audio-segment.js';
|
|
3
3
|
/**
|
|
4
|
-
* Translation or transcription response when response_format was verbose_json
|
|
4
|
+
* Translation or transcription response when response_format was verbose_json
|
|
5
5
|
*/
|
|
6
6
|
export type AzureOpenAiAudioVerboseResponse = AzureOpenAiAudioResponse & {
|
|
7
7
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { AzureOpenAiAzureSearchChatExtensionConfiguration } from './azure-search-chat-extension-configuration.js';
|
|
2
2
|
import type { AzureOpenAiAzureCosmosDBChatExtensionConfiguration } from './azure-cosmos-db-chat-extension-configuration.js';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* A representation of configuration data for a single Azure OpenAI chat extension. This will be used by a chat
|
|
5
|
+
* completions request that should use Azure OpenAI chat extensions to augment the response behavior.
|
|
6
|
+
* The use of this configuration is compatible only with Azure OpenAI.
|
|
7
7
|
*/
|
|
8
8
|
export type AzureOpenAiAzureChatExtensionConfiguration = ({
|
|
9
9
|
type: 'azure_search';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* A representation of configuration data for a single Azure OpenAI chat extension. This will be used by a chat
|
|
3
|
+
* completions request that should use Azure OpenAI chat extensions to augment the response behavior.
|
|
4
|
+
* The use of this configuration is compatible only with Azure OpenAI.
|
|
5
5
|
*/
|
|
6
6
|
export type AzureOpenAiAzureChatExtensionType = 'azure_search' | 'azure_cosmos_db';
|
|
7
7
|
//# sourceMappingURL=azure-chat-extension-type.d.ts.map
|
package/dist/azure-openai/client/inference/schema/azure-chat-extensions-message-context.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { AzureOpenAiCitation } from './citation.js';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
3
|
+
* A representation of the additional context information available when Azure OpenAI chat extensions are involved
|
|
4
|
+
* in the generation of a corresponding chat completions response. This context information is only populated when
|
|
5
|
+
* using an Azure OpenAI request configured to use a matching extension.
|
|
6
6
|
*/
|
|
7
7
|
export type AzureOpenAiAzureChatExtensionsMessageContext = {
|
|
8
8
|
/**
|
|
@@ -7,5 +7,9 @@ export type AzureOpenAiChatCompletionChoiceLogProbs = ({
|
|
|
7
7
|
* A list of message content tokens with log probability information.
|
|
8
8
|
*/
|
|
9
9
|
content: AzureOpenAiChatCompletionTokenLogprob[] | null;
|
|
10
|
+
/**
|
|
11
|
+
* A list of message refusal tokens with log probability information.
|
|
12
|
+
*/
|
|
13
|
+
refusal?: AzureOpenAiChatCompletionTokenLogprob[] | null;
|
|
10
14
|
} & Record<string, any>) | null;
|
|
11
15
|
//# sourceMappingURL=chat-completion-choice-log-probs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-completion-choice-log-probs.d.ts","sourceRoot":"","sources":["../../../../../src/azure-openai/client/inference/schema/chat-completion-choice-log-probs.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,oCAAoC,CAAC;AAChG;;GAEG;AACH,MAAM,MAAM,uCAAuC,GAC/C,CAAC;IACC;;OAEG;IACH,OAAO,EAAE,qCAAqC,EAAE,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"chat-completion-choice-log-probs.d.ts","sourceRoot":"","sources":["../../../../../src/azure-openai/client/inference/schema/chat-completion-choice-log-probs.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,oCAAoC,CAAC;AAChG;;GAEG;AACH,MAAM,MAAM,uCAAuC,GAC/C,CAAC;IACC;;OAEG;IACH,OAAO,EAAE,qCAAqC,EAAE,GAAG,IAAI,CAAC;IACxD;;OAEG;IACH,OAAO,CAAC,EAAE,qCAAqC,EAAE,GAAG,IAAI,CAAC;CAC1D,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,GACxB,IAAI,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Specifying a particular function via `{"name": "my_function"}` forces the model to call that function.
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
export type AzureOpenAiChatCompletionFunctionCallOption = {
|
|
6
|
+
/**
|
|
7
|
+
* The name of the function to call.
|
|
8
|
+
*/
|
|
9
|
+
name: string;
|
|
10
|
+
} & Record<string, any>;
|
|
11
|
+
//# sourceMappingURL=chat-completion-function-call-option.d.ts.map
|
package/dist/azure-openai/client/inference/schema/chat-completion-function-call-option.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-completion-function-call-option.d.ts","sourceRoot":"","sources":["../../../../../src/azure-openai/client/inference/schema/chat-completion-function-call-option.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,MAAM,MAAM,2CAA2C,GAAG;IACxD;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-completion-function-call-option.js","sourceRoot":"","sources":["../../../../../src/azure-openai/client/inference/schema/chat-completion-function-call-option.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { AzureOpenAiFunctionParameters } from './function-parameters.js';
|
|
2
|
+
/**
|
|
3
|
+
* Representation of the 'AzureOpenAiChatCompletionFunctions' schema.
|
|
4
|
+
* @deprecated
|
|
5
|
+
*/
|
|
6
|
+
export type AzureOpenAiChatCompletionFunctions = {
|
|
7
|
+
/**
|
|
8
|
+
* A description of what the function does, used by the model to choose when and how to call the function.
|
|
9
|
+
*/
|
|
10
|
+
description?: string;
|
|
11
|
+
/**
|
|
12
|
+
* The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
13
|
+
*/
|
|
14
|
+
name: string;
|
|
15
|
+
parameters?: AzureOpenAiFunctionParameters;
|
|
16
|
+
} & Record<string, any>;
|
|
17
|
+
//# sourceMappingURL=chat-completion-functions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-completion-functions.d.ts","sourceRoot":"","sources":["../../../../../src/azure-openai/client/inference/schema/chat-completion-functions.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AAC9E;;;GAGG;AACH,MAAM,MAAM,kCAAkC,GAAG;IAC/C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,6BAA6B,CAAC;CAC5C,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-completion-functions.js","sourceRoot":"","sources":["../../../../../src/azure-openai/client/inference/schema/chat-completion-functions.ts"],"names":[],"mappings":""}
|
package/dist/azure-openai/client/inference/schema/chat-completion-message-tool-call-chunk.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Representation of the 'AzureOpenAiChatCompletionMessageToolCallChunk' schema.
|
|
3
|
+
*/
|
|
4
|
+
export type AzureOpenAiChatCompletionMessageToolCallChunk = {
|
|
5
|
+
index: number;
|
|
6
|
+
/**
|
|
7
|
+
* The ID of the tool call.
|
|
8
|
+
*/
|
|
9
|
+
id?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The type of the tool. Currently, only `function` is supported.
|
|
12
|
+
*/
|
|
13
|
+
type?: 'function';
|
|
14
|
+
function?: {
|
|
15
|
+
/**
|
|
16
|
+
* The name of the function to call.
|
|
17
|
+
*/
|
|
18
|
+
name?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
|
|
21
|
+
*/
|
|
22
|
+
arguments?: string;
|
|
23
|
+
} & Record<string, any>;
|
|
24
|
+
} & Record<string, any>;
|
|
25
|
+
//# sourceMappingURL=chat-completion-message-tool-call-chunk.d.ts.map
|
package/dist/azure-openai/client/inference/schema/chat-completion-message-tool-call-chunk.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-completion-message-tool-call-chunk.d.ts","sourceRoot":"","sources":["../../../../../src/azure-openai/client/inference/schema/chat-completion-message-tool-call-chunk.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,MAAM,6CAA6C,GAAG;IAC1D,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,QAAQ,CAAC,EAAE;QACT;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QACd;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
|
package/dist/azure-openai/client/inference/schema/chat-completion-message-tool-call-chunk.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-completion-message-tool-call-chunk.js","sourceRoot":"","sources":["../../../../../src/azure-openai/client/inference/schema/chat-completion-message-tool-call-chunk.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { AzureOpenAiChatCompletionMessageToolCall } from './chat-completion-message-tool-call.js';
|
|
2
|
+
/**
|
|
3
|
+
* The tool calls generated by the model, such as function calls.
|
|
4
|
+
*/
|
|
5
|
+
export type AzureOpenAiChatCompletionMessageToolCalls = AzureOpenAiChatCompletionMessageToolCall[];
|
|
6
|
+
//# sourceMappingURL=chat-completion-message-tool-calls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-completion-message-tool-calls.d.ts","sourceRoot":"","sources":["../../../../../src/azure-openai/client/inference/schema/chat-completion-message-tool-calls.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,wCAAwC,CAAC;AACvG;;GAEG;AACH,MAAM,MAAM,yCAAyC,GACnD,wCAAwC,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-completion-message-tool-calls.js","sourceRoot":"","sources":["../../../../../src/azure-openai/client/inference/schema/chat-completion-message-tool-calls.ts"],"names":[],"mappings":""}
|
package/dist/azure-openai/client/inference/schema/chat-completion-named-tool-choice.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-completion-named-tool-choice.d.ts","sourceRoot":"","sources":["../../../../../src/azure-openai/client/inference/schema/chat-completion-named-tool-choice.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,MAAM,wCAAwC,GAAG;IACrD;;OAEG;IACH,IAAI,
|
|
1
|
+
{"version":3,"file":"chat-completion-named-tool-choice.d.ts","sourceRoot":"","sources":["../../../../../src/azure-openai/client/inference/schema/chat-completion-named-tool-choice.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,MAAM,wCAAwC,GAAG;IACrD;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE;QACR;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;KACd,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AzureOpenAiChatCompletionRequestMessageContentPartText } from './chat-completion-request-message-content-part-text.js';
|
|
2
|
+
import type { AzureOpenAiChatCompletionRequestMessageContentPartRefusal } from './chat-completion-request-message-content-part-refusal.js';
|
|
3
|
+
/**
|
|
4
|
+
* Representation of the 'AzureOpenAiChatCompletionRequestAssistantMessageContentPart' schema.
|
|
5
|
+
*/
|
|
6
|
+
export type AzureOpenAiChatCompletionRequestAssistantMessageContentPart = AzureOpenAiChatCompletionRequestMessageContentPartText | AzureOpenAiChatCompletionRequestMessageContentPartRefusal;
|
|
7
|
+
//# sourceMappingURL=chat-completion-request-assistant-message-content-part.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-completion-request-assistant-message-content-part.d.ts","sourceRoot":"","sources":["../../../../../src/azure-openai/client/inference/schema/chat-completion-request-assistant-message-content-part.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,sDAAsD,EAAE,MAAM,wDAAwD,CAAC;AACrI,OAAO,KAAK,EAAE,yDAAyD,EAAE,MAAM,2DAA2D,CAAC;AAC3I;;GAEG;AACH,MAAM,MAAM,2DAA2D,GACnE,sDAAsD,GACtD,yDAAyD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-completion-request-assistant-message-content-part.js","sourceRoot":"","sources":["../../../../../src/azure-openai/client/inference/schema/chat-completion-request-assistant-message-content-part.ts"],"names":[],"mappings":""}
|