code/model.ts

fastgpt · packages/global/common/error/code/model.ts · typescript · Apache-2.0
ai, tag:knn-classified

Defines and exports a list of model-related error codes with messages and HTTP status.

// Source: https://github.com/labring/fastgpt | License: Apache-2.0 | Copyright 2023 Sealos
// Provided via justclaw.it.com; keep this notice with the code.
import { type ErrType } from '../errorCode';
import { i18nT } from '../../i18n/utils';

/* model: 513000 */
export enum ModelErrEnum {
  unExist = 'modelUnExist',
  unConfigured = 'modelUnConfigured',
  alreadyExists = 'modelAlreadyExists',
  probeTaskRunning = 'modelProbeTaskRunning',
  unAuthModel = 'unAuthModel',
  invalidModelConfig = 'invalidModelConfig',
  rootOnlyPermit = 'rootOnlyPermit',
  unAuthChannel = 'unAuthChannel',
  channelNotExist = 'channelNotExist',
  channelNameConflict = 'channelNameConflict',
  noAvailableChannel = 'modelNoAvailableChannel',
  teamModelDisabled = 'teamModelDisabled'
}

const modelErrList = [
  {


... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key