Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 35 additions & 10 deletions .env
Original file line number Diff line number Diff line change
@@ -1,13 +1,38 @@
# OpenRouter API Configuration
OPENROUTER_API_KEY=

# OpenRouter Model Configuration.

# If you want to use a specific model, set it here.
# If not set, it will default to "mistralai/mistral-small-3.2-24b-instruct:free"
# You can change this to any model available on OpenRouter.
# Example: OPENROUTER_MODEL=qwen/qwq-32b:free
# Example: OPENROUTER_MODEL=deepseek/deepseek-r1-0528:free
# Example: OPENROUTER_MODEL=google/gemini-2.0-flash-exp:free
# models are available at https://openrouter.ai/models
OPENROUTER_MODEL=
# OpenRouter Model Configuration
#
# If you want to use a specific model, uncomment one of the lines below.
# If not set (or all are commented), it will default to "mistralai/mistral-small-3.2-24b-instruct:free"
# You can also set it to any model available on OpenRouter: https://openrouter.ai/models

# === FREE MODELS ===
# Uncomment ONE of the following lines to use a specific free model:

# Default model (used when no model is specified)
# OPENROUTER_MODEL=mistralai/mistral-small-3.2-24b-instruct:free

# Additional free models commonly available on OpenRouter

# OPENROUTER_MODEL=qwen/qwq-32b:free
# OPENROUTER_MODEL=deepseek/deepseek-r1-0528:free
# OPENROUTER_MODEL=google/gemini-2.0-flash-exp:free
# OPENROUTER_MODEL=meta-llama/llama-3.1-8b-instruct:free
# OPENROUTER_MODEL=meta-llama/llama-3.1-70b-instruct:free
# OPENROUTER_MODEL=microsoft/wizardlm-2-8x22b:free
# OPENROUTER_MODEL=openchat/openchat-7b:free
# OPENROUTER_MODEL=huggingfaceh4/zephyr-7b-beta:free
# OPENROUTER_MODEL=nousresearch/nous-capybara-7b:free
# OPENROUTER_MODEL=teknium/openhermes-2.5-mistral-7b:free
# OPENROUTER_MODEL=gryphe/mythomist-7b:free
# OPENROUTER_MODEL=toppy/toppy-m-7b:free
# OPENROUTER_MODEL=koboldai/psyfighter-13b-2:free
# OPENROUTER_MODEL=intel/neural-chat-7b-v3-1:free
# OPENROUTER_MODEL=neversleep/noromaid-20b:free
# OPENROUTER_MODEL=pygmalionai/mythalion-13b:free
# OPENROUTER_MODEL=alpindale/goliath-120b:free
# OPENROUTER_MODEL=anthropic/claude-3-5-haiku:free
# OPENROUTER_MODEL=cohere/command-r-plus:free
# OPENROUTER_MODEL=perplexity/llama-3.1-sonar-small-128k-online:free
# OPENROUTER_MODEL=perplexity/llama-3.1-sonar-large-128k-online:free
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,23 +157,29 @@ ai explain machine learning

### Changing the AI Model

You can change the AI model by editing the `OPENROUTER_MODEL` variable in your `.env` file:
You can change the AI model by editing the `OPENROUTER_MODEL` variable in your `.env` file. The `.env` file now includes a comprehensive list of free models - simply uncomment the one you want to use:

```bash
# Leave empty or unset to use the default model
OPENROUTER_MODEL=

# Or specify a different model
OPENROUTER_MODEL=qwen/qwq-32b:free
# Or uncomment one of the many free models listed in .env
# OPENROUTER_MODEL=qwen/qwq-32b:free
# OPENROUTER_MODEL=deepseek/deepseek-r1-0528:free
# OPENROUTER_MODEL=google/gemini-2.0-flash-exp:free
```

Popular free models on OpenRouter include:
The `.env` file includes many free models on OpenRouter, including:
- `mistralai/mistral-small-3.2-24b-instruct:free` (default)
- `qwen/qwq-32b:free`
- `deepseek/deepseek-r1-0528:free`
- `google/gemini-2.0-flash-exp:free`
- `meta-llama/llama-3.1-8b-instruct:free`
- `meta-llama/llama-3.1-70b-instruct:free`
- `microsoft/wizardlm-2-8x22b:free`
- And many more! Check your `.env` file for the complete list.

**Note:** If `OPENROUTER_MODEL` is not set or left empty, the script will use the default Mistral model.
**Note:** If `OPENROUTER_MODEL` is not set or left empty, the script will use the default Mistral model. Simply uncomment one of the free models in your `.env` file to use a different model.

### Common Issues

Expand Down