patrikzudel / PatrikZeros-ChatGPT-API-UI

Static webpage that allows you to use your OpenAI API key for the same experience as you get with ChatGPT!
https://chat.patrikzudel.me
GNU General Public License v3.0
507 stars 98 forks source link

Can this work on a shared hosting? #32

Open sysads opened 1 year ago

Brugman commented 4 months ago

Yes.

sysads commented 4 months ago

I know its about a year now but thanks for the reply. If so, how do I install it on shared hosting?

sysads commented 4 months ago

I unzipped the file into my hosting but its showing blank screen with following console error:

Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "application/octet-stream". Strict MIME type checking is enforced for module scripts per HTML spec.

Brugman commented 4 months ago

Unzip the release or repo locally, run npm i and npm run build, then upload the contents of the dist folder to your host.

sysads commented 4 months ago

G:\Downloads\chatgpt-app>npm run build

patriks-chatgpt-implementation@0.0.0 build vite build

vite v4.5.3 building for production... transforming (1) index.htmlBrowserslist: caniuse-lite is outdated. Please run: npx update-browserslist-db@latest Why you should do it regularly: https://github.com/browserslist/update-db#readme ✓ 119 modules transformed. 19:22:00 [vite-plugin-svelte] dom compile done. package files time avg patriks-chatgpt-implementation 34 1.58s 46.4ms ✓ built in 25.64s "Configuration" is not exported by "node_modules/openai/index.mjs", imported by "src/App.svelte". file: G:/Downloads/chatgpt-app/src/App.svelte:2:11 1: Githubissues.

  • Githubissues is a development platform for aggregating issues.