UNPKG

@ibm-cloud/watsonx-ai

Version:
39 lines 1.93 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.ChatsChoice = void 0; var ChatsChoice; (function (ChatsChoice) { let Constants; (function (Constants) { /** * The reason the model stopped generating tokens. This will be one of: - `"stop"` if the model * hit a natural stop point or a provided stop sequence - `"length"` if the maximum number of * tokens specified in the request was reached - `"content_filter"` if content was omitted due * to a flag from our content filters - `"tool_calls"` if the model called a tool * * - `"function_call"` if the model called a function (deprecated in favor of `"tool_calls"`). */ let FinishReason; (function (FinishReason) { FinishReason["STOP"] = "stop"; FinishReason["LENGTH"] = "length"; FinishReason["CONTENT_FILTER"] = "content_filter"; FinishReason["TOOL_CALLS"] = "tool_calls"; FinishReason["FUNCTION_CALL"] = "function_call"; })(FinishReason = Constants.FinishReason || (Constants.FinishReason = {})); })(Constants = ChatsChoice.Constants || (ChatsChoice.Constants = {})); })(ChatsChoice = exports.ChatsChoice || (exports.ChatsChoice = {})); //# sourceMappingURL=response.js.map