G4f python module + ottodev

Hi,

is it possible to make ottodev working with g4f module ! g4f api command give you a sever with OpenAI Like API ! but it doesn’t seem to work with ottodev ! it can’t parse models ! which is weird

anyone test it before ?

2 Likes

Did you manage to solve this problem? Debugging in the browser shows that the request to v1/models is successful and the list of models provides the g4f API, but oTToDev does not display this list.
I suspect that you need to think about how to add your model to the list of models. Or cross these two projects in order to use the power of the g4f resource without an API

image
For me it works like this, BUT not all models work correctly, some need authentication etc, don’t know how to do that, but something like this should work…

server.py:
from g4f.api import run_api

run_api()