662 api_key_str = self.mistral_api_key
663
664▶ # TODO: handle retries
665 base_url_str = (
666 self.endpoint
· · ·
680 verify=global_ssl_context,
681 )
682▶ # TODO: handle retries and max_concurrency
683 if not self.async_client:
684 self.async_client = httpx.AsyncClient(
· · ·
1141 )
1142 raise ValueError(msg)
1143▶ # TODO: Update to pass in tool name as tool_choice if/when Mistral supports
1144 # specifying a tool.
1145 llm = self.bind_tools(