lobe-chat icon indicating copy to clipboard operation
lobe-chat copied to clipboard

[Request] 添加openrouter api 的支持

Open firsteyev opened this issue 1 year ago • 12 comments

🥰 需求描述

openrouter 上有很多免费或低价的model,我直接在lobe-chat用openrouter 的api时, image

lobe-chat会同时发送两个request,一个给chatgpt 3.5 turbo,另一个发送我自定义的model.
image

🧐 解决方案

请添加 openrouter 的支持,避免使用自选模型时同时发送chatgpt 3.5 turbo的请求

📝 补充信息

No response

firsteyev avatar Jan 24 '24 14:01 firsteyev

👀 @firsteyev

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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

lobehubbot avatar Jan 24 '24 14:01 lobehubbot

同时发送chatgpt 3.5 turbo的请求

这个是自动做标题总结这些使用的调用。后续可以开个配置让用户来选吧

arvinxx avatar Jan 24 '24 14:01 arvinxx

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


Send chatgpt 3.5 turbo request at the same time

This is a call that automatically makes a title summarizing these uses. Later, you can open a configuration for users to choose.

lobehubbot avatar Jan 24 '24 14:01 lobehubbot

https://github.com/lobehub/lobe-chat/wiki/Environment-Variable.zh-CN#custom_models 可以用这个重新映射一下 GPT-3.5 Turbo 模型

mushan0x0 avatar Jan 25 '24 03:01 mushan0x0

https://github.com/lobehub/lobe-chat/wiki/Environment-Variable.zh-CN#custom_models 可以用这个重新映射一下 GPT-3.5 Turbo 模型 image

我去掉了所有其它模型,只留了两个自选模型,但是lobe-chat仍然通过openrouter同时发给gpt3.5 turbo 一个request。 image

firsteyev avatar Jan 25 '24 04:01 firsteyev

我明白了,大概是开启对话后,虽然对话可以使用自定义模型,但是lobe-chat默认使用 Gpt3.5 turbo 去总结对话的 标题,因此会发送一个gpt3.5 turbo 的request,而这个功能的模型名称不随用户的选择更改。

firsteyev avatar Jan 26 '24 08:01 firsteyev

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


I understand, probably after opening the conversation, although the conversation can use a custom model, lobe-chat uses Gpt3.5 turbo by default to summarize the title of the conversation, so a gpt3.5 turbo request will be sent, and there is no way to do this function. Use a custom model instead.

lobehubbot avatar Jan 26 '24 08:01 lobehubbot

我明白了,大概是开启对话后,虽然对话可以使用自定义模型,但是lobe-chat默认使用 Gpt3.5 turbo 去总结对话的 标题,因此会发送一个gpt3.5 turbo 的request,而这个功能的模型名称不随用户的选择更改。

对。

arvinxx avatar Jan 26 '24 09:01 arvinxx

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


I understand, probably after opening the conversation, although the conversation can use a custom model, lobe-chat uses Gpt3.5 turbo by default to summarize the title of the conversation, so a gpt3.5 turbo request will be sent, and this function The model name does not change with user selections.

right.

lobehubbot avatar Jan 26 '24 09:01 lobehubbot

如果能选择总结对话标题时使用哪个模型就更好了。

ShanySky avatar Feb 04 '24 06:02 ShanySky

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


It would be nice if you could choose which model to use when summarizing conversation titles.

lobehubbot avatar Feb 04 '24 06:02 lobehubbot

@ShanySky 会支持的

arvinxx avatar Feb 04 '24 07:02 arvinxx

✅ @firsteyev

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

lobehubbot avatar Mar 16 '24 13:03 lobehubbot

:tada: This issue has been resolved in version 0.139.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

lobehubbot avatar Mar 16 '24 13:03 lobehubbot