57 lines
1.5 KiB
Plaintext
57 lines
1.5 KiB
Plaintext
# Shared service settings
|
|
SERVICE_NAME=planet-ai-provider
|
|
SERVICE_VERSION=0.1.0
|
|
AI_PROVIDER_SERVICE_TOKEN=change_me
|
|
AI_TIMEOUT_SECONDS=60
|
|
AI_HTTP_RETRY_ATTEMPTS=2
|
|
AI_ANALYSIS_SYSTEM_PROMPT=你是态势感知分析助手。请基于输入的上下文、观测与约束,输出结构化、克制、可执行的分析。
|
|
|
|
# Provider identity. Recommended values:
|
|
# - minimax
|
|
# - openai
|
|
# - ollama
|
|
# Compatibility aliases still accepted:
|
|
# - openai_compatible
|
|
# - anthropic_compatible
|
|
# - claude_compatible
|
|
AI_PROVIDER=minimax
|
|
|
|
# Request adapter style, following OpenClaw's API-seam pattern:
|
|
# - auto
|
|
# - openai-completions
|
|
# - anthropic-messages
|
|
# - ollama-generate
|
|
AI_PROVIDER_API=anthropic-messages
|
|
|
|
# Common model selection
|
|
AI_MODEL=MiniMax-M2.7
|
|
|
|
# MiniMax CN Anthropic-compatible example
|
|
AI_BASE_URL=https://api.minimaxi.com/anthropic
|
|
AI_API_KEY=sk-cp-change-me
|
|
AI_MAX_TOKENS=1200
|
|
AI_ANTHROPIC_VERSION=2023-06-01
|
|
|
|
# OpenAI-compatible example (vLLM / LM Studio / One API / local gateway)
|
|
# AI_PROVIDER=openai
|
|
# AI_PROVIDER_API=openai-completions
|
|
# AI_BASE_URL=http://127.0.0.1:8001/v1
|
|
# AI_API_KEY=local-key
|
|
# AI_MODEL=your-local-model
|
|
|
|
# Anthropic-compatible example (Claude-compatible gateway)
|
|
# AI_PROVIDER=anthropic
|
|
# AI_PROVIDER_API=anthropic-messages
|
|
# AI_BASE_URL=http://127.0.0.1:8002/anthropic
|
|
# AI_API_KEY=local-key
|
|
# AI_MODEL=your-model
|
|
# AI_MAX_TOKENS=1200
|
|
# AI_ANTHROPIC_VERSION=2023-06-01
|
|
|
|
# Ollama native example
|
|
# AI_PROVIDER=ollama
|
|
# AI_PROVIDER_API=ollama-generate
|
|
# AI_BASE_URL=http://127.0.0.1:11434
|
|
# AI_API_KEY=
|
|
# AI_MODEL=qwen2.5:7b
|