class_docstr: Client for the models where we evaluate offline. Since the queries are handled offline, the `TogetherClient` just
  checks if the request/result is cached. We return the result if it's in the cache. Otherwise, we return an error.
class_docstr_tok: ["Client","for","the","models","where","we","evaluate","offline",".","Since","the","queries","are","handled","offline",",","the","`","TogetherClient","`","just","checks","if","the","request\/result","is","cached",".","We","return","the","result","if","it","'s","in","the","cache",".","Otherwise",",","we","return","an","error","."]
code: def __init__(
      self, cache_config: CacheConfig, api_key: Optional[str] = None
  ):
      # TODO: the endpoint currently doesn't require an API key. When an API key is not specified
      #       in credentials.conf, we rely on offline evaluation only.
      self.api_key: Optional[str] = api_key
      self.cache = Cache(cache_config)
  
file_path: H2O/h2o_hf/helm/src/helm/proxy/clients/together_client.py
imports: from typing import List, Dict, Any, Optional, Union
  import requests
  from helm.common.cache import Cache, CacheConfig
  from helm.common.request import Request, RequestResult, Sequence, Token
  from helm.common.tokenization_request import TokenizationRequest, TokenizationRequestResult, DecodeRequest, DecodeRequestResult
  from .client import Client, wrap_request_time, truncate_sequence
label_desc: Use image node_id 2 to create a new TogetherClient object from inherited base classes: Client with example: obj = TogetherClient(cache_config, api_key)