add note about use of together.AsyncTogether for model listing

This commit is contained in:
Matthew Farrellee 2025-09-16 14:24:01 -04:00
parent 1e5c84e99c
commit c9c402e418

View file

@ -261,6 +261,7 @@ class TogetherInferenceAdapter(OpenAIMixin, ModelRegistryHelper, Inference, Need
async def list_models(self) -> list[Model] | None: async def list_models(self) -> list[Model] | None:
self._model_cache = {} self._model_cache = {}
# Together's /v1/models is not compatible with OpenAI's /v1/models. Together support ticket #13355 -> will not fix, use Together's own client
for m in await self._get_client().models.list(): for m in await self._get_client().models.list():
if m.type == "embedding": if m.type == "embedding":
if m.id not in EMBEDDING_MODEL_ENTRIES: if m.id not in EMBEDDING_MODEL_ENTRIES: