mirror of
https://github.com/EthanMarti/infio-copilot.git
synced 2026-01-16 08:21:55 +00:00
fix update error
This commit is contained in:
parent
272082f6ca
commit
a6593fdbef
@ -7,7 +7,7 @@ interface ProUpgradeModalContentProps {
|
|||||||
|
|
||||||
const ProUpgradeModalContent: React.FC<ProUpgradeModalContentProps> = ({ onClose }) => {
|
const ProUpgradeModalContent: React.FC<ProUpgradeModalContentProps> = ({ onClose }) => {
|
||||||
const handleUpgradeClick = () => {
|
const handleUpgradeClick = () => {
|
||||||
window.open('https://platform.infio.com/billing', '_blank')
|
window.open('https://platform.infio.app/billing', '_blank')
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@ -48,6 +48,7 @@ export default function PluginInfoSettings({
|
|||||||
try {
|
try {
|
||||||
// 检查是否为Pro用户
|
// 检查是否为Pro用户
|
||||||
const userPlan = await fetchUserPlan(settings.infioProvider.apiKey);
|
const userPlan = await fetchUserPlan(settings.infioProvider.apiKey);
|
||||||
|
console.log('userPlan', userPlan);
|
||||||
const isProUser = userPlan.plan?.toLowerCase().startsWith('pro') || false;
|
const isProUser = userPlan.plan?.toLowerCase().startsWith('pro') || false;
|
||||||
if (!isProUser) {
|
if (!isProUser) {
|
||||||
if (plugin?.app) {
|
if (plugin?.app) {
|
||||||
|
|||||||
@ -131,7 +131,7 @@ export const anthropicModels = {
|
|||||||
} as const satisfies Record<string, ModelInfo> // as const assertion makes the object
|
} as const satisfies Record<string, ModelInfo> // as const assertion makes the object
|
||||||
|
|
||||||
// Infio
|
// Infio
|
||||||
export const infioDefaultModelId = "gemini/gemini-2.5-pro-preview-06-05" // for chat
|
export const infioDefaultModelId = "infio/agent-chat" // for chat
|
||||||
export const infioDefaultInsightModelId = "deepseek/deepseek-v3" // for insight
|
export const infioDefaultInsightModelId = "deepseek/deepseek-v3" // for insight
|
||||||
export const infioDefaultAutoCompleteModelId = "groq/llama-3.3-70b-versatile" // for auto complete
|
export const infioDefaultAutoCompleteModelId = "groq/llama-3.3-70b-versatile" // for auto complete
|
||||||
export const infioDefaultEmbeddingModelId = "openai/text-embedding-3-small" // for embedding
|
export const infioDefaultEmbeddingModelId = "openai/text-embedding-3-small" // for embedding
|
||||||
|
|||||||
1423
styles.css
1423
styles.css
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user