omi icon indicating copy to clipboard operation
omi copied to clipboard

Custom Backend Server Support ✨

Open skywinder opened this issue 9 months ago • 4 comments

@neooriginal version almost works, so I just add extra checks and beautify and cleanup.

📝 Key Features • ✅ Add new backend servers: Users can expand their server list directly in the UI. • 🔄 Switch servers on the fly: Change the backend server without restarting or reloading the app. • 🗑️ Reset to original server: One-click reset to the default server configuration. • 🎨 Beautiful color-coded notifications: Instantly see which server you’re connected to, with clean and aesthetic notifications. • 🏆 Robust & reliable: All functionality is fully integrated and tested—works perfectly even under rapid switching.

🧩 Why it matters

This update makes Omi more flexible and developer-friendly

•	Added a ServerManager component handling:
•	server list storage
•	switching logic
•	reset-to-default logic
•	Integrated notification system with colored indicators
•	Updated settings UI to manage servers
•	Wrote unit tests for switching/reset logic
•	Verified smooth interoperability with existing backend API client

📸 Screenshots / Demo

https://github.com/user-attachments/assets/13a74bc0-98d0-489c-9f25-7c4554a94558

skywinder avatar May 11 '25 05:05 skywinder

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
omi ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 11, 2025 10:08pm

vercel[bot] avatar May 11 '25 05:05 vercel[bot]

@mdmohsin7 I meesed up with commits merge. so please check this PR. all fixed that you said. thanks!

skywinder avatar May 11 '25 05:05 skywinder

@mdmohsin7 all changes made in separate commits

skywinder avatar May 11 '25 05:05 skywinder

Any progress on this @beastoin ?

neooriginal avatar May 18 '25 06:05 neooriginal

Thanks to @noimnull (discord)

message.txt

neooriginal avatar May 25 '25 22:05 neooriginal

#2450

beastoin avatar May 26 '25 06:05 beastoin

---

just take a look at the PR not that good and, harmful but i love the idea of b2b @Mohsin feel free to make that idea happen 😉 PR: https://github.com/BasedHardware/omi/pull/2346 *harmful: https://github.com/BasedHardware/omi/pull/2346/files#diff-310e5af7dc1ec0dbdc4b692b0c0c227cb4938870d8021e63e26bee12f0b5abffL147-L173 *not that good: https://github.com/BasedHardware/omi/pull/2346/files#diff-e23a2c0d91cc3fef2f274de6039b1a3c56e71ef45a42e00aee0d4e1aba8aa6c8R6-R39 / and, i didnt see any configs related to firebase keys. how could the app perform the auth ?

--- @ThatAIguy does this PR work for you? make sure you try it.

also, i’ve already shared my thoughts on this PR with neo/skywinder and asked a team member to help with it.

sorry but currently i'm not focus on that one. hope you guys can make it happen! ah you guys might be interested in this one too https://github.com/BasedHardware/omi/issues/1249

beastoin avatar May 26 '25 06:05 beastoin

--- as a b2b user, who uses omi by the introduction of the great saleman Salman, i want to host an omi backend by myself, using my company hosting, all creds(google, firebase, deepgram, openai, etc) is ours not yours(omis), i dont fucking care about your creds since why does privacy matters if i am using yours?

as, yeah me again, the above b2b user, i want to use your(omis) mobile app, from appstore/google play, to connect to our backend, all features MUST work well, all requests/data MUST be sent to our backend not yours.

--- let me put some obviouslly instructions here.

beastoin avatar May 26 '25 06:05 beastoin

@mdmohsin7 please help with following up.

now, let me close the PR then you guys could reopen it once we have a implementation that works.

works? at least, https://github.com/BasedHardware/omi/pull/2346#issuecomment-2908633194

forgive me for the bad words, but guys, think deeper about the problem and solution before coding. coding is the most easy part.

beastoin avatar May 26 '25 06:05 beastoin