From baaa5c487a704eb887be902b54d24c11d218a4f4 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Tue, 1 Aug 2023 15:12:30 +0000 Subject: [PATCH] Update docs/advanced.md --- docs/advanced.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/advanced.md b/docs/advanced.md index fe01531fc..c4e695744 100644 --- a/docs/advanced.md +++ b/docs/advanced.md @@ -40,3 +40,11 @@ os.environ['SENTRY_API_URL'] = "your-sentry-api-url" os.environ['POSTHOG_API_KEY'] = "your-posthog-api-key" os.environ['POSTHOG_API_URL'] = "your-posthog-api-url" ``` + +### Calling Embeddings without the Client +If you prefer not to use the `litellm_client`, you can call embeddings directly from the `litellm` module. Here is an example of how to do this: + +```python +from litellm import embedding +response = embedding(model="gpt-3.5-turbo", input=messages) +```