Skip to content

Commit

Permalink
add CORS hint
Browse files Browse the repository at this point in the history
  • Loading branch information
do-me committed Mar 6, 2024
1 parent 5abe97b commit 167d069
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,8 @@ <h4>Ollama Chat Integration (New🔥)</h4>
<p>Enter a question to be answered and use the placeholders <b>SEARCH_RESULTS</b> or <b>FULL_TEXT</b> for context.<br> Install <a href="https://ollama.com/" target="_blank">Ollama</a> locally on macOS, Linux or Windows and connect your server (currently only default http://localhost:11434 supported).<br>
Make sure to set the environment variable so that requests from SemanticFinder are allowed:<br>
- on Windows Powershell: <code>$env:OLLAMA_ORIGINS="https://do-me.github.io"; ollama serve</code><br>
- on Ubuntu: <code>OLLAMA_ORIGINS="https://do-me.github.io" ollama serve</code></p>
- on Ubuntu: <code>OLLAMA_ORIGINS="https://do-me.github.io" ollama serve</code><br>
Due to <a href="https://github.com/ollama/ollama/issues/669" target="_blank">CORS issues</a> currently only working on Chromium-based browsers like Chrome and Edge.</p>
<div class="form-floating input-group mb-2">
<input id="ollama_chat_query" class="form-control"
value="Based on the following context, answer the question: What is this text about? Context: FULL_TEXT">
Expand Down

0 comments on commit 167d069

Please sign in to comment.