@sap-ai-sdk/foundation-models 1.0.1-20240925013059.0 → 1.0.1-20240926013103.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.
|
@@ -13,7 +13,7 @@ export declare class AzureOpenAiEmbeddingResponse {
|
|
|
13
13
|
/**
|
|
14
14
|
* Parses the Azure OpenAI response and returns the embedding.
|
|
15
15
|
* @param dataIndex - The index of the data to parse.
|
|
16
|
-
* @returns The
|
|
16
|
+
* @returns The embedding vector.
|
|
17
17
|
*/
|
|
18
18
|
getEmbedding(dataIndex?: number): number[] | undefined;
|
|
19
19
|
private logInvalidDataIndex;
|
|
@@ -19,7 +19,7 @@ export class AzureOpenAiEmbeddingResponse {
|
|
|
19
19
|
/**
|
|
20
20
|
* Parses the Azure OpenAI response and returns the embedding.
|
|
21
21
|
* @param dataIndex - The index of the data to parse.
|
|
22
|
-
* @returns The
|
|
22
|
+
* @returns The embedding vector.
|
|
23
23
|
*/
|
|
24
24
|
getEmbedding(dataIndex = 0) {
|
|
25
25
|
this.logInvalidDataIndex(dataIndex);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ai-sdk/foundation-models",
|
|
3
|
-
"version": "1.0.1-
|
|
3
|
+
"version": "1.0.1-20240926013103.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -22,12 +22,8 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@sap-cloud-sdk/http-client": "^3.21.0",
|
|
24
24
|
"@sap-cloud-sdk/util": "^3.21.0",
|
|
25
|
-
"@sap-ai-sdk/ai-api": "^1.0.1-
|
|
26
|
-
"@sap-ai-sdk/core": "^1.0.1-
|
|
27
|
-
},
|
|
28
|
-
"devDependencies": {
|
|
29
|
-
"ts-to-zod": "^3.13.0",
|
|
30
|
-
"zod": "^3.23.8"
|
|
25
|
+
"@sap-ai-sdk/ai-api": "^1.0.1-20240926013103.0",
|
|
26
|
+
"@sap-ai-sdk/core": "^1.0.1-20240926013103.0"
|
|
31
27
|
},
|
|
32
28
|
"scripts": {
|
|
33
29
|
"compile": "tsc",
|
|
@@ -36,8 +32,8 @@
|
|
|
36
32
|
"lint": "eslint \"**/*.ts\" && prettier . --config ../../.prettierrc --ignore-path ../../.prettierignore -c",
|
|
37
33
|
"lint:fix": "eslint \"**/*.ts\" --fix && prettier . --config ../../.prettierrc --ignore-path ../../.prettierignore -w --log-level error",
|
|
38
34
|
"check:public-api": "node --loader ts-node/esm ../../scripts/check-public-api-cli.ts",
|
|
35
|
+
"generate": "pnpm generate:azure-openai",
|
|
39
36
|
"generate:azure-openai": "openapi-generator --generateESM --clearOutputDir -i ./src/azure-openai/spec/inference.yaml -o ./src/azure-openai/client --schemaPrefix AzureOpenAi",
|
|
40
|
-
"postgenerate:azure-openai": "rm ./src/azure-openai/client/inference/*.ts && pnpm lint:fix"
|
|
41
|
-
"generate-zod": "ts-to-zod src/azure-openai/azure-openai-embedding-types.ts src/azure-openai/ts-to-zod/azure-openai-embedding-types.zod.ts"
|
|
37
|
+
"postgenerate:azure-openai": "rm ./src/azure-openai/client/inference/*.ts && pnpm lint:fix"
|
|
42
38
|
}
|
|
43
39
|
}
|