AskSage
AskSage focuses on educational and learning scenarios, providing professional support for academic research and teaching.
Supported Models
- asksage-v1 - Main AskSage model
- asksage-v1-tutor - Specialized tutoring model
- asksage-v1-research - Academic research model
- asksage-v1-math - Math-specific model
Configuration
Basic Configuration
Configure in config.yaml or ~/.bytebuddy/config.yaml:
yaml
models:
- name: "asksage-general"
provider: "asksage"
model: "asksage-v1"
apiKey: "${ASKSAGE_API_KEY}"
roles: ["chat"]
defaultCompletionOptions:
temperature: 0.7
maxTokens: 4096Tutoring Configuration
yaml
models:
- name: "asksage-tutor"
provider: "asksage"
model: "asksage-v1-tutor"
apiKey: "${ASKSAGE_API_KEY}"
roles: ["chat"]
defaultCompletionOptions:
temperature: 0.5
maxTokens: 2048Multi-Model Configuration
yaml
models:
- name: "asksage-general"
provider: "asksage"
model: "asksage-v1"
apiKey: "${ASKSAGE_API_KEY}"
roles: ["chat"]
defaultCompletionOptions:
temperature: 0.7
maxTokens: 4096
- name: "asksage-math"
provider: "asksage"
model: "asksage-v1-math"
apiKey: "${ASKSAGE_API_KEY}"
roles: ["chat"]
defaultCompletionOptions:
temperature: 0.3
maxTokens: 2048Configuration Fields
Required Fields
- name: Unique identifier for the model configuration
- provider: Set to
"asksage" - model: Model name
- apiKey: AskSage API key
Optional Fields
- roles: Model roles [
chat,edit,apply] - defaultCompletionOptions:
temperature: Control randomness (0-1)maxTokens: Maximum tokenstopP: Nucleus sampling parameterfrequencyPenalty: Frequency penaltypresencePenalty: Presence penalty
Environment Variables
bash
# ~/.bashrc or ~/.zshrc
export ASKSAGE_API_KEY="your-asksage-api-key"Getting API Key
- Visit AskSage Website
- Register and log in to account
- Navigate to API keys page
- Generate new API key
- Save the key to environment variable
Use Case Configurations
Educational Tutoring
yaml
models:
- name: "tutor"
provider: "asksage"
model: "asksage-v1-tutor"
apiKey: "${ASKSAGE_API_KEY}"
roles: ["chat"]
defaultCompletionOptions:
temperature: 0.5
maxTokens: 2048Academic Research
yaml
models:
- name: "research"
provider: "asksage"
model: "asksage-v1-research"
apiKey: "${ASKSAGE_API_KEY}"
roles: ["chat"]
defaultCompletionOptions:
temperature: 0.3
maxTokens: 4096Math Tutoring
yaml
models:
- name: "math-tutor"
provider: "asksage"
model: "asksage-v1-math"
apiKey: "${ASKSAGE_API_KEY}"
roles: ["chat"]
defaultCompletionOptions:
temperature: 0.2
maxTokens: 2048Troubleshooting
Common Errors
- 401 Unauthorized: Check if API key is correct
- 429 Too Many Requests: Rate limit reached, wait and retry
- Model Not Available: Confirm subscription plan supports the model
Debugging Steps
- Verify API key format and validity
- Check rate limits and quotas
- Confirm model name spelling
- View error logs for details
Best Practices
1. Security
- Use environment variables to store API keys
- Rotate keys regularly
- Monitor unusual usage
2. Performance Optimization
- Choose appropriate model for the task
- Use lower temperature for educational scenarios
- Set reasonable maxTokens limits
3. Cost Control
- Monitor API usage
- Select models based on task complexity
- Set quota alerts