mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/yunionio/cloudpods.git
synced 2026-09-20 08:03:53 +08:00
将 ModelCatalogURL 默认路径改为 model-catalog.yaml; sync_llm_images 改为同步 fedora-xfce webtop 并注释其它候选镜像。
54 lines
2.5 KiB
Go
54 lines
2.5 KiB
Go
// Copyright 2019 Yunion
|
|
//
|
|
// 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.
|
|
|
|
package options
|
|
|
|
import common_options "yunion.io/x/onecloud/pkg/cloudcommon/options"
|
|
|
|
type LLMOptions struct {
|
|
common_options.CommonOptions
|
|
common_options.DBOptions
|
|
|
|
LLMWorkingDirectory string `help:"llm working directory" default:"/opt/cloud/workspace/llm/"`
|
|
|
|
InstantModelSyncTaskWorkerCount int `help:"backup task worker count" default:"128"`
|
|
ModelSyncTaskWaitSecs int `help:"model sync task wait seconds" default:"30"`
|
|
|
|
BackupTaskWorkerCount int `help:"backup task worker count" default:"128"`
|
|
ImportTaskWorkerCount int `help:"import task worker count" default:"8"`
|
|
StartTaskWorkerCount int `help:"start task worker count" default:"128"`
|
|
|
|
// MCP Agent 配置
|
|
MCPServerURL string `help:"MCP Server URL" default:"http://default-mcp-server:30876"`
|
|
MCPAgentTimeout int `help:"MCP Agent request timeout in seconds" default:"120"`
|
|
|
|
MCPAgentUserCharLimit int `help:"MCP Agent user char limit" default:"3200"`
|
|
MCPAgentAssistantCharLimit int `help:"MCP Agent assistant char limit" default:"6400"`
|
|
|
|
// LLM model catalog (browsable curated entries). Value can be either an
|
|
// http(s) URL or a local file path; sources without an http:// or https://
|
|
// prefix are treated as local files.
|
|
ModelCatalogURL string `help:"URL of the LLM model catalog YAML; values without http(s):// prefix are treated as local file paths" default:"https://www.cloudpods.org/model-catalog.yaml"`
|
|
LLMCatalogRefreshIntervalMinutes int `help:"Catalog refresh interval in minutes; 0 disables periodic refresh" default:"60"`
|
|
|
|
// Server-side proxy for outbound HuggingFace / ModelScope calls (used by
|
|
// the dashboard for model browsing). Mirrors GPUStack's /v1/proxy design.
|
|
HuggingFaceEndpoint string `help:"Replacement endpoint for huggingface.co (e.g., https://hf-mirror.com); empty means no substitution"`
|
|
HuggingFaceToken string `help:"Optional HuggingFace bearer token; injected as Authorization header on huggingface.co requests"`
|
|
}
|
|
|
|
var (
|
|
Options LLMOptions
|
|
)
|