Skip to main content
VAssist supports three AI providers for natural language processing. Choose the provider that best fits your needs.

Provider Overview

Chrome AI

Free, local, and privateUses Google’s Gemini Nano running entirely on your device. No API keys required.

OpenAI

Powerful cloud modelsAccess GPT-4, GPT-4 Turbo, and other OpenAI models via API.

Ollama

Self-hosted flexibilityRun local LLMs (Llama 2, Mistral, etc.) on your own machine.

Chrome AI (Default)

Requirements

Chrome 138+ required with specific feature flags enabled.
Chrome AI uses Google’s on-device Gemini Nano model. Configuration is done via chrome://flags:

Required Flags

1

Enable Optimization Guide

Navigate to:
Set to: “Enabled BypassPerfRequirement”This enables the on-device AI model to run without hardware restrictions.
2

Enable Prompt API

Navigate to:
Set to: “Enabled”Activates the Language Model API for text generation.
3

Enable Multimodal Input

Navigate to:
Set to: “Enabled”Required for audio/image support in Chrome AI.
4

Restart Chrome

After enabling all flags, restart Chrome for changes to take effect.

Configuration

string
default:"chrome-ai"
Set provider to chrome-ai in AI Config settings.
number
default:"1.0"
Controls response randomness and creativity.
  • Range: 0.0 - 2.0
  • Low (0.0-0.7): More focused and deterministic
  • Medium (0.8-1.2): Balanced creativity
  • High (1.3-2.0): More random and creative
number
default:"3"
Number of top token candidates considered for each generation step.
  • Range: 1 - 128
  • Lower: More focused responses
  • Higher: More diverse vocabulary
string
default:"en"
Preferred output language for responses.Supported languages:
  • en - English
  • es - Spanish
  • ja - Japanese
boolean
default:"true"
Enable multimodal image analysis capabilities.Requires the Multimodal Input flag enabled.
boolean
default:"true"
Enable multimodal audio transcription.Requires the Multimodal Input flag enabled.

System Prompts

Customize the assistant’s personality and behavior:
string
default:"default"
Select a pre-configured personality:
  • default: Helpful and concise assistant
  • professional: Formal, well-structured responses
  • friendly: Warm and conversational
  • technical: Expert technical guidance
  • creative: Imaginative and expressive
  • concise: Brief, to-the-point answers
  • teacher: Educational explanations
  • custom: Use your own custom prompt
string
default:""
Custom system prompt (only used when systemPromptType is custom).Example:

OpenAI

API Key Setup

1

Get API Key

  1. Sign up at platform.openai.com
  2. Navigate to API Keys section
  3. Click “Create new secret key”
  4. Copy the key (starts with sk-)
2

Configure VAssist

  1. Open AI Config settings
  2. Select OpenAI as provider
  3. Paste your API key
  4. Choose a model

Configuration

string
Set to openai to use OpenAI models.
string
required
Your OpenAI API key.
Never share or commit your API key. It’s stored locally in browser storage.
string
default:"gpt-4-turbo-preview"
OpenAI model to use for chat completions.Recommended models:
  • gpt-4-turbo-preview - Latest GPT-4 Turbo (best quality)
  • gpt-4 - Standard GPT-4
  • gpt-3.5-turbo - Faster, more economical
  • gpt-3.5-turbo-16k - Extended context window
number
default:"0.7"
Response creativity (0.0 - 2.0).
  • 0.0-0.3: Focused, deterministic
  • 0.4-0.7: Balanced (recommended)
  • 0.8-1.0: Creative
  • 1.1-2.0: Very creative/random
number
default:"2000"
Maximum tokens in the response.
  • Higher values allow longer responses
  • Affects API costs
  • Typical range: 500-4000
boolean
default:"true"
Enable GPT-4 Vision for image analysis.Requires gpt-4-vision-preview or similar vision-capable model.
boolean
default:"true"
Enable audio transcription via Whisper API.

System Prompts

string
default:"default"
Choose from the same personality options as Chrome AI (default, professional, friendly, etc.).
string
default:""
Custom system prompt when systemPromptType is custom.

Ollama (Local)

Setup

1

Install Ollama

Download and install from ollama.aiSupported platforms: macOS, Linux, Windows
2

Pull a Model

Open terminal and download a model:
3

Start Ollama Server

Ollama runs automatically after installation. Verify it’s running:
4

Configure VAssist

  1. Open AI Config
  2. Select Ollama as provider
  3. Set endpoint to http://localhost:11434
  4. Enter the model name (e.g., llama2)

Configuration

string
Set to ollama for local Ollama models.
string
default:"http://localhost:11434"
Ollama API endpoint.
  • Default: http://localhost:11434
  • Custom: If running on different port/host
string
default:"llama2"
required
Model name to use.Popular models:
  • llama2 - Meta’s Llama 2
  • mistral - Mistral 7B
  • codellama - Code-specialized Llama
  • mixtral - Mixtral 8x7B (larger, more capable)
  • phi - Microsoft Phi-2
Run ollama list to see installed models.
number
default:"0.7"
Response creativity (0.0 - 2.0).
number
default:"2000"
Maximum tokens in response.
boolean
default:"true"
Enable image analysis (requires vision-capable model like llava).
boolean
default:"true"
Enable audio transcription (experimental).

System Prompts

string
default:"default"
Personality selection (same options as Chrome AI and OpenAI).
string
default:""
Custom system prompt for custom personality type.

Provider Comparison

Troubleshooting

Check:
  1. Chrome version 138 or higher
  2. All three flags enabled in chrome://flags
  3. Chrome restarted after enabling flags
  4. Model downloaded (check chrome://components)
Model download: Chrome downloads Gemini Nano automatically. This may take 10-30 minutes.
Common issues:
  • Invalid API key: Double-check key in settings
  • Rate limit: Reduce request frequency or upgrade plan
  • Model not found: Verify model name spelling
  • Insufficient quota: Add credits to OpenAI account
Verify:
  1. Ollama is running: ollama list
  2. Endpoint is correct: http://localhost:11434
  3. Model exists: ollama list shows your model
  4. No firewall blocking port 11434
Restart Ollama: