Android Question AI Integration

luke2012

Well-Known Member
Licensed User
Longtime User
Hi everyone,
I’d like to preface this by saying that I have never worked on app development involving interaction with LLM models before. I was wondering if there are any tutorials or example projects related to integrating apps with generative AI that you could recommend as a reference.

Thanks in advance for your suggestions!
 

asales

Expert
Licensed User
Longtime User
I'm using the OpenAI API in my apps and there are several libs and classes in the forum to this, but if you using the key in a app you need to check this information from Open AI:
"Never deploy your key in client-side environments like browsers or mobile apps."

When I started I get my key deleted due this problem: several apps using the same key.

Now I'm connect my apps in a PHP in my site to connect to OpenAI API and get the response to fit the rule:
"Requests should always be routed through your own backend server where you can keep your API key secure."

I'm using the same approach to the Gemini API.
 
Upvote 0
Top