Quick Integration
Step 1: Install Bob
- Visit Bob Official Website to download and install
- Or install via Homebrew:
Step 2: Install OpenAI Plugin
- Open Bob application
- Click the menu bar icon, select “Preferences”
- Go to “Plugins” tab
- Search for “OpenAI Translate” plugin
- Click “Install” button
Step 3: Configure Laozhang API
Fill In API Configuration
Configure the following information:
- API Base URL:
https://api.laozhang.ai - API Key: Enter your Laozhang API key
- Model: Select the model you need (e.g.,
gpt-4-turbo)
Obtaining API KeyVisit Laozhang API Console to create and obtain your API key.
Recommended Model Selection
Choose appropriate models based on different translation scenarios:| Translation Scenario | Recommended Model | Reason |
|---|---|---|
| Daily Translation | gpt-3.5-turbo | Fast response, economical |
| Professional Documents | gpt-4-turbo | High accuracy, strong domain knowledge |
| Literary Works | claude-sonnet-4 | Strong literary flair |
| Technical Documents | gpt-4-turbo | Precise technical terminology |
| Simultaneous Interpretation | gpt-3.5-turbo | Ultra-fast response |
Core Features
1. Text Translation
Select any text, use shortcuts to translate:- Screenshot Translation:
⌥ + A - Selection Translation:
⌥ + D - Input Translation:
⌥ + S
2. OCR Text Recognition
Extract text from images:- Support multiple languages
- High recognition accuracy
- Direct translation of recognition results
3. Text Polishing
Optimize your text:- Grammar check
- Expression optimization
- Style adjustment
- Tone conversion
4. Text Summarization
Quickly summarize long text:- Extract key points
- Generate abstracts
- Refine core ideas
Practical Examples
Scenario 1: Web Translation
Browsing foreign language websites:- Select the text you want to translate
- Use shortcut
⌥ + D - View translation result in popup
Scenario 2: Document Translation
Translating professional documents:- Copy document text
- Use shortcut
⌥ + S - Input or paste text
- Get high-quality translation
Scenario 3: Paper Reading
Reading English papers:- Screenshot paper paragraphs
- Use shortcut
⌥ + A - OCR extracts text
- Automatic translation display
Scenario 4: Email Writing
Writing English emails:- Write Chinese draft
- Use translation feature
- Get English version
- Use polishing feature for optimization
Advanced Configuration
Custom Prompts
Customize prompts for translation:Multi-model Configuration
Configure different models for different scenarios:| Scenario | Model | Temperature | Max Tokens |
|---|---|---|---|
| General Translation | gpt-3.5-turbo | 0.3 | 2000 |
| Literary Translation | claude-sonnet-4 | 0.7 | 3000 |
| Technical Translation | gpt-4-turbo | 0.2 | 2000 |
| Text Polishing | gpt-4-turbo | 0.5 | 2000 |
Shortcut Customization
Customize shortcuts as needed:| Function | Default Shortcut | Recommended Custom |
|---|---|---|
| Screenshot Translation | ⌥ + A | Set to your preferred |
| Selection Translation | ⌥ + D | Set to your preferred |
| Input Translation | ⌥ + S | Set to your preferred |
| Polishing Feature | None | ⌥ + P (recommended) |
Troubleshooting
Connection Failed
Problem: Unable to connect to API Solutions:- Check if API Base URL is correct:
https://api.laozhang.ai - Verify API Key validity
- Check network connection
- Confirm firewall settings
Translation Quality Poor
Problem: Translation results don’t meet expectations Solutions:- Try using a more advanced model (e.g., switch from GPT-3.5 to GPT-4)
- Adjust temperature parameter (lower = more accurate, higher = more diverse)
- Optimize prompt template
- Provide more context information
Slow Response
Problem: Translation speed is slow Solutions:- Switch to a faster model (e.g.,
gpt-3.5-turbo) - Reduce max_tokens setting
- Check network speed
- Try during off-peak hours
High Cost
Problem: Usage costs are too high Solutions:- Use
gpt-3.5-turbofor daily translation - Use advanced models only for important content
- Set reasonable max_tokens limits
- Regularly check usage
Best Practices
1. Choose Models Wisely
Choose appropriate models based on scenarios:2. Optimize Prompts
Provide clear translation requirements:3. Context Management
Provide necessary context information:- Document type (paper, email, chat, etc.)
- Domain background (technical, medical, legal, etc.)
- Target audience (professional, general public, etc.)
- Style requirements (formal, casual, etc.)
4. Result Verification
Check translation quality:- Verify terminology accuracy
- Check logic coherence
- Confirm style appropriateness
- Proofread for typos
Usage Tips
Efficient Workflow
Batch Processing
Handle large amounts of text:- Split large text into appropriate blocks
- Process each block sequentially
- Merge results
- Perform overall proofreading
Quality Control
Ensure translation quality:- Initial Translation: Use GPT-3.5 for rough translation
- Accuracy Check: Important parts use GPT-4 for retranslation
- Style Polishing: Use Claude for style optimization
- Final Review: Manual review and adjustment
Plugin Extensions
Recommended Related Plugins
| Plugin Name | Function | Use Case |
|---|---|---|
| DeepL Translate | Professional translation | Official translation alternative |
| Google Translate | Quick translation | Daily translation supplement |
| Youdao Translate | Chinese-English translation | Domestic user-friendly |
| OpenAI Polishing | Text polishing | Content optimization |
Plugin Combination Strategies
Cost Optimization
Usage Strategy
| Document Type | Strategy | Expected Cost |
|---|---|---|
| Chat Messages | GPT-3.5, no optimization | Very Low |
| General Documents | GPT-3.5, batch processing | Low |
| Important Documents | GPT-4, secondary proofreading | Medium |
| Contract/Legal | GPT-4 + Manual Review | High |
Budget Control
Set budget control:- Daily Cap: Limit daily maximum usage
- Priority Allocation: Allocate quota by importance
- Monitor Usage: Regularly check usage
- Optimize Model Selection: Adjust model strategy based on actual needs