Skip to content

Commit 908a2b2

Browse files
authored
Merge pull request #1782 from helixml/feature/fireworks_ai
add fireworks provider
2 parents 612ecb3 + 2b3289c commit 908a2b2

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed
8.16 KB
Loading

frontend/src/components/create/AdvancedModelPicker.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import vllmLogo from '../../../assets/img/vllm-logo.png'
3636
import helixLogo from '../../../assets/img/logo.png'
3737
import googleLogo from '../../../assets/img/providers/google.svg'
3838
import anthropicLogo from '../../../assets/img/providers/anthropic.png'
39+
import fireworksLogo from '../../../assets/img/providers/fireworks.png'
3940
import DarkDialog from '../dialog/DarkDialog';
4041
import useLightTheme from '../../hooks/useLightTheme';
4142

@@ -72,6 +73,10 @@ const ProviderIcon: React.FC<{ provider: TypesProviderEndpoint }> = ({ provider
7273
return <Avatar src={anthropicLogo} sx={{ width: 32, height: 32 }} variant="square" />;
7374
}
7475

76+
if (provider.base_url?.startsWith('https://api.fireworks.ai/')) {
77+
return <Avatar src={fireworksLogo} sx={{ width: 32, height: 32 }} variant="square" />;
78+
}
79+
7580
// Check provider models, if it has more than 1 and "owned_by" = "vllm", then show vllm logo
7681
if (provider.available_models && provider.available_models.length > 0 && provider.available_models[0].owned_by === "vllm") {
7782
return <Avatar src={vllmLogo} sx={{ width: 32, height: 32, bgcolor: '#fff' }} variant="square" />;

frontend/src/components/dashboard/PricingTable.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import vllmLogo from '../../../assets/img/vllm-logo.png';
2828
import helixLogo from '../../../assets/img/logo.png';
2929
import googleLogo from '../../../assets/img/providers/google.svg';
3030
import anthropicLogo from '../../../assets/img/providers/anthropic.png';
31+
import fireworksLogo from '../../../assets/img/providers/fireworks.png';
3132
import { Bot } from 'lucide-react';
3233

3334
interface ModelWithProvider extends TypesOpenAIModel {
@@ -49,6 +50,9 @@ const getProviderIcon = (provider: TypesProviderEndpoint): React.ReactNode => {
4950
if (provider.name === 'anthropic' || provider.base_url?.startsWith('https://api.anthropic.com/')) {
5051
return <Avatar src={anthropicLogo} sx={{ width: 24, height: 24 }} variant="square" />;
5152
}
53+
if (provider.base_url?.startsWith('https://api.fireworks.ai/')) {
54+
return <Avatar src={fireworksLogo} sx={{ width: 24, height: 24 }} variant="square" />;
55+
}
5256
if (provider.available_models?.length && provider.available_models[0].owned_by === "vllm") {
5357
return <Avatar src={vllmLogo} sx={{ width: 24, height: 24, bgcolor: '#fff' }} variant="square" />;
5458
}

frontend/src/components/providers/types.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import AWSLogo from './logos/aws';
88
// Direct image imports
99
import togetheraiLogo from '../../../assets/img/together-logo.png'
1010
import googleLogo from '../../../assets/img/providers/google.svg';
11+
import fireworksLogo from '../../../assets/img/providers/fireworks.png';
1112
import { OllamaIcon } from "../icons/ProviderIcons";
1213

1314
export interface Provider {
@@ -86,10 +87,19 @@ export const PROVIDERS: Provider[] = [
8687
alias: ['togetherai', 'togetherai-api'],
8788
name: 'TogetherAI',
8889
description: 'Integrate with TogetherAI for ultra-fast LLM inference.',
89-
logo: togetheraiLogo,
90+
logo: togetheraiLogo,
9091
base_url: "https://api.together.xyz/v1",
9192
setup_instructions: "Get your API key from https://api.together.xyz/"
9293
},
94+
{
95+
id: 'user/fireworks',
96+
alias: ['fireworks', 'fireworks-api'],
97+
name: 'Fireworks AI',
98+
description: 'Fireworks AI offers cheap and fast LLM infernece.',
99+
logo: fireworksLogo,
100+
base_url: "https://api.fireworks.ai/inference/v1",
101+
setup_instructions: "Register at https://fireworks.ai and get your API key from https://app.fireworks.ai/settings/users/api-keys"
102+
},
93103
{
94104
id: 'user/ollama',
95105
alias: ['ollama', 'ollama-api'],

0 commit comments

Comments
 (0)