Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat]: Expose local openai compatible http api #203

Open
btwiuse opened this issue Feb 8, 2025 · 3 comments
Open

[Feat]: Expose local openai compatible http api #203

btwiuse opened this issue Feb 8, 2025 · 3 comments
Labels
enhancement New feature or request

Comments

@btwiuse
Copy link

btwiuse commented Feb 8, 2025

Description
I want to use openai library to talk to local models hosted in pocketpal. Is it possible to start pocketpal as a daemon similar to ollama?

Use Case
Allow offline on device llm calling from other apps

@btwiuse btwiuse added the enhancement New feature or request label Feb 8, 2025
@WaelShaikh
Copy link

+1

This would be a nice use case.

@a-ghorbani
Copy link
Owner

Just to clarify, you want your phone to act as a server? Why not use Ollama, Llama.cpp, etc.? and how would you like to connect to this phone? from another phone? can you please elaborate regarding the use case?

@WaelShaikh
Copy link

Just to clarify, you want your phone to act as a server?

Yes

Why not use Ollama, Llama.cpp, etc.?

That would require users to setup termux and install (compile from source) the said apps since they are not available as standard Android apps, furthermore why use another llm backend for the server if it can all be done in one app. And since llama.rn is built on llama.cpp, I think it should have a built in server.

and how would you like to connect to this phone? from another phone?

From other apps on the same phone along with an option to expose it to other devices on the network would be nice.

can you please elaborate regarding the use case?

To use as a backend for other apps/services, such as a GPT powered keyboard, or for developers to build around and experiment with the API using their own apps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants