🤖feat: add multiple known endpoints (#1917)

* feat: add known endpoints

* docs: add known endpoints

* update ai_endpoints.md

remove the groq icon from the example

* Update ai_endpoints.md

---------

Co-authored-by: Danny Avila <messagedaniel@protonmail.com>
This commit is contained in:
Fuegovic 2024-02-28 08:46:21 -05:00 committed by GitHub
parent 156abe2fca
commit 53ae2d7bfb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 250 additions and 8 deletions

View file

@ -38,6 +38,46 @@ export default function UnknownIcon({
alt="Groq Cloud Icon"
/>
);
} else if (currentEndpoint === KnownEndpoints.anyscale) {
return (
<img
className={context === 'landing' ? '' : className}
src="/assets/anyscale.png"
alt="Anyscale Icon"
/>
);
} else if (currentEndpoint === KnownEndpoints.fireworks) {
return (
<img
className={context === 'landing' ? '' : className}
src="/assets/fireworks.png"
alt="Fireworks Icon"
/>
);
} else if (currentEndpoint === KnownEndpoints.ollama) {
return (
<img
className={context === 'landing' ? '' : className}
src="/assets/ollama.png"
alt="Ollama Icon"
/>
);
} else if (currentEndpoint === KnownEndpoints.perplexity) {
return (
<img
className={context === 'landing' ? '' : className}
src="/assets/perplexity.png"
alt="Perplexity Icon"
/>
);
} else if (currentEndpoint === KnownEndpoints['together.ai']) {
return (
<img
className={context === 'landing' ? '' : className}
src="/assets/together.png"
alt="together.ai Icon"
/>
);
}
return <CustomMinimalIcon className={className} />;