code: def __init__(
      self,
      base_url: str,
      chat_template: str,
      eos_token: str,
      host: Optional[str] = None,
  ):
      self.client = AsyncClientWrapper(
          base_url=base_url.rstrip("/"),
          headers={} if host is None else {"Host": host},
          timeout=60,
      )
      self.chat_template = jinja2.Template(chat_template)
      self.eos_token = eos_token
  
file_path: dstack/gateway/src/dstack/gateway/openai/clients/tgi.py
imports: import asyncio
  import datetime
  import json
  import uuid
  from typing import AsyncIterator, Dict, List, Optional
  import httpx
  import jinja2
  from dstack.gateway.errors import GatewayError
  from dstack.gateway.openai.clients import ChatCompletionsClient
  from dstack.gateway.openai.schemas import ChatCompletionsChoice, ChatCompletionsChunk, ChatCompletionsChunkChoice, ChatCompletionsRequest, ChatCompletionsResponse, ChatCompletionsUsage, ChatMessage, FinishReason
label_desc: Use image node_id 1 to create a new TGIChatCompletions object from inherited base classes: ChatCompletionsClient with example: obj = TGIChatCompletions(base_url, chat_template, eos_token, host)