class_docstr: Reference: https://docs.anthropic.com/claude/reference/complete_post
  
  to pass metadata to anthropic, it's {"user_id": "any-relevant-information"}
class_docstr_tok: ["Reference",":","https",":","\/\/docs.anthropic.com\/claude\/reference\/complete_post","to","pass","metadata","to","anthropic",",","it","'s","{","``","user_id","''",":","``","any-relevant-information","''","}"]
code: def __init__(
      self,
      max_tokens_to_sample: Optional[
          int
      ] = 256,  # anthropic requires a default
      stop_sequences: Optional[list] = None,
      temperature: Optional[int] = None,
      top_p: Optional[int] = None,
      top_k: Optional[int] = None,
      metadata: Optional[dict] = None,
  ) -> None:
      locals_ = locals()
      for key, value in locals_.items():
          if key != "self" and value is not None:
              setattr(self.__class__, key, value)
  
imports: import os, types
  import json
  from enum import Enum
  import requests
  import time
  from typing import Callable, Optional
  from litellm.utils import ModelResponse, Usage
  import litellm
  from .prompt_templates.factory import prompt_factory, custom_prompt
  import httpx
label_desc: Use image node_id 1 to create a new AnthropicConfig object  with example: obj = AnthropicConfig(max_tokens_to_sample, stop_sequences, temperature, top_p, top_k, metadata)