TogetherLLMConfigEntry autogen.oai.together.TogetherLLMConfigEntry # Bases: LLMConfigEntry api_type class-attribute instance-attribute # api_type = 'together' max_tokens class-attribute instance-attribute # max_tokens = Field(default=512, ge=0) stream class-attribute instance-attribute # stream = False temperature class-attribute instance-attribute # temperature = Field(default=None) top_p class-attribute instance-attribute # top_p = Field(default=None) top_k class-attribute instance-attribute # top_k = Field(default=None) repetition_penalty class-attribute instance-attribute # repetition_penalty = Field(default=None) presence_penalty class-attribute instance-attribute # presence_penalty = Field(default=None, ge=-2, le=2) frequency_penalty class-attribute instance-attribute # frequency_penalty = Field(default=None, ge=-2, le=2) min_p class-attribute instance-attribute # min_p = Field(default=None, ge=0, le=1) safety_model class-attribute instance-attribute # safety_model = None hide_tools class-attribute instance-attribute # hide_tools = 'never' price class-attribute instance-attribute # price = Field(default=None, min_length=2, max_length=2) tool_choice class-attribute instance-attribute # tool_choice = None model class-attribute instance-attribute # model = Field(..., min_length=1) api_key class-attribute instance-attribute # api_key = None api_version class-attribute instance-attribute # api_version = None base_url class-attribute instance-attribute # base_url = None voice class-attribute instance-attribute # voice = None model_client_cls class-attribute instance-attribute # model_client_cls = None http_client class-attribute instance-attribute # http_client = None response_format class-attribute instance-attribute # response_format = None default_headers class-attribute instance-attribute # default_headers = None tags class-attribute instance-attribute # tags = Field(default_factory=list) model_config class-attribute instance-attribute # model_config = ConfigDict(extra='forbid', arbitrary_types_allowed=True) create_client # create_client() Source code in autogen/oai/together.py 68 69def create_client(self): raise NotImplementedError("TogetherLLMConfigEntry.create_client is not implemented.") check_base_url classmethod # check_base_url(v, info) Source code in autogen/llm_config.py 299 300 301 302 303 304@field_validator("base_url", mode="before") @classmethod def check_base_url(cls, v: Any, info: ValidationInfo) -> Any: if not str(v).startswith("https://") and not str(v).startswith("http://"): v = f"http://{str(v)}" return v serialize_base_url # serialize_base_url(v) Source code in autogen/llm_config.py 306 307 308@field_serializer("base_url") def serialize_base_url(self, v: Any) -> Any: return str(v) serialize_api_key # serialize_api_key(v) Source code in autogen/llm_config.py 310 311 312@field_serializer("api_key", when_used="unless-none") def serialize_api_key(self, v: SecretStr) -> Any: return v.get_secret_value() model_dump # model_dump(*args, exclude_none=True, **kwargs) Source code in autogen/llm_config.py 314 315def model_dump(self, *args: Any, exclude_none: bool = True, **kwargs: Any) -> dict[str, Any]: return BaseModel.model_dump(self, exclude_none=exclude_none, *args, **kwargs) model_dump_json # model_dump_json(*args, exclude_none=True, **kwargs) Source code in autogen/llm_config.py 317 318def model_dump_json(self, *args: Any, exclude_none: bool = True, **kwargs: Any) -> str: return BaseModel.model_dump_json(self, exclude_none=exclude_none, *args, **kwargs) get # get(key, default=None) Source code in autogen/llm_config.py 320 321 322 323 324def get(self, key: str, default: Optional[Any] = None) -> Any: val = getattr(self, key, default) if isinstance(val, SecretStr): return val.get_secret_value() return val items # items() Source code in autogen/llm_config.py 341 342 343def items(self) -> Iterable[tuple[str, Any]]: d = self.model_dump() return d.items() keys # keys() Source code in autogen/llm_config.py 345 346 347def keys(self) -> Iterable[str]: d = self.model_dump() return d.keys() values # values() Source code in autogen/llm_config.py 349 350 351def values(self) -> Iterable[Any]: d = self.model_dump() return d.values()