oci-generativeaiinference 2.100.3 → 2.102.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/lib/client.d.ts +12 -0
- package/lib/client.js +66 -0
- package/lib/client.js.map +1 -1
- package/lib/model/assistant-message.d.ts +4 -0
- package/lib/model/assistant-message.js +14 -2
- package/lib/model/assistant-message.js.map +1 -1
- package/lib/model/chat-choice.d.ts +1 -1
- package/lib/model/cohere-chat-request.d.ts +1 -1
- package/lib/model/document-rank.d.ts +38 -0
- package/lib/model/document-rank.js +60 -0
- package/lib/model/document-rank.js.map +1 -0
- package/lib/model/document.d.ts +32 -0
- package/lib/model/document.js +36 -0
- package/lib/model/document.js.map +1 -0
- package/lib/model/embed-text-details.d.ts +3 -2
- package/lib/model/embed-text-details.js +1 -0
- package/lib/model/embed-text-details.js.map +1 -1
- package/lib/model/function-call.d.ts +39 -0
- package/lib/model/function-call.js +57 -0
- package/lib/model/function-call.js.map +1 -0
- package/lib/model/function-definition.d.ts +43 -0
- package/lib/model/function-definition.js +59 -0
- package/lib/model/function-definition.js.map +1 -0
- package/lib/model/generic-chat-request.d.ts +10 -0
- package/lib/model/generic-chat-request.js +14 -0
- package/lib/model/generic-chat-request.js.map +1 -1
- package/lib/model/image-url.d.ts +13 -4
- package/lib/model/image-url.js.map +1 -1
- package/lib/model/index.d.ts +28 -0
- package/lib/model/index.js +30 -1
- package/lib/model/index.js.map +1 -1
- package/lib/model/message.js +4 -0
- package/lib/model/message.js.map +1 -1
- package/lib/model/rerank-text-details.d.ts +54 -0
- package/lib/model/rerank-text-details.js +62 -0
- package/lib/model/rerank-text-details.js.map +1 -0
- package/lib/model/rerank-text-result.d.ts +45 -0
- package/lib/model/rerank-text-result.js +68 -0
- package/lib/model/rerank-text-result.js.map +1 -0
- package/lib/model/tool-call.d.ts +33 -0
- package/lib/model/tool-call.js +75 -0
- package/lib/model/tool-call.js.map +1 -0
- package/lib/model/tool-choice-auto.d.ts +31 -0
- package/lib/model/tool-choice-auto.js +57 -0
- package/lib/model/tool-choice-auto.js.map +1 -0
- package/lib/model/tool-choice-function.d.ts +35 -0
- package/lib/model/tool-choice-function.js +59 -0
- package/lib/model/tool-choice-function.js.map +1 -0
- package/lib/model/tool-choice-none.d.ts +31 -0
- package/lib/model/tool-choice-none.js +57 -0
- package/lib/model/tool-choice-none.js.map +1 -0
- package/lib/model/tool-choice-required.d.ts +31 -0
- package/lib/model/tool-choice-required.js +59 -0
- package/lib/model/tool-choice-required.js.map +1 -0
- package/lib/model/tool-choice.d.ts +29 -0
- package/lib/model/tool-choice.js +87 -0
- package/lib/model/tool-choice.js.map +1 -0
- package/lib/model/tool-definition.d.ts +29 -0
- package/lib/model/tool-definition.js +75 -0
- package/lib/model/tool-definition.js.map +1 -0
- package/lib/model/tool-message.d.ts +35 -0
- package/lib/model/tool-message.js +57 -0
- package/lib/model/tool-message.js.map +1 -0
- package/lib/request/index.d.ts +2 -0
- package/lib/request/rerank-text-request.d.ts +35 -0
- package/lib/request/rerank-text-request.js +15 -0
- package/lib/request/rerank-text-request.js.map +1 -0
- package/lib/response/index.d.ts +2 -0
- package/lib/response/rerank-text-response.d.ts +30 -0
- package/lib/response/rerank-text-response.js +15 -0
- package/lib/response/rerank-text-response.js.map +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-choice.js","sourceRoot":"","sources":["../../../../../lib/generativeaiinference/lib/model/tool-choice.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;GAkBG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAClC,qCAAsC;AAStC,IAAiB,UAAU,CAyD1B;AAzDD,WAAiB,UAAU;IACzB,SAAgB,UAAU,CAAC,GAAe;QACxC,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,IAAI,EA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CACjB,OAAQ,EAC3C,IAAI,CACL,CAAC;gBACJ;oBACE,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;wBAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;aACnF;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IA9Be,iCAAsB,yBA8BrC,CAAA;AACH,CAAC,EAzDgB,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAyD1B"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generative AI Service Inference API
|
|
3
|
+
* OCI Generative AI is a fully managed service that provides a set of state-of-the-art, customizable large language models (LLMs) that cover a wide range of use cases for text generation, summarization, and text embeddings.
|
|
4
|
+
|
|
5
|
+
Use the Generative AI service inference API to access your custom model endpoints, or to try the out-of-the-box models to [chat](#/EN/generative-ai-inference/latest/ChatResult/Chat), [generate text](#/EN/generative-ai-inference/latest/GenerateTextResult/GenerateText), [summarize](#/EN/generative-ai-inference/latest/SummarizeTextResult/SummarizeText), and [create text embeddings](#/EN/generative-ai-inference/latest/EmbedTextResult/EmbedText).
|
|
6
|
+
|
|
7
|
+
To use a Generative AI custom model for inference, you must first create an endpoint for that model. Use the [Generative AI service management API](#/EN/generative-ai/latest/) to [create a custom model](#/EN/generative-ai/latest/Model/) by fine-tuning an out-of-the-box model, or a previous version of a custom model, using your own data. Fine-tune the custom model on a [fine-tuning dedicated AI cluster](#/EN/generative-ai/latest/DedicatedAiCluster/). Then, create a [hosting dedicated AI cluster](#/EN/generative-ai/latest/DedicatedAiCluster/) with an [endpoint](#/en/generative-ai/latest/Endpoint/) to host your custom model. For resource management in the Generative AI service, use the [Generative AI service management API](#/EN/generative-ai/latest/).
|
|
8
|
+
|
|
9
|
+
To learn more about the service, see the [Generative AI documentation](/iaas/Content/generative-ai/home.htm).
|
|
10
|
+
|
|
11
|
+
* OpenAPI spec version: 20231130
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
15
|
+
* Do not edit the class manually.
|
|
16
|
+
*
|
|
17
|
+
* Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
|
|
18
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* A tool the model may call.
|
|
22
|
+
*/
|
|
23
|
+
export interface ToolDefinition {
|
|
24
|
+
"type": string;
|
|
25
|
+
}
|
|
26
|
+
export declare namespace ToolDefinition {
|
|
27
|
+
function getJsonObj(obj: ToolDefinition): object;
|
|
28
|
+
function getDeserializedJsonObj(obj: ToolDefinition): object;
|
|
29
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generative AI Service Inference API
|
|
4
|
+
* OCI Generative AI is a fully managed service that provides a set of state-of-the-art, customizable large language models (LLMs) that cover a wide range of use cases for text generation, summarization, and text embeddings.
|
|
5
|
+
|
|
6
|
+
Use the Generative AI service inference API to access your custom model endpoints, or to try the out-of-the-box models to [chat](#/EN/generative-ai-inference/latest/ChatResult/Chat), [generate text](#/EN/generative-ai-inference/latest/GenerateTextResult/GenerateText), [summarize](#/EN/generative-ai-inference/latest/SummarizeTextResult/SummarizeText), and [create text embeddings](#/EN/generative-ai-inference/latest/EmbedTextResult/EmbedText).
|
|
7
|
+
|
|
8
|
+
To use a Generative AI custom model for inference, you must first create an endpoint for that model. Use the [Generative AI service management API](#/EN/generative-ai/latest/) to [create a custom model](#/EN/generative-ai/latest/Model/) by fine-tuning an out-of-the-box model, or a previous version of a custom model, using your own data. Fine-tune the custom model on a [fine-tuning dedicated AI cluster](#/EN/generative-ai/latest/DedicatedAiCluster/). Then, create a [hosting dedicated AI cluster](#/EN/generative-ai/latest/DedicatedAiCluster/) with an [endpoint](#/en/generative-ai/latest/Endpoint/) to host your custom model. For resource management in the Generative AI service, use the [Generative AI service management API](#/EN/generative-ai/latest/).
|
|
9
|
+
|
|
10
|
+
To learn more about the service, see the [Generative AI documentation](/iaas/Content/generative-ai/home.htm).
|
|
11
|
+
|
|
12
|
+
* OpenAPI spec version: 20231130
|
|
13
|
+
*
|
|
14
|
+
*
|
|
15
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
16
|
+
* Do not edit the class manually.
|
|
17
|
+
*
|
|
18
|
+
* Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
|
|
19
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
20
|
+
*/
|
|
21
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
22
|
+
if (k2 === undefined) k2 = k;
|
|
23
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
24
|
+
}) : (function(o, m, k, k2) {
|
|
25
|
+
if (k2 === undefined) k2 = k;
|
|
26
|
+
o[k2] = m[k];
|
|
27
|
+
}));
|
|
28
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
29
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
30
|
+
}) : function(o, v) {
|
|
31
|
+
o["default"] = v;
|
|
32
|
+
});
|
|
33
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
+
exports.ToolDefinition = void 0;
|
|
42
|
+
const model = __importStar(require("../model"));
|
|
43
|
+
const common = require("oci-common");
|
|
44
|
+
var ToolDefinition;
|
|
45
|
+
(function (ToolDefinition) {
|
|
46
|
+
function getJsonObj(obj) {
|
|
47
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
48
|
+
if (obj && "type" in obj && obj.type) {
|
|
49
|
+
switch (obj.type) {
|
|
50
|
+
case "FUNCTION":
|
|
51
|
+
return model.FunctionDefinition.getJsonObj(jsonObj, true);
|
|
52
|
+
default:
|
|
53
|
+
if (common.LOG.logger)
|
|
54
|
+
common.LOG.logger.info(`Unknown value for: ${obj.type}`);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return jsonObj;
|
|
58
|
+
}
|
|
59
|
+
ToolDefinition.getJsonObj = getJsonObj;
|
|
60
|
+
function getDeserializedJsonObj(obj) {
|
|
61
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
62
|
+
if (obj && "type" in obj && obj.type) {
|
|
63
|
+
switch (obj.type) {
|
|
64
|
+
case "FUNCTION":
|
|
65
|
+
return model.FunctionDefinition.getDeserializedJsonObj(jsonObj, true);
|
|
66
|
+
default:
|
|
67
|
+
if (common.LOG.logger)
|
|
68
|
+
common.LOG.logger.info(`Unknown value for: ${obj.type}`);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return jsonObj;
|
|
72
|
+
}
|
|
73
|
+
ToolDefinition.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
74
|
+
})(ToolDefinition = exports.ToolDefinition || (exports.ToolDefinition = {}));
|
|
75
|
+
//# sourceMappingURL=tool-definition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-definition.js","sourceRoot":"","sources":["../../../../../lib/generativeaiinference/lib/model/tool-definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;GAk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,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generative AI Service Inference API
|
|
3
|
+
* OCI Generative AI is a fully managed service that provides a set of state-of-the-art, customizable large language models (LLMs) that cover a wide range of use cases for text generation, summarization, and text embeddings.
|
|
4
|
+
|
|
5
|
+
Use the Generative AI service inference API to access your custom model endpoints, or to try the out-of-the-box models to [chat](#/EN/generative-ai-inference/latest/ChatResult/Chat), [generate text](#/EN/generative-ai-inference/latest/GenerateTextResult/GenerateText), [summarize](#/EN/generative-ai-inference/latest/SummarizeTextResult/SummarizeText), and [create text embeddings](#/EN/generative-ai-inference/latest/EmbedTextResult/EmbedText).
|
|
6
|
+
|
|
7
|
+
To use a Generative AI custom model for inference, you must first create an endpoint for that model. Use the [Generative AI service management API](#/EN/generative-ai/latest/) to [create a custom model](#/EN/generative-ai/latest/Model/) by fine-tuning an out-of-the-box model, or a previous version of a custom model, using your own data. Fine-tune the custom model on a [fine-tuning dedicated AI cluster](#/EN/generative-ai/latest/DedicatedAiCluster/). Then, create a [hosting dedicated AI cluster](#/EN/generative-ai/latest/DedicatedAiCluster/) with an [endpoint](#/en/generative-ai/latest/Endpoint/) to host your custom model. For resource management in the Generative AI service, use the [Generative AI service management API](#/EN/generative-ai/latest/).
|
|
8
|
+
|
|
9
|
+
To learn more about the service, see the [Generative AI documentation](/iaas/Content/generative-ai/home.htm).
|
|
10
|
+
|
|
11
|
+
* OpenAPI spec version: 20231130
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
15
|
+
* Do not edit the class manually.
|
|
16
|
+
*
|
|
17
|
+
* Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
|
|
18
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
19
|
+
*/
|
|
20
|
+
import * as model from "../model";
|
|
21
|
+
/**
|
|
22
|
+
* Represents a single instance of tool message.
|
|
23
|
+
*/
|
|
24
|
+
export interface ToolMessage extends model.Message {
|
|
25
|
+
/**
|
|
26
|
+
* Tool call that this message is responding to.
|
|
27
|
+
*/
|
|
28
|
+
"toolCallId"?: string;
|
|
29
|
+
"role": string;
|
|
30
|
+
}
|
|
31
|
+
export declare namespace ToolMessage {
|
|
32
|
+
function getJsonObj(obj: ToolMessage, isParentJsonObj?: boolean): object;
|
|
33
|
+
const role = "TOOL";
|
|
34
|
+
function getDeserializedJsonObj(obj: ToolMessage, isParentJsonObj?: boolean): object;
|
|
35
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generative AI Service Inference API
|
|
4
|
+
* OCI Generative AI is a fully managed service that provides a set of state-of-the-art, customizable large language models (LLMs) that cover a wide range of use cases for text generation, summarization, and text embeddings.
|
|
5
|
+
|
|
6
|
+
Use the Generative AI service inference API to access your custom model endpoints, or to try the out-of-the-box models to [chat](#/EN/generative-ai-inference/latest/ChatResult/Chat), [generate text](#/EN/generative-ai-inference/latest/GenerateTextResult/GenerateText), [summarize](#/EN/generative-ai-inference/latest/SummarizeTextResult/SummarizeText), and [create text embeddings](#/EN/generative-ai-inference/latest/EmbedTextResult/EmbedText).
|
|
7
|
+
|
|
8
|
+
To use a Generative AI custom model for inference, you must first create an endpoint for that model. Use the [Generative AI service management API](#/EN/generative-ai/latest/) to [create a custom model](#/EN/generative-ai/latest/Model/) by fine-tuning an out-of-the-box model, or a previous version of a custom model, using your own data. Fine-tune the custom model on a [fine-tuning dedicated AI cluster](#/EN/generative-ai/latest/DedicatedAiCluster/). Then, create a [hosting dedicated AI cluster](#/EN/generative-ai/latest/DedicatedAiCluster/) with an [endpoint](#/en/generative-ai/latest/Endpoint/) to host your custom model. For resource management in the Generative AI service, use the [Generative AI service management API](#/EN/generative-ai/latest/).
|
|
9
|
+
|
|
10
|
+
To learn more about the service, see the [Generative AI documentation](/iaas/Content/generative-ai/home.htm).
|
|
11
|
+
|
|
12
|
+
* OpenAPI spec version: 20231130
|
|
13
|
+
*
|
|
14
|
+
*
|
|
15
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
16
|
+
* Do not edit the class manually.
|
|
17
|
+
*
|
|
18
|
+
* Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
|
|
19
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
20
|
+
*/
|
|
21
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
22
|
+
if (k2 === undefined) k2 = k;
|
|
23
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
24
|
+
}) : (function(o, m, k, k2) {
|
|
25
|
+
if (k2 === undefined) k2 = k;
|
|
26
|
+
o[k2] = m[k];
|
|
27
|
+
}));
|
|
28
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
29
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
30
|
+
}) : function(o, v) {
|
|
31
|
+
o["default"] = v;
|
|
32
|
+
});
|
|
33
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
+
exports.ToolMessage = void 0;
|
|
42
|
+
const model = __importStar(require("../model"));
|
|
43
|
+
var ToolMessage;
|
|
44
|
+
(function (ToolMessage) {
|
|
45
|
+
function getJsonObj(obj, isParentJsonObj) {
|
|
46
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj ? obj : model.Message.getJsonObj(obj))), {});
|
|
47
|
+
return jsonObj;
|
|
48
|
+
}
|
|
49
|
+
ToolMessage.getJsonObj = getJsonObj;
|
|
50
|
+
ToolMessage.role = "TOOL";
|
|
51
|
+
function getDeserializedJsonObj(obj, isParentJsonObj) {
|
|
52
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj ? obj : model.Message.getDeserializedJsonObj(obj))), {});
|
|
53
|
+
return jsonObj;
|
|
54
|
+
}
|
|
55
|
+
ToolMessage.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
56
|
+
})(ToolMessage = exports.ToolMessage || (exports.ToolMessage = {}));
|
|
57
|
+
//# sourceMappingURL=tool-message.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-message.js","sourceRoot":"","sources":["../../../../../lib/generativeaiinference/lib/model/tool-message.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;GAkBG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAelC,IAAiB,WAAW,CAkB3B;AAlBD,WAAiB,WAAW;IAC1B,SAAgB,UAAU,CAAC,GAAgB,EAAE,eAAyB;QACpE,MAAM,OAAO,mCACR,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAE,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAiB,CAAC,GACxE,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAPe,sBAAU,aAOzB,CAAA;IACY,gBAAI,GAAG,MAAM,CAAC;IAC3B,SAAgB,sBAAsB,CAAC,GAAgB,EAAE,eAAyB;QAChF,MAAM,OAAO,mCACR,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAE,KAAK,CAAC,OAAO,CAAC,sBAAsB,CAAC,GAAG,CAAiB,CAAC,GACpF,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAPe,kCAAsB,yBAOrC,CAAA;AACH,CAAC,EAlBgB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAkB3B"}
|
package/lib/request/index.d.ts
CHANGED
|
@@ -23,5 +23,7 @@ import * as EmbedTextRequest from "./embed-text-request";
|
|
|
23
23
|
export import EmbedTextRequest = EmbedTextRequest.EmbedTextRequest;
|
|
24
24
|
import * as GenerateTextRequest from "./generate-text-request";
|
|
25
25
|
export import GenerateTextRequest = GenerateTextRequest.GenerateTextRequest;
|
|
26
|
+
import * as RerankTextRequest from "./rerank-text-request";
|
|
27
|
+
export import RerankTextRequest = RerankTextRequest.RerankTextRequest;
|
|
26
28
|
import * as SummarizeTextRequest from "./summarize-text-request";
|
|
27
29
|
export import SummarizeTextRequest = SummarizeTextRequest.SummarizeTextRequest;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
*
|
|
4
|
+
* OpenAPI spec version: 20231130
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
|
|
11
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
12
|
+
*/
|
|
13
|
+
import * as model from "../model";
|
|
14
|
+
import common = require("oci-common");
|
|
15
|
+
/**
|
|
16
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/generativeaiinference/RerankText.ts.html |here} to see how to use RerankTextRequest.
|
|
17
|
+
*/
|
|
18
|
+
export interface RerankTextRequest extends common.BaseRequest {
|
|
19
|
+
/**
|
|
20
|
+
* Details required for the rerank request.
|
|
21
|
+
*/
|
|
22
|
+
"rerankTextDetails": model.RerankTextDetails;
|
|
23
|
+
/**
|
|
24
|
+
* A token that uniquely identifies a request so it can be retried in case of a timeout or
|
|
25
|
+
* server error without risk of executing that same action again. Retry tokens expire after 24
|
|
26
|
+
* hours, but can be invalidated before that, in case of conflicting operations. For example, if a resource is deleted and purged from the system, then a retry of the original creation request
|
|
27
|
+
* is rejected.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
"opcRetryToken"?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The client request ID for tracing.
|
|
33
|
+
*/
|
|
34
|
+
"opcRequestId"?: string;
|
|
35
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 20231130
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
//# sourceMappingURL=rerank-text-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rerank-text-request.js","sourceRoot":"","sources":["../../../../../lib/generativeaiinference/lib/request/rerank-text-request.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG"}
|
package/lib/response/index.d.ts
CHANGED
|
@@ -23,5 +23,7 @@ import * as EmbedTextResponse from "./embed-text-response";
|
|
|
23
23
|
export import EmbedTextResponse = EmbedTextResponse.EmbedTextResponse;
|
|
24
24
|
import * as GenerateTextResponse from "./generate-text-response";
|
|
25
25
|
export import GenerateTextResponse = GenerateTextResponse.GenerateTextResponse;
|
|
26
|
+
import * as RerankTextResponse from "./rerank-text-response";
|
|
27
|
+
export import RerankTextResponse = RerankTextResponse.RerankTextResponse;
|
|
26
28
|
import * as SummarizeTextResponse from "./summarize-text-response";
|
|
27
29
|
export import SummarizeTextResponse = SummarizeTextResponse.SummarizeTextResponse;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
*
|
|
4
|
+
* OpenAPI spec version: 20231130
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
|
|
11
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
12
|
+
*/
|
|
13
|
+
import * as model from "../model";
|
|
14
|
+
export interface RerankTextResponse {
|
|
15
|
+
/**
|
|
16
|
+
* For optimistic concurrency control. See {@code if-match}.
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
"etag": string;
|
|
20
|
+
/**
|
|
21
|
+
* Unique Oracle-assigned identifier for the request. If you need to contact
|
|
22
|
+
* Oracle about a particular request, please provide the request ID.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
"opcRequestId": string;
|
|
26
|
+
/**
|
|
27
|
+
* The returned model.RerankTextResult instance.
|
|
28
|
+
*/
|
|
29
|
+
"rerankTextResult": model.RerankTextResult;
|
|
30
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 20231130
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
//# sourceMappingURL=rerank-text-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rerank-text-response.js","sourceRoot":"","sources":["../../../../../lib/generativeaiinference/lib/response/rerank-text-response.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oci-generativeaiinference",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.102.0",
|
|
4
4
|
"description": "OCI NodeJS client for Generative Ai Inference Service",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"license": "(UPL-1.0 OR Apache-2.0)",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"oci-common": "2.
|
|
19
|
-
"oci-workrequests": "2.
|
|
18
|
+
"oci-common": "2.102.0",
|
|
19
|
+
"oci-workrequests": "2.102.0"
|
|
20
20
|
},
|
|
21
21
|
"publishConfig": {
|
|
22
22
|
"registry": "https://registry.npmjs.org"
|