resolve comments

This commit is contained in:
wslee 2024-06-11 14:49:39 +09:00
parent fe8d59f5eb
commit 1442adbc33
2 changed files with 5 additions and 5 deletions

View file

@ -1,12 +1,12 @@
# FriendliAI
https://friendli.ai/
https://suite.friendli.ai/
**We support ALL FriendliAI models, just set `friendli_ai/` as a prefix when sending completion requests**
## API Key
```python
# env variable
os.environ['FRIENDLI_AI_API_KEY']
os.environ['FRIENDLI_TOKEN']
```
## Sample Usage
@ -14,7 +14,7 @@ os.environ['FRIENDLI_AI_API_KEY']
from litellm import completion
import os
os.environ['FRIENDLI_AI_API_KEY'] = ""
os.environ['FRIENDLI_TOKEN'] = ""
response = completion(
model="friendli_ai/mixtral-8x7b-instruct-v0-1",
messages=[
@ -29,7 +29,7 @@ print(response)
from litellm import completion
import os
os.environ['FRIENDLI_AI_API_KEY'] = ""
os.environ['FRIENDLI_TOKEN'] = ""
response = completion(
model="friendli_ai/mixtral-8x7b-instruct-v0-1",
messages=[

View file

@ -4288,7 +4288,7 @@ def speech(
response: Optional[HttpxBinaryResponseContent] = None
if custom_llm_provider == "openai":
api_base = (
api_base # for deepinfra/perplexity/anyscale/groq/friendli we check in get_llm_provider and pass in the api base from there
api_base # for deepinfra/perplexity/anyscale/groq/friendli_ai we check in get_llm_provider and pass in the api base from there
or litellm.api_base
or get_secret("OPENAI_API_BASE")
or "https://api.openai.com/v1"