Giter Site home page Giter Site logo

[Request] 希望在设置菜单中的‘接口代理地址’那里增加一个开关,用来选择该代理地址是只用于自定义模型,还是所有模型都生效 about lobe-chat HOT 15 CLOSED

ccdanpian avatar ccdanpian commented on June 2, 2024 1
[Request] 希望在设置菜单中的‘接口代理地址’那里增加一个开关,用来选择该代理地址是只用于自定义模型,还是所有模型都生效

from lobe-chat.

Comments (15)

lobehubbot avatar lobehubbot commented on June 2, 2024

👀 @ccdanpian

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

from lobe-chat.

lobehubbot avatar lobehubbot commented on June 2, 2024

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


🥰 Description of requirements

Background: Currently, I use third-party proxy A for default deployment, and proxy A does not support claude-3. So I manually added proxy B (openrouter.ai) in the settings and claude-3 in the custom model.

Problems and requirements: I don’t want gpt3.5 and gpt4 models that are not manually written in the custom model to use proxy B. I hope they use the default proxy A.

🧐 Solution

Add a switch in the 'Interface proxy address' in the settings menu to select whether the proxy address is only used for custom models
image

📝 Supplementary information

No response

from lobe-chat.

arvinxx avatar arvinxx commented on June 2, 2024

这个需求感觉不太合理。你能自己搞一个oneapi 去做下游代理的整合吗?

from lobe-chat.

lobehubbot avatar lobehubbot commented on June 2, 2024

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


This demand seems unreasonable. Can you build your own oneapi to integrate downstream agents?

from lobe-chat.

ccdanpian avatar ccdanpian commented on June 2, 2024

对于我这样水平的用户来说太难太复杂了,还不如运行两个应用来的简单。

或者可以这样吗? 每家的api,可以支持第三方代理。比如说claude,也可以像chatgpt一样,在设置里或者环境变量里,配置第三方代理。

前两天在discussion里也说了这个需求。

from lobe-chat.

lobehubbot avatar lobehubbot commented on June 2, 2024

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


It's too difficult and complicated for users like me, it's not as simple as running two applications.

Or can it be like this? Each API can support third-party agents. For example, claude can also configure a third-party proxy in settings or environment variables like chatgpt.

from lobe-chat.

ccdanpian avatar ccdanpian commented on June 2, 2024

@arvinxx 我考虑了一下,其实只要是把openrouter单独加进来应该就可以了,openrouter可以支持绝大部分模型,还可以直接用上价格便宜的开源模型。

from lobe-chat.

lobehubbot avatar lobehubbot commented on June 2, 2024

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@arvinxx I thought about it. In fact, it should be enough to add openrouter separately. Openrouter can support most models, and you can also directly use cheap open source models.

from lobe-chat.

arvinxx avatar arvinxx commented on June 2, 2024

或者可以这样吗? 每家的api,可以支持第三方代理。比如说claude,也可以像chatgpt一样,在设置里或者环境变量里,配置第三方代理。

前两天在discussion里也说了这个需求。

这个问题我之前想过,主要的问题是可能不一定符合用户预期,比如假设我只是使用透明代理来使用 google ,和我使用oneapi 代理使用google ,这两种背后的调用模式是不一样的。

前者是直接走的lobechat 的转换逻辑,而后者是用的oneapi的转换逻辑。

from lobe-chat.

lobehubbot avatar lobehubbot commented on June 2, 2024

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Or can it be like this? Each API can support third-party agents. For example, claude can also configure a third-party proxy in settings or environment variables like chatgpt.

This requirement was also mentioned in the discussion two days ago.

I have thought about this problem before. The main problem is that it may not necessarily meet user expectations. For example, suppose I just use a transparent proxy to use Google, and I use oneapi proxy to use Google. The calling patterns behind the two are different.

The former uses lobechat's conversion logic directly, while the latter uses oneapi's conversion logic.

from lobe-chat.

ccdanpian avatar ccdanpian commented on June 2, 2024

大概能理解您的逻辑并且直接使用官方服务肯定效率上是最好的,不过对于大部分国内用户来说,很容易就会被封掉账户,所以还是希望lobechat能给提供一个好用又简洁elegant的解决方法。

from lobe-chat.

lobehubbot avatar lobehubbot commented on June 2, 2024

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I probably understand your logic and using the official service directly is definitely the best in terms of efficiency. However, for most domestic users, it is easy to have their accounts blocked, so I still hope that lobechat can provide an easy-to-use and simple elegant solution. solution.

from lobe-chat.

arvinxx avatar arvinxx commented on June 2, 2024

@ccdanpian OpenRouter 已经支持~

from lobe-chat.

lobehubbot avatar lobehubbot commented on June 2, 2024

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@ccdanpian OpenRouter already supports~

from lobe-chat.

lobehubbot avatar lobehubbot commented on June 2, 2024

@ccdanpian

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

from lobe-chat.

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.