forked from phoenix/litellm-mirror
Update README.md
This commit is contained in:
parent
7ea471b529
commit
256a0fa110
1 changed files with 12 additions and 10 deletions
22
README.md
22
README.md
|
@ -38,8 +38,8 @@ LiteLLM manages
|
||||||
- Translating inputs to the provider's completion and embedding endpoints
|
- Translating inputs to the provider's completion and embedding endpoints
|
||||||
- Guarantees [consistent output](https://litellm.readthedocs.io/en/latest/output/), text responses will always be available at `['choices'][0]['message']['content']`
|
- Guarantees [consistent output](https://litellm.readthedocs.io/en/latest/output/), text responses will always be available at `['choices'][0]['message']['content']`
|
||||||
- Exception mapping - common exceptions across providers are mapped to the [OpenAI exception types](https://help.openai.com/en/articles/6897213-openai-library-error-types-guidance)
|
- Exception mapping - common exceptions across providers are mapped to the [OpenAI exception types](https://help.openai.com/en/articles/6897213-openai-library-error-types-guidance)
|
||||||
# Usage
|
# usage
|
||||||
## Quick Start
|
|
||||||
<a target="_blank" href="https://colab.research.google.com/github/https://colab.research.google.com/drive/1y2ChqxJOwEByThibxYMEpY5P6_RTNjj4?usp=sharing">
|
<a target="_blank" href="https://colab.research.google.com/github/https://colab.research.google.com/drive/1y2ChqxJOwEByThibxYMEpY5P6_RTNjj4?usp=sharing">
|
||||||
<img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/>
|
<img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/>
|
||||||
</a>
|
</a>
|
||||||
|
@ -64,18 +64,20 @@ response = completion(model="gpt-3.5-turbo", messages=messages)
|
||||||
# cohere call
|
# cohere call
|
||||||
response = completion(model="command-nightly", messages)
|
response = completion(model="command-nightly", messages)
|
||||||
```
|
```
|
||||||
All LiteLLM users get a LiteLLM Dashboard - View logs + Add new LLMs on the dashboard
|
|
||||||
|
|
||||||
<a href="https://docs.litellm.ai/docs/debugging/hosted_debugging" target="_blank">Tutorial</a>
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
Stable version
|
Stable version
|
||||||
```
|
```
|
||||||
pip install litellm==0.1.424
|
pip install litellm==0.1.424
|
||||||
```
|
```
|
||||||
|
|
||||||
## Streaming Queries
|
|
||||||
|
# debugging
|
||||||
|
Debugging Dashboard 👉 https://docs.litellm.ai/docs/debugging/hosted_debugging
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
|
## streaming
|
||||||
liteLLM supports streaming the model response back, pass `stream=True` to get a streaming iterator in response.
|
liteLLM supports streaming the model response back, pass `stream=True` to get a streaming iterator in response.
|
||||||
Streaming is supported for OpenAI, Azure, Anthropic, Huggingface models
|
Streaming is supported for OpenAI, Azure, Anthropic, Huggingface models
|
||||||
```python
|
```python
|
||||||
|
@ -89,8 +91,8 @@ for chunk in result:
|
||||||
print(chunk['choices'][0]['delta'])
|
print(chunk['choices'][0]['delta'])
|
||||||
```
|
```
|
||||||
|
|
||||||
# Support / talk with founders
|
# support / talk with founders
|
||||||
- [Our calendar 👋](https://calendly.com/d/4mp-gd3-k5k/berriai-1-1-onboarding-litellm-hosted-version)
|
- [Schedule Demo 👋](https://calendly.com/d/4mp-gd3-k5k/berriai-1-1-onboarding-litellm-hosted-version)
|
||||||
- [Community Discord 💭](https://discord.gg/wuPM9dRgDw)
|
- [Community Discord 💭](https://discord.gg/wuPM9dRgDw)
|
||||||
- Our numbers 📞 +1 (770) 8783-106 / +1 (412) 618-6238
|
- Our numbers 📞 +1 (770) 8783-106 / +1 (412) 618-6238
|
||||||
- Our emails ✉️ ishaan@berri.ai / krrish@berri.ai
|
- Our emails ✉️ ishaan@berri.ai / krrish@berri.ai
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue