Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ import React from 'react'
import Icon from 'cozy-ui/transpiled/react/Icon'
import CheckIcon from 'cozy-ui/transpiled/react/Icons/Check'
import PlusSmallIcon from 'cozy-ui/transpiled/react/Icons/PlusSmall'
import TwakeLogo from 'cozy-ui/transpiled/react/Icons/TwakeWorkplace'
import Typography from 'cozy-ui/transpiled/react/Typography'
import { useI18n } from 'twake-i18n'
import { useCozyTheme } from 'cozy-ui-plus/dist/providers/CozyTheme'
import { useI18n } from 'twake-i18n'

import styles from './styles.styl'
import AnthropicLogo from '../../assets/anthropic.svg'
import GeminiLogo from '../../assets/gemini.svg'
import MetaLogo from '../../assets/meta.svg'
import MistralLogo from '../../assets/mistral.svg'
import OpenAILogo from '../../assets/open_ai.svg'
import OpenRagLogo from '../../assets/openrag.png'

const ICONS = {
OpenRagLogo,
TwakeLogo,
GeminiLogo,
OpenAILogo,
MistralLogo,
Expand Down Expand Up @@ -52,7 +52,14 @@ const Provider = ({ selectedProvider, provider, onSelect }) => {
styles[`icon-container--${provider.id}`]
)}
>
<Icon icon={ICONS[provider.icon]} size={40} />
{
/* FIXME: the twake icon is not rendered properly with Icon */
isOpenRag ? (
<TwakeLogo width={40} height={40} />
) : (
<Icon icon={ICONS[provider.icon]} size={40} preserveColor />
)
}
</div>
<div className="u-flex-grow-1">
<Typography
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "Twake",
"models": ["openrag"],
"description": "assistant_create.steps.provider_selection.openrag.description",
"icon": "OpenRagLogo",
"icon": "TwakeLogo",
"external": false
},
{
Expand Down
Loading