Giter Club home page Giter Club logo

Comments (4)

TroiiF avatar TroiiF commented on June 5, 2024 1

解决了,参考#1357

from one-api.

TroiiF avatar TroiiF commented on June 5, 2024

同遇到这个问题,应该是自定义渠道的问题,我的解决方法是将ollama和oneapi安装到同一台机器上(并且不能使用oneapi的镜像,必须本地部署……)。

Ollama不支持输入BaseURL这个还是比较致命的,除非Ollama和oneapi在同一台服务器(或镜像中)上才可用,同一台机器上使用docker启动也必须使用 http://host.docker.internal:11434 来配置,建议开放出来baseUrl的配置

from one-api.

RexWzh avatar RexWzh commented on June 5, 2024

同遇到这个问题,应该是自定义渠道的问题,我的解决方法是将ollama和oneapi安装到同一台机器上(并且不能使用oneapi的镜像,必须本地部署……)。

Ollama不支持输入BaseURL这个还是比较致命的,除非Ollama和oneapi在同一台服务器(或镜像中)上才可用,同一台机器上使用docker启动也必须使用 http://host.docker.internal:11434 来配置,建议开放出来baseUrl的配置

它的问题应该是调用 ollama 的 embedding 模型吧,当前还不支持。

ollama 的 embedding 模型只支持对单个字符串,而不是列表,当前也还没有兼容 v1/embeddings 的调用。


ADD:ollama 的更新进展

ollama/ollama#2925

from one-api.

madlbx avatar madlbx commented on June 5, 2024

解决了,参考#1357

稍后我整整,感谢感谢

from one-api.

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.