laravel
laravel copied to clipboard
Can we customize `OPENAI_BASE_URL`, just like we defined `OPENAI_API_KEY`?
cat .env
OPENAI_API_KEY=sk-rxxxx
OPENAI_ORGANIZATION=
OPENAI_REQUEST_TIMEOUT=30
OPENAI_BASE_URL=api.openai.com/v1
it would be great like that a local lm can be used
It would be great to have a way to do this more conveniently.
Currently need to use the factory method on the underlying PHP client https://github.com/openai-php/client?tab=readme-ov-file#services
I've opened a PR to allow an env configuration for base url - https://github.com/openai-php/laravel/pull/144