docs: update docstring of Together class (#19008)

**Description:** Update docstring of Together class to show example and
update API URL
**Issue:** Improves usability
**Dependencies:** None
**Lint and test**: `make format`, `make lint` and `make test` were run
pull/19013/head
aditya thomas 2 months ago committed by GitHub
parent ef9813dae6
commit 80eb510a7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -24,7 +24,14 @@ class Together(LLM):
https://api.together.xyz/settings/api-keys. This can be passed in as init param
``together_api_key`` or set as environment variable ``TOGETHER_API_KEY``.
Together AI API reference: https://docs.together.ai/reference/inference
Together AI API reference: https://docs.together.ai/reference/completions
Example:
.. code-block:: python
from langchain_together import Together
model = Together(model_name="mistralai/Mixtral-8x7B-Instruct-v0.1")
"""
base_url: str = "https://api.together.xyz/inference"

Loading…
Cancel
Save