Smart connections not working with the smart chat
lisaB2024 opened this issue · comments
Hi,
I am getting an error when trying to use the smart chat. It tells me to"API Error. See console logs for details."
I have my open AI key in fine and it says it's valid. I also have money on the account and its working in my other AI tools.
This is a screen shot of the console. Can someone please help me work out how to fix this :). I'm not a techie so I'll need the for dummies version of explanations if possible!
![Screenshot 2024-05-14 at 1 16 15 pm](https://private-user-images.githubusercontent.com/169740804/330265901-f0cf7baa-23db-4df8-9ac9-899da1f6b5a5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1NDgzMDQsIm5iZiI6MTcyMDU0ODAwNCwicGF0aCI6Ii8xNjk3NDA4MDQvMzMwMjY1OTAxLWYwY2Y3YmFhLTIzZGItNGRmOC05YWM5LTg5OWRhMWY2YjVhNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcwOVQxODAwMDRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iNjZiM2JkOTVmNDdhOTIwMjI0YWYxY2ViODgyZmM2ZWJhNDI3N2RjMzQwY2MzY2MxNmM1ZWZkMWY4NjllYzlkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.VH1a2xLWIyeGNISCbpm1ioofTMZEBbnJoR1seNYrN1Y)
![Screenshot 2024-05-14 at 1 17 21 pm](https://private-user-images.githubusercontent.com/169740804/330266098-e490bee8-04c5-4290-a0c5-054edba47bd8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1NDgzMDQsIm5iZiI6MTcyMDU0ODAwNCwicGF0aCI6Ii8xNjk3NDA4MDQvMzMwMjY2MDk4LWU0OTBiZWU4LTA0YzUtNDI5MC1hMGM1LTA1NGVkYmE0N2JkOC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcwOVQxODAwMDRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lMjhhNmZmY2YxZWViYThmNjhhYmQ5ZmYyNDcxY2M0NmViNzI5NzE0M2I4ZTI3MWU3M2U4ZThhOThiODI2ZjIyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.YFxl8GzjuBFYT4QCujxlBImG172Th2_HUBwEkobsyXw)
Not only openai, google have the same 400 request. Restart the obsidian may solve it for a moment, but the error will occured soon.
Not only openai, google have the same 400 request. Restart the obsidian may solve it for a moment, but the error will occured soon.
Thanks for the reply. :)
So this is not something i am doing but something for the plugin to resolve?
Cheers
Lisa
不只是openai,google也有同样的400请求。重启黑曜石可能会暂时解决,但很快就会出现错误。
谢谢回复。 :)
所以这不是我正在做的事情而是插件需要解决的事情?
干杯 丽莎
400 errors are usually caused by regional restrictions. Both Google Gemini and Open AI have their own regional restrictions, and if you are restricted, you need to use a proxy.
However, Obsidian itself does not have a proxy function, and even using Clash's TUN mode cannot solve this problem. If you use a third-party proxy, it may solve the problem.
I encountered a similar problem when using the Copilot plugin, but the problem was solved when I used a third-party proxy for the Open AI custom API.
In addition, ChatBox can use Google Gemini normally under Clash's TUN mode.