Giter Site home page Giter Site logo

Allow Server Endpoint changes about ollama-ui HOT 3 OPEN

ollama-ui avatar ollama-ui commented on September 28, 2024
Allow Server Endpoint changes

from ollama-ui.

Comments (3)

rtcfirefly avatar rtcfirefly commented on September 28, 2024 2

Hi @spanjeta, I've just got a github pages instance working (avoiding the need to install the extension).

Looks like it would be possible to change the endpoint, but it would need to be a https endpoint.

Using localhost:

fetch("http://localhost:11434/api/tags").then(a=>a.text()).then(c => console.log(c))
Promise { <state>: "pending" }

{"models":[{"name":"llama2:latest","modified_at":"2023-08-02T15:44:14.222315301-07:00","size":3791730596,"digest":"a808fc133004f8d2734988e4a2b8e2a0e16bc8f4db379e1ef4136ac4a7989ace"},{"name":"wizard-vicuna:latest","modified_at":"2023-08-03T10:11:52.70884438-07:00","size":7323305345,"digest":"6399408937fb567150661535317961a08242c61afd04a47a4e165598bf4ba9f1"}]} debugger eval code:1:78

Not using localhost:

fetch("http://192.168.86.45:11434/api/tags").then(a=>a.text()).then(c => console.log(c))
Blocked loading mixed active content “http://192.168.86.45:11434/api/tags”
debugger eval code:1:5
Promise { <state>: "rejected", <reason>: TypeError }

Uncaught (in promise) TypeError: NetworkError when attempting to fetch resource.
    <anonymous> debugger eval code:1
debugger eval code:1:6

from ollama-ui.

rtcfirefly avatar rtcfirefly commented on September 28, 2024

Hi!

I like the idea, but it would mean changing the extension manifest (adding a wildcard domain).

  "host_permissions": [
-    "http://localhost:11434/*"
+    "http://*/*"
  ],

I'm not sure this would pass the chromium app store review, but happy to try if you like.

What's your use case out of interest?

from ollama-ui.

spanjeta avatar spanjeta commented on September 28, 2024

I want to connect with ollama instance running on VPS or external server . Also make compatible extension for thunderbird and firefox.

from ollama-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.