Skip to content

Conversation

@Guikingone
Copy link
Contributor

@Guikingone Guikingone commented Dec 12, 2025

Q A
Bug fix? no
New feature? yes
Docs? yes
Issues Discussed with @TimoBakx on Slack
License MIT

This platform was a POC that I launched a few weeks ago locally (mostly for Ollama and OpenAI as a backup in a context of another POC -more on the other one if I find time to finish the tests-), not totally convinced by the current implementation but debates can lead to improvements so here it is 😅

PS: No configuration for now as the options.php must be improved on my side to handle the platforms.

@Guikingone Guikingone changed the title [Platform] Add Failover platform [Platform] Add FailoverPlatform Dec 12, 2025
@Guikingone Guikingone force-pushed the platform/fallback branch 5 times, most recently from 03b2077 to 2216da4 Compare December 15, 2025 18:48
@Guikingone Guikingone marked this pull request as ready for review December 15, 2025 18:50
@carsonbot carsonbot added Feature New feature Platform Issues & PRs about the AI Platform component Status: Needs Review labels Dec 15, 2025
@Guikingone
Copy link
Contributor Author

Well, that's a weird one, no changes on my side and the class is not found by the bundle, what the funk is this behavior? 🤔

@OskarStark
Copy link
Contributor

Please rebase

*/
public function __construct(
private readonly iterable $platforms,
private readonly ClockInterface $clock = new MonotonicClock(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not using the rate limiter component here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because I thought Clock would be easier but it's quite the opposite 😅

I'll take a look at using the rate limiter 👍🏻

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

Labels

Feature New feature Platform Issues & PRs about the AI Platform component Status: Needs Review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants