Fix CI/CD: Add Gitea Actions workflow and fix linting issues
This commit is contained in:
94
.env.example
Normal file
94
.env.example
Normal file
@@ -0,0 +1,94 @@
|
||||
# 7000%AUTO Environment Variables
|
||||
# Copy this file to .env and fill in your values
|
||||
# ALL OpenCode settings are REQUIRED - the app will not start without them!
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Application Settings
|
||||
# -----------------------------------------------------------------------------
|
||||
APP_NAME=7000%AUTO
|
||||
DEBUG=true
|
||||
LOG_LEVEL=INFO
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# OpenCode AI Settings (ALL REQUIRED - no defaults!)
|
||||
# -----------------------------------------------------------------------------
|
||||
# The application will NOT start if any of these are missing.
|
||||
#
|
||||
# Examples for different providers:
|
||||
#
|
||||
# MiniMax (Anthropic-compatible):
|
||||
# OPENCODE_API_KEY=your-minimax-key
|
||||
# OPENCODE_API_BASE=https://api.minimax.io/anthropic/v1
|
||||
# OPENCODE_SDK=@ai-sdk/anthropic
|
||||
# OPENCODE_MODEL=MiniMax-M2.1
|
||||
# OPENCODE_MAX_TOKENS=196608
|
||||
#
|
||||
# Claude (Anthropic):
|
||||
# OPENCODE_API_KEY=your-anthropic-key
|
||||
# OPENCODE_API_BASE=https://api.anthropic.com
|
||||
# OPENCODE_SDK=@ai-sdk/anthropic
|
||||
# OPENCODE_MODEL=claude-sonnet-4-5
|
||||
# OPENCODE_MAX_TOKENS=196608
|
||||
#
|
||||
# OpenAI:
|
||||
# OPENCODE_API_KEY=your-openai-key
|
||||
# OPENCODE_API_BASE=https://api.openai.com/v1
|
||||
# OPENCODE_SDK=@ai-sdk/openai
|
||||
# OPENCODE_MODEL=gpt-5.2
|
||||
# OPENCODE_MAX_TOKENS=196608
|
||||
#
|
||||
# Together (OpenAI-compatible):
|
||||
# OPENCODE_API_KEY=your-together-key
|
||||
# OPENCODE_API_BASE=https://api.together.xyz/v1
|
||||
# OPENCODE_SDK=@ai-sdk/openai
|
||||
# OPENCODE_MODEL=meta-llama/Llama-3.1-70B-Instruct-Turbo
|
||||
# OPENCODE_MAX_TOKENS=8192
|
||||
#
|
||||
# Groq (OpenAI-compatible):
|
||||
# OPENCODE_API_KEY=your-groq-key
|
||||
# OPENCODE_API_BASE=https://api.groq.com/openai/v1
|
||||
# OPENCODE_SDK=@ai-sdk/openai
|
||||
# OPENCODE_MODEL=llama-3.1-70b-versatile
|
||||
# OPENCODE_MAX_TOKENS=8000
|
||||
|
||||
# API Key (REQUIRED)
|
||||
OPENCODE_API_KEY=your-api-key-here
|
||||
|
||||
# API Base URL (REQUIRED)
|
||||
OPENCODE_API_BASE=https://api.minimax.io/anthropic/v1
|
||||
|
||||
# AI SDK npm package (REQUIRED)
|
||||
# Use @ai-sdk/anthropic for Anthropic-compatible APIs (Claude, MiniMax)
|
||||
# Use @ai-sdk/openai for OpenAI-compatible APIs (OpenAI, Together, Groq)
|
||||
OPENCODE_SDK=@ai-sdk/anthropic
|
||||
|
||||
# Model name (REQUIRED)
|
||||
OPENCODE_MODEL=MiniMax-M2.1
|
||||
|
||||
# Maximum output tokens (REQUIRED)
|
||||
OPENCODE_MAX_TOKENS=196608
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Gitea Settings (Required for uploading)
|
||||
# -----------------------------------------------------------------------------
|
||||
GITEA_TOKEN=your-gitea-token-here
|
||||
GITEA_USERNAME=your-gitea-username
|
||||
GITEA_URL=your-gitea-instance-url
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# X (Twitter) API Settings (Required for posting)
|
||||
# -----------------------------------------------------------------------------
|
||||
X_API_KEY=your-x-api-key
|
||||
X_API_SECRET=your-x-api-secret
|
||||
X_ACCESS_TOKEN=your-x-access-token
|
||||
X_ACCESS_TOKEN_SECRET=your-x-access-token-secret
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Optional Settings (have sensible defaults)
|
||||
# -----------------------------------------------------------------------------
|
||||
# DATABASE_URL=sqlite+aiosqlite:///./data/7000auto.db
|
||||
# HOST=0.0.0.0
|
||||
# PORT=8000
|
||||
# AUTO_START=true
|
||||
# MAX_CONCURRENT_PROJECTS=1
|
||||
# WORKSPACE_DIR=./workspace
|
||||
Reference in New Issue
Block a user