719 api_key_str = self.mistral_api_key
720
721▶ # TODO: handle retries
722 base_url_str = (
723 self.endpoint
· · ·
737 verify=global_ssl_context,
738 )
739▶ # TODO: handle retries and max_concurrency
740 if not self.async_client:
741 self.async_client = httpx.AsyncClient(
· · ·
1195 )
1196 raise ValueError(msg)
1197▶ # TODO: Update to pass in tool name as tool_choice if/when Mistral supports
1198 # specifying a tool.
1199 llm = self.bind_tools(