Skip to content

add openrouter to eligible ai providers - #216

Open
rallisf1 wants to merge 1 commit into
trypostit:mainfrom
rallisf1:fix/openrouter
Open

add openrouter to eligible ai providers#216
rallisf1 wants to merge 1 commit into
trypostit:mainfrom
rallisf1:fix/openrouter

Conversation

@rallisf1

Copy link
Copy Markdown
Contributor

I don't get why you need this block of code everywhere, but I needed a quick fix to use openrouter, so here you go.

IMHO The best fix would be to get rid of this code block in all files and do a sanity check on config('ai.default') during bootstrap and show a proper warning if no/wrong provider is set.

@paulocastellano

Copy link
Copy Markdown
Contributor

@rallisf1 i think on new version of laravel/ai it's supporting open router.

Have you checked it ?

@rallisf1

Copy link
Copy Markdown
Contributor Author

You are right, I only checked v13 which is the stable. On the master branch they dropped all OpenAI compatible providers and say to use OPENAI_BASE_URL for them with OPENAI_API_KEY.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants