ItzCrazyKns / Perplexica

Perplexica is an AI-powered search engine. It is an Open source alternative to Perplexity AI
MIT License
14.26k stars 1.37k forks source link

Adapt Perplexica to the model services provided by one-api #367

Open gptkong opened 1 month ago

gptkong commented 1 month ago

Is your feature request related to a problem? Please describe. Add configuration items for one-api in config.toml, and add one-api's Provider in the backend service.

Describe the solution you'd like Added oneapi Provider to provide support for backend services.

Describe alternatives you've considered Although you can configure the baseurl/model-name/key of third-party interfaces in the page settings, it is cumbersome and not convenient to share with friends.

Additional context

add one-api

Self-implemented source code

qinchihongye commented 2 weeks ago

thanks

qinchihongye commented 2 weeks ago

image 我将您改动后的git 下来了,启动了后发现还是没有 oneapi 的选项哎,请问还需要改什么地方吗,

gptkong commented 2 weeks ago

image 我将您改动后的git 下来了,启动了后发现还是没有 oneapi 的选项哎,请问还需要改什么地方吗,

config.toml是否增加如下配置

[API_KEYS]
ONEAPI="sk-xxxxxxx"

[API_ENDPOINTS]
ONEAPI=""
qinchihongye commented 1 week ago

配置了哦,但是首次进去,我的前端界面刷新出来,没有这个 Oneapi 的选项,我进 docker中看,配置文件中是有这两个 oneapi的,但是一旦我在前端页面配置项中点击保存的话,再去看配置文件中,这两个 oneapi 就消失了,清除浏览器信息也不行,就是出不来oneapi 选项。。。