diff --git a/docs/my-website/docs/index.md b/docs/my-website/docs/index.md index 7f16fc1ac..ba5418aa4 100644 --- a/docs/my-website/docs/index.md +++ b/docs/my-website/docs/index.md @@ -3,7 +3,7 @@ displayed_sidebar: tutorialSidebar --- # Litellm -import QueryParamReader from '../src/components/queryParamReader.js' +import CrispChat from '../src/components/CrispChat.js' [![PyPI Version](https://img.shields.io/pypi/v/litellm.svg)](https://pypi.org/project/litellm/) [![PyPI Version](https://img.shields.io/badge/stable%20version-v0.1.345-blue?color=green&link=https://pypi.org/project/litellm/0.1.1/)](https://pypi.org/project/litellm/0.1.1/) diff --git a/docs/my-website/docs/providers/togetherai.md b/docs/my-website/docs/providers/togetherai.md index 99b17c317..bfb659a91 100644 --- a/docs/my-website/docs/providers/togetherai.md +++ b/docs/my-website/docs/providers/togetherai.md @@ -8,6 +8,19 @@ import os os.environ["TOGETHERAI_API_KEY"] = "" ``` +### Sample Usage + +```python +from litellm import completion + +# set env variable +os.environ["TOGETHERAI_API_KEY"] = "" + +messages = [{"role": "user", "content": "Write me a poem about the blue sky"}] + +completion(model="togethercomputer/Llama-2-7B-32K-Instruct", messages=messages, custom_llm_provider="together_ai") +``` + ### Together AI Models liteLLM supports `non-streaming` and `streaming` requests to all models on https://api.together.xyz/ diff --git a/docs/my-website/src/components/CrispChat.js b/docs/my-website/src/components/CrispChat.js new file mode 100644 index 000000000..71b543cc7 --- /dev/null +++ b/docs/my-website/src/components/CrispChat.js @@ -0,0 +1,18 @@ +import React, { useEffect } from 'react'; + +const CrispChat = () => { + useEffect(() => { + window.$crisp = []; + window.CRISP_WEBSITE_ID = "be07a4d6-dba0-4df7-961d-9302c86b7ebc"; + + const d = document; + const s = d.createElement("script"); + s.src = "https://client.crisp.chat/l.js"; + s.async = 1; + document.getElementsByTagName("head")[0].appendChild(s); + }, []) + + return null; +}; + +export default CrispChat; \ No newline at end of file