Skip to content

Commit b4bdef7

Browse files
committed
Update environment variable descriptions for Gemini models in documentation
1 parent da5144e commit b4bdef7

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

CHEATSHEET.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,14 +459,16 @@ mini-a goal="run command" nosetmcpwd=true
459459
| `OAF_LC_MODEL` | Low-cost model for dual-model optimization |
460460
| `OAF_MINI_A_CON_HIST_SIZE` | Console history size (default: JLine default) |
461461
| `OAF_MINI_A_LIBS` | Comma-separated libraries to load automatically |
462-
| `OAF_MINI_A_NOJSONPROMPT` | Disable promptJSONWithStats, force promptWithStats (default: false). Required for Gemini models due to API restrictions |
462+
| `OAF_MINI_A_NOJSONPROMPT` | Disable promptJSONWithStats for main model, force promptWithStats (default: false). Required for Gemini models due to API restrictions |
463+
| `OAF_MINI_A_LCNOJSONPROMPT` | Disable promptJSONWithStats for low-cost model, force promptWithStats (default: false). Required for Gemini low-cost models |
463464

464465
```bash
465466
export OAF_MODEL="(type: openai, model: gpt-4, key: '...')"
466467
export OAF_LC_MODEL="(type: openai, model: gpt-3.5-turbo, key: '...')"
467468
export OAF_MINI_A_CON_HIST_SIZE=1000
468469
export OAF_MINI_A_LIBS="@AWS/aws.js,custom.js"
469-
export OAF_MINI_A_NOJSONPROMPT=true # Required for Gemini models
470+
export OAF_MINI_A_NOJSONPROMPT=true # Required for Gemini main model
471+
export OAF_MINI_A_LCNOJSONPROMPT=true # Required for Gemini low-cost model
470472
```
471473

472474
---

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ export OAF_MODEL="(type: openai, model: gpt-5-mini, key: ..., timeout: 900000, t
157157
**Google Gemini:**
158158
```bash
159159
export OAF_MODEL="(type: gemini, model: gemini-2.5-flash-lite, key: ..., timeout: 900000, temperature: 0)"
160+
# Required for Gemini models:
161+
export OAF_MINI_A_NOJSONPROMPT=true
160162
```
161163

162164
**GitHub Models:**

USAGE.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ Mini-A (Mini Agent) is a goal-oriented autonomous agent that uses Large Language
99
- **OAF_LC_MODEL Environment Variable** (optional): Low-cost model for cost optimization
1010
- **OAF_MINI_A_CON_HIST_SIZE Environment Variable** (optional): Set the maximum console history size (default is JLine's default)
1111
- **OAF_MINI_A_LIBS Environment Variable** (optional): Comma-separated list of libraries to load automatically
12-
- **OAF_MINI_A_NOJSONPROMPT Environment Variable** (optional): Disable promptJSONWithStats and force promptWithStats (default: false). Required for Gemini models due to API restrictions
12+
- **OAF_MINI_A_NOJSONPROMPT Environment Variable** (optional): Disable promptJSONWithStats and force promptWithStats for the main model (default: false). Required for Gemini models due to API restrictions
13+
- **OAF_MINI_A_LCNOJSONPROMPT Environment Variable** (optional): Disable promptJSONWithStats and force promptWithStats for the low-cost model (default: false). Required for Gemini low-cost models. Allows different settings for main and low-cost models (e.g., Gemini low-cost with Claude main)
1314

1415
```bash
1516
export OAF_MODEL="(type: openai, model: gpt-4, key: 'your-api-key')"
@@ -19,8 +20,10 @@ export OAF_LC_MODEL="(type: openai, model: gpt-3.5-turbo, key: 'your-api-key')"
1920
export OAF_MINI_A_CON_HIST_SIZE=1000
2021
# Optional: Set libraries to load automatically
2122
export OAF_MINI_A_LIBS="@AWS/aws.js,custom.js"
22-
# Optional: Disable JSON prompt methods (required for Gemini models)
23+
# Optional: Disable JSON prompt methods (required for Gemini main model)
2324
export OAF_MINI_A_NOJSONPROMPT=true
25+
# Optional: Disable JSON prompt methods for low-cost model (required for Gemini low-cost model)
26+
export OAF_MINI_A_LCNOJSONPROMPT=true
2427
```
2528

2629
## Command-Line Execution
@@ -1074,8 +1077,13 @@ export OAF_LC_MODEL="(type: ollama, model: 'llama3', url: 'http://localhost:1143
10741077
```bash
10751078
export OAF_MODEL="(type: gemini, model: gemini-1.5-pro, key: 'your-gemini-key')"
10761079
export OAF_LC_MODEL="(type: gemini, model: gemini-1.5-flash, key: 'your-gemini-key')"
1080+
# Required for Gemini models due to API restrictions:
1081+
export OAF_MINI_A_NOJSONPROMPT=true
1082+
export OAF_MINI_A_LCNOJSONPROMPT=true
10771083
```
10781084

1085+
> **Note**: When using Gemini models, Mini-A will display a warning at startup if the appropriate `OAF_MINI_A_NOJSONPROMPT` or `OAF_MINI_A_LCNOJSONPROMPT` environment variables are not set. These flags disable the JSON prompt methods that are not compatible with Gemini's API restrictions.
1086+
10791087
**Log Output Examples:**
10801088

10811089
When using dual-model configuration, you'll see clear indicators of which model is being used:

0 commit comments

Comments
 (0)