@sap-ai-sdk/orchestration 1.1.1-20241020013107.0 → 1.1.1-20241022013102.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.
Files changed (2) hide show
  1. package/README.md +22 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -125,6 +125,28 @@ console.log(
125
125
  );
126
126
  ```
127
127
 
128
+ > [!Tip]
129
+ >
130
+ > #### Harmonized API
131
+ >
132
+ > You can switch to a different model, even from another vendor, by leveraging the harmonized API of the orchestration service.
133
+ > Here’s an example where only one line of code is changed..
134
+ >
135
+ > ```ts
136
+ > const orchestrationClient = new OrchestrationClient({
137
+ > llm: {
138
+ > // only change the model name here
139
+ > model_name: 'gemini-1.5-flash',
140
+ > model_params: { max_tokens: 50, temperature: 0.1 }
141
+ > },
142
+ > templating: {
143
+ > template: [
144
+ > { role: 'user', content: 'What is the capital of {{?country}}?' }
145
+ > ]
146
+ > }
147
+ > });
148
+ > ```
149
+
128
150
  #### Passing a Message History
129
151
 
130
152
  It is possible to provide a history of a conversation to the model.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap-ai-sdk/orchestration",
3
- "version": "1.1.1-20241020013107.0",
3
+ "version": "1.1.1-20241022013102.0",
4
4
  "description": "",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
@@ -22,8 +22,8 @@
22
22
  "dependencies": {
23
23
  "@sap-cloud-sdk/http-client": "^3.22.2",
24
24
  "@sap-cloud-sdk/util": "^3.22.2",
25
- "@sap-ai-sdk/core": "^1.1.1-20241020013107.0",
26
- "@sap-ai-sdk/ai-api": "^1.1.1-20241020013107.0"
25
+ "@sap-ai-sdk/core": "^1.1.1-20241022013102.0",
26
+ "@sap-ai-sdk/ai-api": "^1.1.1-20241022013102.0"
27
27
  },
28
28
  "scripts": {
29
29
  "compile": "tsc",