model_client#
Submodules#
- anthropic_client
- bedrock_client
- cohere_client
- google_client
- groq_client
- ollama_client
- openai_client
get_first_message_content()
parse_stream_response()
handle_streaming_response()
get_all_messages_content()
get_probabilities()
OpenAIClient
OpenAIClient.init_sync_client()
OpenAIClient.init_async_client()
OpenAIClient.parse_chat_completion()
OpenAIClient.track_completion_usage()
OpenAIClient.parse_embedding_response()
OpenAIClient.convert_inputs_to_api_kwargs()
OpenAIClient.call()
OpenAIClient.acall()
OpenAIClient.from_dict()
OpenAIClient.to_dict()
- transformers_client
average_pool()
TransformerEmbedder
get_device()
clean_device_cache()
TransformerReranker
TransformerLLM
TransformersClient
TransformersClient.support_models
TransformersClient.init_sync_client()
TransformersClient.init_reranker_client()
TransformersClient.init_llm_client()
TransformersClient.set_llm_client()
TransformersClient.parse_embedding_response()
TransformersClient.parse_chat_completion()
TransformersClient.call()
TransformersClient.convert_inputs_to_api_kwargs()
- utils
We let users install the required SDKs conditionally for our integrated model providers.