1 line
8.6 KiB
JSON
1 line
8.6 KiB
JSON
{"repo": "badrabbitt/moneyprint", "files": {"config.example.toml": {"ff36d4a218a6ebbb0c5845dbef9ed4459a25b39e": {"t": 1785745359.8705244, "n": 7590, "h": "204d40bfbc32a3bf", "c": "[app]\nvideo_source = \"pexels\" # \"pexels\" or \"pixabay\"\n\n# 是否隐藏配置面板\nhide_config = false\n\n# Pexels API Key\n# Register at https://www.pexels.com/api/ to get your API key.\n# You can use multiple keys to avoid rate limits.\n# For example: pexels_api_keys = [\"123adsf4567adf89\",\"abd1321cd13efgfdfhi\"]\n# 特别注意格式,Key 用英文双引号括起来,多个Key用逗号隔开\npexels_api_keys = []\n\n# Pixabay API Key\n# Register at https://pixabay.com/api/docs/ to get your API key.\n# You can use multiple keys to avoid rate limits.\n# For example: pixabay_api_keys = [\"123adsf4567adf89\",\"abd1321cd13efgfdfhi\"]\n# 特别注意格式,Key 用英文双引号括起来,多个Key用逗号隔开\npixabay_api_keys = []\n\n# 支持的提供商 (Supported providers):\n# openai\n# moonshot (月之暗面)\n# azure\n# qwen (通义千问)\n# deepseek\n# gemini\n# ollama\n# g4f\n# oneapi\n# cloudflare\n# ernie (文心一言)\nllm_provider = \"openai\"\n\n########## Pollinations AI Settings\n# Visit https://pollinations.ai/ to learn more\n# API Key is optional - leave empty for public access\npollinations_api_key = \"\"\n# Default base URL for Pollinations API\npollinations_base_url = \"https://pollinations.ai/api/v1\"\n# Default model for text generation\npollinations_model_name = \"openai-fast\"\n\n########## Ollama Settings\n# No need to set it unless you want to use your own proxy\nollama_base_url = \"\"\n# Check your available models at https://ollama.com/library\nollama_model_name = \"\"\n\n########## OpenAI API Key\n# Get your API key at https://platform.openai.com/api-keys\nopenai_api_key = \"\"\n# No need to set it unless you want to use your own proxy\nopenai_base_url = \"\"\n# Check your available models at https://platform.openai.com/account/limits\nopenai_model_name = \"gpt-4o-mini\"\n\n########## Moonshot API Key\n# Visit https://platform.moonshot.cn/console/api-keys to get your API key.\nmoonshot_api_key = \"\"\nmoonshot_base_url = \"https://api.moonshot.cn/v1\"\nmoonshot_model_name = \"moonshot-v1-8k\"\n\n########## OneAPI API Key\n# Visit https://github.com/songquanpeng/one-api to get your API key\noneapi_api_key = \"\"\noneapi_base_url = \"\"\noneapi_model_name = \"\"\n\n########## G4F\n# Visit https://github.com/xtekky/gpt4free to get more details\n# Supported model list: https://github.com/xtekky/gpt4free/blob/main/g4f/models.py\ng4f_model_name = \"gpt-3.5-turbo\"\n\n########## Azure API Key\n# Visit https://learn.microsoft.com/zh-cn/azure/ai-services/openai/ to get more details\n# API documentation: https://learn.microsoft.com/zh-cn/azure/ai-services/openai/reference\nazure_api_key = \"\"\nazure_base_url = \"\"\nazure_model_name = \"gpt-35-turbo\" # replace with your model deployment name\nazure_api_version = \"2024-02-15-preview\"\n\n########## Gemini API Key\ngemini_api_key = \"\"\ngemini_model_name = \"gemini-1.0-pro\"\n\n########## Qwen API Key\n# Visit https://dashscope.console.aliyun.com/apiKey to get your API key\n# Visit below links to get more details\n# https://tongyi.aliyun.com/qianwen/\n# https://help.aliyun.com/zh/dashscope/developer-reference/model-introduction\nqwen_api_key = \"\"\nqwen_model_name = \"qwen-max\"\n\n\n########## DeepSeek API Key\n# Visit https://platform.deepseek.com/api_keys to get your API key\ndeepseek_api_key = \"\"\ndeepseek_base_url = \"https://api.deepseek.com\"\ndeepseek_model_name = \"deepseek-chat\"\n\n# Subtitle Provider, \"edge\" or \"whisper\"\n# If empty, the subtitle will not be generated\nsubtitle_provider = \"edge\"\n\n#\n# ImageMagick\n#\n# Once you have installed it, ImageMagick will be automatically detected, except on Windows!\n# On Windows, for example \"C:\\Program Files (x86)\\ImageMagick-7.1.1-Q16-HDRI\\magick.exe\"\n# Download from https://imagemagick.org/archive/binaries/ImageMagick-7.1.1-29-Q16-x64-static.exe\n\n# imagemagick_path = \"C:\\\\Program Files (x86)\\\\ImageMagick-7.1.1-Q16\\\\magick.exe\"\n\n\n#\n# FFMPEG\n#\n# 通常情况下,ffmpeg 会被自动下载,并且会被自动检测到。\n# 但是如果你的环境有问题,无法自动下载,可能会遇到如下错误:\n# RuntimeError: No ffmpeg exe could be found.\n# Install ffmpeg on your system, or set the IMAGEIO_FFMPEG_EXE environment variable.\n# 此时你可以手动下载 ffmpeg 并设置 ffmpeg_path,下载地址:https://www.gyan.dev/ffmpeg/builds/\n\n# Under normal circumstances, ffmpeg is downloaded automatically and detected automatically.\n# However, if there is an issue with your environment that prevents automatic downloading, you might encounter the following error:\n# RuntimeError: No ffmpeg exe could be found.\n# Install ffmpeg on your system, or set the IMAGEIO_FFMPEG_EXE environment variable.\n# In such cases, you can manually download ffmpeg and set the ffmpeg_path, download link: https://www.gyan.dev/ffmpeg/builds/\n\n# ffmpeg_path = \"C:\\\\Users\\\\harry\\\\Downloads\\\\ffmpeg.exe\"\n#########################################################################################\n\n# 当视频生成成功后,API服务提供的视频下载接入点,默认为当前服务的地址和监听端口\n# 比如 http://127.0.0.1:8080/tasks/6357f542-a4e1-46a1-b4c9-bf3bd0df5285/final-1.mp4\n# 如果你需要使用域名对外提供服务(一般会用nginx做代理),则可以设置为你的域名\n# 比如 https://xxxx.com/tasks/6357f542-a4e1-46a1-b4c9-bf3bd0df5285/final-1.mp4\n# endpoint=\"https://xxxx.com\"\n\n# When the video is successfully generated, the API service provides a download endpoint for the video, defaulting to the service's current address and listening port.\n# For example, http://127.0.0.1:8080/tasks/6357f542-a4e1-46a1-b4c9-bf3bd0df5285/final-1.mp4\n# If you need to provide the service externally using a domain name (usually done with nginx as a proxy), you can set it to your domain name.\n# For example, https://xxxx.com/tasks/6357f542-a4e1-46a1-b4c9-bf3bd0df5285/final-1.mp4\n# endpoint=\"https://xxxx.com\"\nendpoint = \"\"\n\n\n# Video material storage location\n# material_directory = \"\" # Indicates that video materials will be downloaded to the default folder, the default folder is ./storage/cache_videos under the current project\n# material_directory = \"/user/harry/videos\" # Indicates that video materials will be downloaded to a specified folder\n# material_directory = \"task\" # Indicates that video materials will be downloaded to the current task's folder, this method does not allow sharing of already downloaded video materials\n\n# 视频素材存放位置\n# material_directory = \"\" #表示将视频素材下载到默认的文件夹,默认文件夹为当前项目下的 ./storage/cache_videos\n# material_directory = \"/user/harry/videos\" #表示将视频素材下载到指定的文件夹中\n# material_directory = \"task\" #表示将视频素材下载到当前任务的文件夹中,这种方式无法共享已经下载的视频素材\n\nmaterial_directory = \"\"\n\n# Used for state management of the task\nenable_redis = false\nredis_host = \"localhost\"\nredis_port = 6379\nredis_db = 0\nredis_password = \"\"\n\n# 文生视频时的最大并发任务数\nmax_concurrent_tasks = 5\n\n\n[whisper]\n# Only effective when subtitle_provider is \"whisper\"\n\n# Run on GPU with FP16\n# model = WhisperModel(model_size, device=\"cuda\", compute_type=\"float16\")\n\n# Run on GPU with INT8\n# model = WhisperModel(model_size, device=\"cuda\", compute_type=\"int8_float16\")\n\n# Run on CPU with INT8\n# model = WhisperModel(model_size, device=\"cpu\", compute_type=\"int8\")\n\n# recommended model_size: \"large-v3\"\nmodel_size = \"large-v3\"\n# if you want to use GPU, set device=\"cuda\"\ndevice = \"CPU\"\ncompute_type = \"int8\"\n\n\n[proxy]\n### Use a proxy to access the Pexels API\n### Format: \"http://<username>:<password>@<proxy>:<port>\"\n### Example: \"http://user:pass@proxy:1234\"\n### Doc: https://requests.readthedocs.io/en/latest/user/advanced/#proxies\n\n# http = \"http://10.10.1.10:3128\"\n# https = \"http://10.10.1.10:1080\"\n\n[azure]\n# Azure Speech API Key\n# Get your API key at https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices\nspeech_key = \"\"\nspeech_region = \"\"\n\n[siliconflow]\n# SiliconFlow API Key\n# Get your API key at https://siliconflow.cn\napi_key = \"\"\n\n[ui]\n# UI related settings\n# 是否隐藏日志信息\n# Whether to hide logs in the UI\nhide_log = false\n"}}}} |