Skip to content

Commit

Permalink
🚀 feat: Add ShuttleAI as Known Endpoint (#2152)
Browse files Browse the repository at this point in the history
Added new Official Known Endpoint (ShuttleAI)
  • Loading branch information
herumes authored Mar 21, 2024
1 parent f521040 commit 1ee2c32
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ PROXY=
# https://docs.librechat.ai/install/configuration/ai_endpoints.html

# GROQ_API_KEY=
# MISTRAL_API_KEY=
# SHUTTLEAI_KEY=
# OPENROUTER_KEY=
# MISTRAL_API_KEY=
# ANYSCALE_API_KEY=
# FIREWORKS_API_KEY=
# PERPLEXITY_API_KEY=
Expand Down
Binary file added client/public/assets/ShuttleAI_Fibonacci.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/public/assets/shuttleai.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions client/src/components/Chat/Menus/Endpoints/UnknownIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ export default function UnknownIcon({
alt="Groq Cloud Icon"
/>
);
} else if (currentEndpoint === KnownEndpoints.shuttleai) {
return (
<img
className={context === 'landing' ? '' : className}
src="/assets/shuttleai.png"
alt="ShuttleAI Icon"
/>
);
} else if (currentEndpoint === KnownEndpoints.anyscale) {
return (
<img
Expand Down
27 changes: 27 additions & 0 deletions docs/install/configuration/ai_endpoints.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,33 @@ Some of the endpoints are marked as **Known,** which means they might have speci
![image](https://github.com/danny-avila/LibreChat/assets/32828263/9f2d8ad9-3f49-4fe3-a3ed-c85994c1c85f)
## ShuttleAI
> ShuttleAI API key: [shuttleai.app/keys](https://shuttleai.app/keys)
**Notes:**
- **Known:** icon provided, fetching list of models is recommended.
```yaml
- name: "ShuttleAI"
apiKey: "${SHUTTLEAI_API_KEY}"
baseURL: "https://api.shuttleai.app/v1"
models:
default: [
"shuttle-1", "shuttle-turbo"
]
fetch: true
titleConvo: true
titleModel: "gemini-pro"
summarize: false
summaryModel: "llama-summarize"
forcePrompt: false
modelDisplayLabel: "ShuttleAI"
dropParams: ["user"]
```
![image](https://github.com/danny-avila/LibreChat/client/public/assets/ShuttleAI_Fibonacci.png)
## Fireworks
> Fireworks API key: [fireworks.ai/api-keys](https://fireworks.ai/api-keys)
Expand Down
3 changes: 2 additions & 1 deletion docs/install/configuration/dotenv.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,9 @@ PROXY=

```sh
GROQ_API_KEY=
MISTRAL_API_KEY=
SHUTTLEAI_KEY=
OPENROUTER_KEY=
MISTRAL_API_KEY=
ANYSCALE_API_KEY=
FIREWORKS_API_KEY=
PERPLEXITY_API_KEY=
Expand Down
1 change: 1 addition & 0 deletions packages/data-provider/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ export type TCustomConfig = z.infer<typeof configSchema>;

export enum KnownEndpoints {
mistral = 'mistral',
shuttleai = 'shuttleai',
openrouter = 'openrouter',
groq = 'groq',
anyscale = 'anyscale',
Expand Down

0 comments on commit 1ee2c32

Please sign in to comment.