UNPKG

@ibm-cloud/watsonx-ai

Version:
57 lines 2.54 kB
"use strict"; /** * (C) Copyright IBM Corp. 2025-2026. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.ChatsTextContentPart = exports.ChatsImageURL = exports.ChatsAudioInput = void 0; var ChatsAudioInput; (function (ChatsAudioInput) { let Constants; (function (Constants) { /** Format of the encoded audio data. Currently supports `"wav"` and `"mp3"`. */ let Format; (function (Format) { Format["WAV"] = "wav"; Format["MP3"] = "mp3"; })(Format = Constants.Format || (Constants.Format = {})); })(Constants = ChatsAudioInput.Constants || (ChatsAudioInput.Constants = {})); })(ChatsAudioInput = exports.ChatsAudioInput || (exports.ChatsAudioInput = {})); var ChatsImageURL; (function (ChatsImageURL) { let Constants; (function (Constants) { /** * Detail specifies the detail level of an image. See [OpenAI's Vision * guide](https://platform.openai.com/docs/guides/vision#low-or-high-fidelity-image-understanding) * for more information. */ let Detail; (function (Detail) { Detail["AUTO"] = "auto"; Detail["LOW"] = "low"; Detail["HIGH"] = "high"; })(Detail = Constants.Detail || (Constants.Detail = {})); })(Constants = ChatsImageURL.Constants || (ChatsImageURL.Constants = {})); })(ChatsImageURL = exports.ChatsImageURL || (exports.ChatsImageURL = {})); var ChatsTextContentPart; (function (ChatsTextContentPart) { let Constants; (function (Constants) { /** The type of a content part. */ let Type; (function (Type) { Type["REFUSAL"] = "refusal"; })(Type = Constants.Type || (Constants.Type = {})); })(Constants = ChatsTextContentPart.Constants || (ChatsTextContentPart.Constants = {})); })(ChatsTextContentPart = exports.ChatsTextContentPart || (exports.ChatsTextContentPart = {})); //# sourceMappingURL=messages.js.map