Files
hack/tools/scripts/llm-key-hunter/results/_cache/content/artisancloud_brainx.json
T

1 line
6.9 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{"repo": "artisancloud/brainx", "files": {"backend/etc/config.example.yaml": {"5d9197d051c4c33c3de2d720619b6d39914d3b75": {"t": 1785768877.4292877, "n": 5929, "h": "50a1acaad247385b", "c": "server:\n version: \"0.0.7\"\n region: \"global\"\n project_name: \"BrainX\"\n project_type: \"standalone\"\n host: \"0.0.0.0\"\n port: 8000\n max_bytes: 10485760\n cors_origins:\n - \"*\"\n worker_count: 2\n environment: \"local\"\n server_render: False\n timezone: \"Asia/Shanghai\"\n\njwt:\n jwt_secret: \"dev\"\n expire_in: 2592000 # 3600*24*30\n\napi:\n api_prefix: \"/api\"\n openapi_prefix: \"/openapi/v1\"\n request_timeout: 60\n\nopenapi:\n platforms:\n token_secret_key: \"xxxxxxxxxxxxxxxxxxxx\"\n # 访问BrainX OpenAPI的restful 配置\n power_x:\n access_key: \"key_power_x\"\n secret_key: \"987654321\"\n\n providers:\n # 访问PowerX OpenAPI的restful 配置\n power_x:\n base_url: \"http://127.0.0.1:8888/openapi/v1\"\n access_key: \"xxxxxxxxxxxx\"\n secret_key: \"xxxxxxxxxxxx\"\n\ndatabase:\n dsn: \"postgresql+asyncpg://user:pass@127.0.0.1:54321/brain_x\" # 数据库连接字符串\n db_schema: \"public\" # 默认的数据库 schema\n pool_size: 4 # 最大连接数\n max_overflow: 4 # 超过池大小的最大连接数\n pool_timeout: 120 # 连接池获取连接的超时时间(秒)\n pool_recycle: 3600 # 连接最大生命周期(秒)\n pool_pre_ping: true # 连接池健康检查\n poolclass: # \"sqlalchemy.pool.NullPool\"\n echo: False\n\ncache:\n driver: redis\n redis:\n url: redis://mypassword@localhost:6379/0\n use_jsonb: True\n\nschedule:\n enable: False\n driver: apscheduler\n job_stores:\n default:\n type: sqlalchemy # 或者 redis\n url: postgresql://user:pass@localhost:5432/brain_x\n host: 127.0.0.1\n port: 6379\n db: 0\n username:\n password:\n executors:\n default:\n type: threadpool\n max_workers: 3\n job_defaults:\n coalesce: false\n max_instances: 1\n\ntask:\n enable: False\n # celery_broker_url: 'amqp://guest:guest@localhost:5672//'\n # celery_result_backend: 'db+postgresql://username:password@127.0.0.1:5432/brainx'\n celery_broker_url: \"redis://localhost:6379/0\"\n celery_result_backend: \"redis://localhost:6379/0\"\n # 队列的配置\n queue:\n default:\n rag_queue: rag_queue\n task_queue: task_queue\n task_acks_on_failure_or_timeout: True\n task_time_limit: 3600 # 任务最大执行时间\n task_soft_time_limit: 3000 # 软时间限制\n task_acks_late: True # 任务完成后才确认\n task_reject_on_worker_lost: True # worker 丢失时重新入队\n task_default_rate_limit: \"1/s\" # 限制任务执行速率\n task_default_retry_delay: 5 # 任务重试延迟时间,单位是秒\n task_retry_count: 5 # 任务最大重试次数\n\n # worker 配置\n worker_concurrency: 4 # 并发 worker 数量\n worker_prefetch_multiplier: 1 # 限制 worker 预取任务数\n\n # broker 配置\n broker_use_ssl: False\n ssl_cert_reqs: \"\"\n ssl_ca_certs: \"\"\n ssl_cert_file: \"\"\n ssl_keyfile: \"\"\n broker_connection_retry_on_startup: True\n broker_connection_timeout: 30\n broker_heartbeat: 30\n\n # 结果过期时间\n result_expires: 3600\n # result_backend_transport_options Socket 配置\n socket_connect_timeout: 30\n socket_timeout: 30\n\nevent:\n enable: False # 默认关闭,如果需要用得到订阅通知事件,可以开启\n driver: rabbitMQ #驱动默认是RabbitMQ\n host: localhost\n port: 5672 # RabbitMQ默认端口\n user: guest\n password: guest\n default_event_queue: queue_brainx #事件队列名称\n queues:\n []\n # - name: queue_name #事件名\n # event_name: event_name\n\nmodels:\n qa_embedding_model_name: \"shibing624/text2vec-base-chinese\"\n visual_search_model_name: \"clip-ViT-L-14\"\n visual_query_model_name: \"dandelin/vilt-b32-finetuned-vqa\"\n\nagent:\n framework_driver: langchain\n vdb: pgvector\n vector_store_table_name: \"langchain_pg_embedding\"\n vector_store_collection: \"rag_embeddings\"\n router_llm: gpt-3.5-turbo\n pgvector:\n # 默认使用postgres,和database用的dsn一致,除非你需要自己定义自己另外地址的pgvector地址\n url: \"postgresql+psycopg://username:password@127.0.0.1:5432/brain_x\"\n use_jsonb: True\n\nlog:\n file: true # 是否输出到本地文件\n console: true # 是否输出到控制台\n path: ./logs\n split:\n - error\n level: info\n interval: 1 # 间隔1天(与 \"midnight\" 配合使用时,interval 设为 1)\n keep_days: 30 # 保留最近n天的日志文件\n stat: false\n exc_info: true\n extra:\n elasticsearch:\n enable: false # 是否使用Elasticsearch\n hosts:\n - \"http://localhost:9200\"\n username: \"kibana_user\"\n password: \"your_password\"\n index_name: \"brain_x_log\" # Elasticsearch索引名称\n loki:\n enable: false\n url: \"http://localhost:3100/loki/api/v1/push\" # Loki 的推送地址\n\ntest:\n db_url: \"postgresql+psycopg2://username:password@localhost/test_db\"\n\nopenai:\n llm_name: \"gpt-3.5-turbo\"\n api_base: \"https://api.openai.com/v1/\"\n api_key: \"YOUR_API_KEY\"\n request_timeout: 30\n\nkimi:\n llm_name: \"moonshot-v1-8k\"\n api_base: \"https://api.moonshot.cn/v1\"\n api_key: \"sk-reAhVwEXS8KkfazfbgAqDYbOrI9jQtFhCsDtQJA3Gq0Exxxx\"\n request_timeout: 30\n\nbaidu_qianfan:\n api_key: \"YOUR_API_KEY\"\n secret_key: \"YOUR_SECRET_KEY\"\n request_timeout: 30\n\ntencent_hunyuan:\n api_base: \"https://api.hunyuan.cloud.tencent.com/v1\"\n api_key: sk-ADKNWJj4VLqaazEgPDRaIwWHWkY05XFnmdw91rxxxxxx\n request_timeout: 30\n\ndeepseek:\n api_base: \"https://api.deepseek.com\"\n api_key: sk-a5c611111111111111111\n request_timeout: 30\n\nollama:\n url: \"http://localhost:11434\"\n\nllama_cpp:\n url: \"http://localhost:8080\"\n timeout: 300\n\nvllm:\n url: \"http://localhost:8007\"\n timeout: 300\n\ncoze:\n api_base: https://api.coze.cn/v3\n api_key: \"YOUR_API_KEY\"\n bot_id: \"bot_id\"\n user_id: \"brainx\"\n conversation_id: \"\"\n\npolygon:\n api_key: \"YOUR_API_KEY\"\n\nsentry:\n dsn: \"YOUR_DSN\"\n environment: \"local\"\n release: \"1.0\"\n sample_rate: 0.1\n\nstorage:\n driver: \"local\"\n host: \"127.0.0.1:8000\"\n local_storage:\n storage_path: \"./storage\"\n minio:\n endpoint: \"127.0.0.1:9001\"\n access_key: \"YOUR_ACCESS_KEY\"\n secret_key: \"YOUR_SECRET_KEY\"\n use_ssl: True\n region: \"AsiaShanghai\"\n bucket_name: \"bucket.brainx\"\n aliyun:\n endpoint: \"oss-cn-beijing.aliyuncs.com\"\n access_key: \"YOUR_ACCESS_KEY\"\n secret_key: \"YOUR_SECRET_KEY\"\n bucket_name: \"BUCKET_NAME\"\n azure:\n account_name: \"ACCOUNT_NAME\"\n account_key: \"ACCOUNT_KEY\"\n container_name: \"CONTAINER_NAME\"\n bucket_name: \"BUCKET_NAME\"\n google:\n bucket_name: \"BUCKET_NAME\"\n s3:\n endpoint: \"ENDPOINT\"\n access_key: \"ACCESS_KEY\"\n secret_key: \"SECRET_KEY\"\n bucket_name: \"BUCKET_NAME\"\n"}}}}