ItzCrazyKns / Perplexica

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

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

Open gptkong opened 2 months ago

gptkong commented 2 months 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 1 month ago

thanks

qinchihongye commented 1 month ago

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

gptkong commented 1 month ago

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

config.toml是否增加如下配置

[API_KEYS]
ONEAPI="sk-xxxxxxx"

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

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