Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(forge/llm): Create
BaseOpenAIProvider
-> deduplicate `Groq…
…Provider` & `OpenAIProvider` implementation (#7178) - Add `_BaseOpenAIProvider`, `BaseOpenAIChatProvider`, and `BaseOpenAIEmbeddingProvider`, which implement the shared functionality of OpenAI-like providers, e.g. `GroqProvider` and `OpenAIProvider` - (Re)move as much code as possible from `GroqProvider` and `OpenAIProvider` by rebasing them on `BaseOpenAI(Chat|Embedding)Provider` Also: - Rename `get_available_models()` to `get_available_chat_models()` on `BaseChatModelProvider` - Add `get_available_models()` to `BaseModelProvider` - Add `get_available_embedding_models()` to `BaseEmbeddingModelProvider` - Move common `fix_failed_parse_tries` config attribute into base `ModelProviderConfiguration`
- Loading branch information