Update docs/advanced.md

This commit is contained in:
sweep-ai[bot] 2023-08-01 15:12:30 +00:00 committed by GitHub
parent fecde619fd
commit baaa5c487a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
```