mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-15 07:36:08 +00:00
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
This commit is contained in:
parent
ef9813dae6
commit
80eb510a7b
@ -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…
Reference in New Issue
Block a user