Git Product home page Git Product logo

Comments (2)

vc12345679 avatar vc12345679 commented on June 16, 2024 2

举例: extra_model_metadata 设置如下时

"extra_model_metadata": {
      "DeepSeek V2": {
            "model_name": "deepseek-chat",
            "description": "This is DeepSeek's powerful open source LLM.",
            "model_type": "OpenAIVision",
            "multimodal": false,
            "api_host": "https://api.deepseek.com",
            "api_key": "sk-xxxxxxxx",
            "token_limit": 4096,
            "system": "You are a helpful AI assistant.",
            "placeholder": {
                "logo": "https://avatars.githubusercontent.com/u/148330874",
            }
      },
},

OpenAIVision.py 里 __init__(), _get_response(), _single_query_at_once() 三个函数中的变量分别为

self.api_host				https://api.deepseek.com
self.chat_completion_url		https://api.deepseek.com/v1/chat/completions
self.images_completion_url		https://api.deepseek.com/v1/images/generations
self.openai_api_base			https://api.deepseek.com/v1
self.balance_api_url			https://api.deepseek.com/dashboard/billing/credit_grants
self.usage_api_url			https://api.deepseek.com/dashboard/billing/usage
shared.state.chat_completion_url	https://api.openai.com/v1/chat/completions
CHAT_COMPLETION_URL			https://api.openai.com/v1/chat/completions

requests.post() 时的 url 为 shared.state.chat_completion_url,应更正为 self.chat_completion_url #1125 。更正后运行正常

chat_DeepSeek-V2

from chuanhuchatgpt.

GaiZhenbiao avatar GaiZhenbiao commented on June 16, 2024

我看看

from chuanhuchatgpt.

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.