Update dependency @sap-ai-sdk/orchestration to v2 #56
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.18.0->2.1.0Release Notes
SAP/ai-sdk-js (@sap-ai-sdk/orchestration)
v2.1.0Compare Source
Patch Changes
0cf7d80: [Fixed Issue] Fix JSDoc example ofbuildAzureContentSafetyFilter()function.0cf7d80]v2.0.0Compare Source
Major Changes
740ba78: [Compatibility Note]buildTranslationConfig()function now requirestypeparameter to distinguish betweeninputandoutputtranslation configuration.4c00c27: [Compatibility Note] Change stream method parameter fromAbortControllertoAbortSignal.The
stream()method now accepts anAbortSignalinstead of anAbortControlleras the second parameter in both Azure OpenAI and Orchestration clients.740ba78: [Compatibility Note]buildLlamaGuardFilter()function has been renamed tobuildLlamaGuard38BFilter(). It now requires a type parameter to distinguish betweeninputandoutputfilter configurations, and accepts filter categories as an array.5c52cb6: [Compatibility Note] Move generated types to internal exports while keeping frequently used types in main exports.@sap-ai-sdk/orchestrationand must be imported from@sap-ai-sdk/orchestration/internal.jsinstead.ChatMessage,SystemChatMessage,UserChatMessage,AssistantChatMessage,ToolChatMessage,DeveloperChatMessage,ChatCompletionTool,FunctionObject) remain available from main package exports.5c52cb6: [Compatibility Note] Response objectdataproperty is renamed to_data.Use getter methods like
getContent(),getTokenUsage(),getAssistantMessage()instead of direct data access.997e8ec: [Compatibility Note]buildAzureContentSafetyFilter()function now requirestypeparameter to distinguish betweeninputandoutputfilter configuration.997e8ec: [New Functionality] Addprompt_shieldproperty tobuildAzureContentSafetyFilter()function for input filter configuration to allow enabling prompt attack detection.86e6370: [Compatibility Note] Major breaking changes for orchestration v2:llmandtemplatingmodules into a singlepromptTemplatingmodule.llm.model_nameproperty is nowpromptTemplating.model.nameandllm.model_paramsis nowpromptTemplating.model.params.templating.templateproperty is nowpromptTemplating.prompt.template.inputParamsparameter toplaceholderValuesin orchestration client methods.orchestration_resulttofinal_resultandmodule_resultstointermediate_results.streamproperty withstreamOptions.enabledand update streaming module options fromllmtopromptTemplating.placeholders.inputandplaceholders.outputinstead of separateinput_paramsandoutput_param.Hatetohate,SelfHarmtoself_harm,Sexualtosexual, andViolencetoviolence.buildAzureContentFilter()function and usebuildAzureContentSafetyFilter()instead.Minor Changes
5c52cb6: [New Functionality] AddgetIntermediateResults()method toOrchestrationResponse,OrchestrationStreamResponse,OrchestrationStreamChunkResponseclasses for accessing intermediate processing results from orchestration modules.0a418d0: [feat] AdddeploymentIdas the optional parameter for OrchestrationClient initialization.5c52cb6: [New Functionality] AddfindChoiceByIndex()method to find specific choices by index in streaming responses.Patch Changes
500c0dd]9e1c43a]14745de]Configuration
📅 Schedule: Branch creation - "every weekend" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.