AIChatOne Docs
Home
  • πŸ‘‹Welcome to AIChatOne Docs
  • Getting started
    • πŸ’‘Get started with AIChatOne
    • ✨Compare AIChatOne Plans
  • Product Guides
    • πŸ’¬Chat Models Settings
      • Use webapp
      • Get OpenAI API key
      • GPT-4 Access
      • Use Azure OpenAI
      • Use Poe
      • Use OpenRouter
      • Context length limit
    • πŸ€–Parameter Settings
      • Parameter settings
      • Suggested parameter combinations
    • ☁️Export / import data
    • πŸ’»Set Up System Message
      • Initial system instruction
      • Your profile
    • πŸ“”Chat Management
      • Organize chats
      • Share chats
    • πŸ“–Prompt library
    • 🎭AI Characters
    • πŸ“„Upload docs
    • πŸŽ™οΈVoice Input
    • πŸ‘„Text-to-speech
    • πŸ”Show AI Response on Search Page
    • πŸ“–Read/Summarize Web Page
    • πŸ“ΊYoutube Summarize
    • βœ–οΈTwitter (X) write assistant
    • πŸ‘½Reddit reply assistant
    • πŸ€–Custom Chatbots
      • OpenAI
      • Anyscale
      • Local LLM models
        • Ollama
        • Local AI
        • Xinference
      • Together.ai
      • OpenRouter
      • Mistral AI
  • Others
    • πŸ‘¨β€πŸ’»Manage License & Devices
    • ❔FAQs
    • 🌐Translation collaboration
    • πŸ›Troubleshooting
    • πŸ§‘β€πŸ€β€πŸ§‘Contact Us
    • πŸŽ‡Changelog
Powered by GitBook
On this page
  • Preparation​
  • Configuration
  • Set up environment variables for CORS

Was this helpful?

  1. Product Guides
  2. Custom Chatbots
  3. Local LLM models

Ollama

PreviousLocal LLM modelsNextLocal AI

Last updated 1 year ago

Was this helpful?

allows you to run open-source large language models, such as Llama 2, LLaVA, Mistral, Orca etc locally.

Preparation

Install Ollama and download models.

Configuration

We're using the gemma:2b model in this example.

API Key is required but ignored, so you can input any string.

Set up environment variables for CORS

Run the following commands so that Ollama allows connection from AIChatOne

launchctl setenv OLLAMA_HOST "0.0.0.0"
launchctl setenv OLLAMA_ORIGINS "*"

After that, you need to restart Ollama for the changes to take effect.

For more details:

πŸ€–
https://medium.com/dcoderai/how-to-handle-cors-settings-in-ollama-a-comprehensive-guide-ee2a5a1beef0
Ollama
​