AnyscaleLLM¶
Anyscale LLM implementation running the async API client of OpenAI.
Attributes¶
- 
model: the model name to use for the LLM, e.g., google/gemma-7b-it. See the supported models under the "Text Generation -> Supported Models" section here.
- 
base_url: the base URL to use for the Anyscale API requests. Defaults to None, which means that the value set for the environment variableANYSCALE_BASE_URLwill be used, or "https://api.endpoints.anyscale.com/v1" if not set.
- 
api_key: the API key to authenticate the requests to the Anyscale API. Defaults to Nonewhich means that the value set for the environment variableANYSCALE_API_KEYwill be used, orNoneif not set.
- 
_api_key_env_var: the name of the environment variable to use for the API key. It is meant to be used internally.