Skip to content

Commit

Permalink
Help panel should have chrome extension specific instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdjohnson committed Nov 9, 2024
1 parent 8fedca9 commit 267a79d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/features/settings/panels/HelpPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ import { observer } from 'mobx-react-lite'

import CopyButton from '~/components/CopyButton'

const OLLAMA_CODE = 'OLLAMA_ORIGINS=https://mrdjohnson.github.io ollama serve'
const POWERSHELL_OLLAMA_CODE = '$env:OLLAMA_ORIGINS="https://mrdjohnson.github.io"; ollama serve'
const ORIGIN = __TARGET__ === 'chrome'? 'chrome-extension://iodcdhcpahifeligoegcmcdibdkffclk' : 'https://mrdjohnson.github.io'

const OLLAMA_CODE = `OLLAMA_ORIGINS=${ORIGIN} ollama serve`
const POWERSHELL_OLLAMA_CODE = `$env:OLLAMA_ORIGINS="${ORIGIN}"; ollama serve`
const A1111_CODE = './webui.sh --api --listen --cors-allow-origins "*"'
const LMS_CODE = 'lms server start --cors=true'

Expand Down

0 comments on commit 267a79d

Please sign in to comment.