forked from PolarSeeker/OpenSeeker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_env.sh
More file actions
executable file
·83 lines (75 loc) · 3.43 KB
/
Copy pathsetup_env.sh
File metadata and controls
executable file
·83 lines (75 loc) · 3.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/bin/bash
# OpenSeeker Environment Variable Configuration Script
# Usage: source setup_env.sh or . setup_env.sh
# ============================================
# LLM API Configuration (for generate_answer.py and llm_tool_openseeker.py)
# ============================================
# OpenSeeker base URL (can be a single URL or multiple comma-separated URLs)
# Example: http://127.0.0.1:30018/v1/completions
export OPENSEEKER_BASE_URL="${OPENSEEKER_BASE_URL:-YOUR_OPENSEEKER_BASE_URL}"
# Example: OpenSeeker-30b
export OPENSEEKER_MODEL="${OPENSEEKER_MODEL:-YOUR_MODEL_NAME}"
# ============================================
# Scorer API Configuration (for eval.py)
# ============================================
# Scorer model name
# Example: oss
export SCORER_MODEL_NAME="${SCORER_MODEL_NAME:-YOUR_SCORER_MODEL_NAME}"
# Scorer URL (can be a single URL or multiple comma-separated URLs)
# Example: http://127.0.0.1:8890/v1
export SCORER_URLS="${SCORER_URLS:-YOUR_SCORER_URL}"
# Scorer API key (use "EMPTY" if no key required)
# Example: EMPTY
export SCORER_API_KEY="${SCORER_API_KEY:-YOUR_API_KEY}"
# ============================================
# Summary API Configuration (for visit.py)
# ============================================
# Configuration 1 (required)
# Example: oss
export SUMMARY_MODEL_NAME="${SUMMARY_MODEL_NAME:-YOUR_SUMMARY_MODEL_NAME}"
# Example: http://127.0.0.1:8890/v1
export SUMMARY_API_URL="${SUMMARY_API_URL:-YOUR_SUMMARY_API_URL}"
# Example: EMPTY (use "EMPTY" if no key required)
export SUMMARY_API_KEY="${SUMMARY_API_KEY:-YOUR_SUMMARY_API_KEY}"
# ============================================
# Jina API Configuration (for visit.py)
# ============================================
# Get your API key from https://jina.ai/
export JINA_API_KEYS="${JINA_API_KEYS:-YOUR_JINA_API_KEY}"
# ============================================
# Serper API Configuration (for search.py)
# ============================================
# Get your API key from https://serper.dev/
export SERPER_KEY_ID="${SERPER_KEY_ID:-YOUR_SERPER_API_KEY}"
# If you want to use Tavily for search, you can configure the following parameters. Use Serper by default.
# ============================================
# Tavily API Configuration (for search.py)
# ============================================
# Get your API key from https://app.tavily.com/
export TAVILY_API_KEY="${TAVILY_API_KEY:-YOUR_TAVILY_API_KEY}"
# Search provider: 'serper' (default) or 'tavily'
export SEARCH_PROVIDER="${SEARCH_PROVIDER:-serper}"
# ============================================
# Other Configuration
# ============================================
# Visit tool configuration
export VISIT_SERVER_TIMEOUT="200"
export VISIT_SERVER_MAX_RETRIES="1"
export WEBCONTENT_MAXLENGTH="150000"
# Tool log configuration
export TOOL_LOG_MAX_CHARS="800"
echo "============================================"
echo "OpenSeeker Environment Variables Set"
echo "============================================"
echo "OPENSEEKER_BASE_URL: $OPENSEEKER_BASE_URL"
echo "OPENSEEKER_MODEL: $OPENSEEKER_MODEL"
echo "SCORER_URLS: $SCORER_URLS"
echo "SCORER_API_KEY: $SCORER_API_KEY"
echo "SUMMARY_MODEL_NAME: $SUMMARY_MODEL_NAME"
echo "SUMMARY_API_URL: $SUMMARY_API_URL"
echo "SUMMARY_API_KEY: ${SUMMARY_API_KEY:0:20}..."
echo "JINA_API_KEYS: ${JINA_API_KEYS:0:20}..."
echo "SERPER_KEY_ID: ${SERPER_KEY_ID:0:20}..."
echo "TAVILY_API_KEY: ${TAVILY_API_KEY:0:20}..."
echo "SEARCH_PROVIDER: $SEARCH_PROVIDER"
echo "============================================"