Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(pi): add first-class agent provider #5882

ClosedPJalv(GitHub profile, opens in a new tab)wants to merge 20 commits intomain fromrefs/pull/5882/headopened View on GitHub

Showing 36 changed files with 74 additions and 1 deletion (loading 33).

x
0 of 36 viewed, 36 left
15 additions and 1 deletionapps/mobile/src/components/ProviderIcon.tsxModified
View file
@@ -1,5 +1,5 @@
import { useColorScheme } from "react-native";
-import { Path, Svg } from "react-native-svg";
+import { Path, Rect, Svg } from "react-native-svg";
​
type ProviderIconProps = {
readonly provider: string | null | undefined;
@@ -22,6 +22,20 @@
);
​
+ if (props.provider === "pi") {
+ return (
+ <Svg width={size} height={size} viewBox="0 0 800 800" fill="none">
+ <Rect width="800" height="800" rx="160" fill="#000" />
+ <Path
+ fill="#fff"
+ fillRule="evenodd"
+ d="M165.29 165.29H517.36V400H400V517.36H282.65V634.72H165.29ZM282.65 282.65V400H400V282.65Z"
+ />
+ <Path fill="#fff" d="M517.36 400H634.72V634.72H517.36Z" />
+ </Svg>
+ );
+ }
+​
if (props.provider === "grok") {
const fill = isDarkMode ? "#F5F5F5" : "#0F0F0F";
return (