Comments (17)
Please follow the issue template to update title and description of your issue.
from chatgpt-next-web.
Additional Note
Note
This implement could significantly enhance performance not only for web-based applications, but also for desktop versions.
from chatgpt-next-web.
OneAPI doesnt support Google Gemini API definition, you can diectly config the enpoint in custom endpoint(GPT like). As for model providers, the progress will be tracked in issue #4030
from chatgpt-next-web.
OneAPI doesnt support Google Gemini API definition, you can diectly config the enpoint in custom endpoint(GPT like). As for model providers, the progress will be tracked in issue #4030
it's supported
I've been testing it running on kubernetes
with better configuration
(base) root@H0llyW00dzZ:/# kubectl top pods
NAME CPU(cores) MEMORY(bytes)
mysql-78mv3xmb37-hpmz5 5m 402Mi
one-api-j3laxb3o30-bz0gu 0m 46Mi
To be honest, I like the one-api
RESTful APIs because they are written in Go
, and they also utilize Gin
.
from chatgpt-next-web.
@H0llyW00dzZ Cool! The base url of gemini api should be able to configured via GOOGLE_URL
, have you encountered any issue while requesting with the variable?
from chatgpt-next-web.
@H0llyW00dzZ Cool! The base url of gemini api should be able to configured via
GOOGLE_URL
, have you encountered any issue while requesting with the variable?
no, but env variable GOOGLE_URL can't be used in desktop version
for example in this one:
also desktop version it much stable when using custom end point url, plus smoothly unlike web-based applications
from chatgpt-next-web.
The reason it can't be used in the desktop version is because it needs to be recompiled again into binaries.
from chatgpt-next-web.
also another reason, rust is so slow when compiling it
from chatgpt-next-web.
GOOGLE_URL
@H0llyW00dzZ Cool! The base url of gemini api should be able to configured via
GOOGLE_URL
, have you encountered any issue while requesting with the variable?no, but env variable GOOGLE_URL can't be used in desktop version
for example in this one:
also desktop version it much stable when using custom end point url, plus smoothly unlike web-based applications
They are same thing eventually, you can try switching the endpoint to one-api service
from chatgpt-next-web.
GOOGLE_URL
@H0llyW00dzZ Cool! The base url of gemini api should be able to configured via
GOOGLE_URL
, have you encountered any issue while requesting with the variable?no, but env variable GOOGLE_URL can't be used in desktop version
for example in this one:
also desktop version it much stable when using custom end point url, plus smoothly unlike web-based applicationsThey are same thing eventually, you can try switching the endpoint to one-api service
No, it doesn't work that way. When using the gemini-pro model, it utilizes Google as a service provider and it's mandatory to use this service.
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/blob/main/app/constant.ts#L14C1-L14C77
from chatgpt-next-web.
@H0llyW00dzZ When requesting gemini api server, the client will check whether the googleUrl is configured first. If not set, will fallback to the url you just mentioned.
from chatgpt-next-web.
Oh, for native clients, bypassing through a proxy service is still necessary. It might need to using a proxy service like /api/cors
api
from chatgpt-next-web.
@H0llyW00dzZ have you checked the developer console in development build, it much likely the requests being block by CORS right now.
from chatgpt-next-web.
@H0llyW00dzZ have you checked the developer console in development build, it much likely the requests being block by CORS right now.
no response
I am using one-api on k8s
from chatgpt-next-web.
when using service provider openai + model open ai it work, but gemini it doesn't work
from chatgpt-next-web.
in one-api it work while testing
from chatgpt-next-web.
also I am pretty sure because of this
from chatgpt-next-web.
Related Issues (20)
- [Bug] Mac OS版本不支持中文输入 HOT 2
- [Bug] Azure gpt4的api传过来的数据为什么是2021年的 HOT 8
- [Feature Request]: 能支持gpt-4-turbo-preview模型吗 HOT 4
- [Bug] gpt-4-vision-preview模型回答中断 HOT 7
- [Feature Request]: 希望支持http和不安全的https HOT 1
- [Bug] HOT 11
- [Bug] 桌面版本更新2.10.3+后历史记录全部消失 HOT 9
- 接口地址url两侧的空白字符不会自动去掉 HOT 2
- 提问后报错,是需要魔法吗? HOT 4
- [Bug] User settings get reset after chat sync
- [Feature Request]: docker部署可否支持 -V 把数据本地持久化,以防重新部署后聊天记录消失 HOT 4
- [Feature Request]: 同步自定义面具的问题 HOT 1
- [Bug] EDIT WINDOW ✏️ font size not affected by settings/font size HOT 7
- 各位大佬们,我该怎么修改我在vercel上的部署使得我可以使用中转接口,而不是官方的接口 HOT 6
- [Bug] 是否已經支援 Google Tag Manager (GTM) HOT 2
- [Feature Request]: 自定义各项配置 HOT 2
- [Bug] app/config/server.ts 是不是少定義了 GTM_ID?: string;
- [Bug] cannot link Ollama local serve HOT 12
- [Feature Request]: Claude3 support HOT 13
- [Bug] 添加自定义模型信息后报错 Uncaught (in promise) Error: Model chatglm3-6b not found in DEFAULT_MODELS array.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatgpt-next-web.