You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a growing number of different API providers: OpenAI, Azure, Cloudflare Getaway. At the same time other tools keep adding their OpenAI-compatible APIs (e.g. Ollama).
Considering #693, here's a sketch of how we can add new API providers painlessly:
typeapiProviderinterface { // might want to expose thatSetAuthForRequest(req*http.Request)
GetFullURL(suffixstring, args...any) // Shouldn't be `any`, but a type-safe list like requestOption
}
typeAPIProviderConfiginterface {
// whatever we need here
}
We have a growing number of different API providers: OpenAI, Azure, Cloudflare Getaway. At the same time other tools keep adding their OpenAI-compatible APIs (e.g. Ollama).
Considering #693, here's a sketch of how we can add new API providers painlessly:
client usage:
The text was updated successfully, but these errors were encountered: