feat: update default model
This commit is contained in:
@@ -60,10 +60,7 @@ export default function ModelIntegration() {
|
|||||||
</h3>
|
</h3>
|
||||||
<div className="flex flex-wrap gap-2">
|
<div className="flex flex-wrap gap-2">
|
||||||
<span className="inline-flex items-center rounded-full bg-emerald-100 dark:bg-emerald-900/40 text-emerald-900 dark:text-emerald-200 px-3 py-1 text-sm">
|
<span className="inline-flex items-center rounded-full bg-emerald-100 dark:bg-emerald-900/40 text-emerald-900 dark:text-emerald-200 px-3 py-1 text-sm">
|
||||||
gpt-4.1-mini/4.1
|
gpt-4.1-mini/4.1/5
|
||||||
</span>
|
|
||||||
<span className="inline-flex items-center rounded-full bg-emerald-100 dark:bg-emerald-900/40 text-emerald-900 dark:text-emerald-200 px-3 py-1 text-sm">
|
|
||||||
gpt-5
|
|
||||||
</span>
|
</span>
|
||||||
<span className="inline-flex items-center rounded-full bg-emerald-100 dark:bg-emerald-900/40 text-emerald-900 dark:text-emerald-200 px-3 py-1 text-sm">
|
<span className="inline-flex items-center rounded-full bg-emerald-100 dark:bg-emerald-900/40 text-emerald-900 dark:text-emerald-200 px-3 py-1 text-sm">
|
||||||
grok-4/grok-code-fast
|
grok-4/grok-code-fast
|
||||||
@@ -77,6 +74,9 @@ export default function ModelIntegration() {
|
|||||||
<span className="inline-flex items-center rounded-full bg-emerald-100 dark:bg-emerald-900/40 text-emerald-900 dark:text-emerald-200 px-3 py-1 text-sm">
|
<span className="inline-flex items-center rounded-full bg-emerald-100 dark:bg-emerald-900/40 text-emerald-900 dark:text-emerald-200 px-3 py-1 text-sm">
|
||||||
claude-4-sonnet/4.5/3.7/haiku-4.5
|
claude-4-sonnet/4.5/3.7/haiku-4.5
|
||||||
</span>
|
</span>
|
||||||
|
<span className="inline-flex items-center rounded-full bg-emerald-100 dark:bg-emerald-900/40 text-emerald-900 dark:text-emerald-200 px-3 py-1 text-sm">
|
||||||
|
gemini-2.5-pro
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -91,7 +91,6 @@ export default function ModelIntegration() {
|
|||||||
有概率出错,通常能自动修复,建议 temperature 设置高一些
|
有概率出错,通常能自动修复,建议 temperature 设置高一些
|
||||||
</li>
|
</li>
|
||||||
<li>小模型、nano 模型,效果不佳</li>
|
<li>小模型、nano 模型,效果不佳</li>
|
||||||
<li>TODO: Gemini 官方提供的 OpenAI 接口 tool call 部分不兼容</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -7,10 +7,6 @@ import { PageAgent } from '@/PageAgent.js'
|
|||||||
import Footer from './components/Footer'
|
import Footer from './components/Footer'
|
||||||
import Header from './components/Header'
|
import Header from './components/Header'
|
||||||
|
|
||||||
const DEMO_MODEL = 'PAGE-AGENT-FREE-TESTING-RANDOM'
|
|
||||||
const DEMO_BASE_URL = 'https://hwcxiuzfylggtcktqgij.supabase.co/functions/v1/llm-testing-proxy'
|
|
||||||
const DEMO_API_KEY = 'PAGE-AGENT-FREE-TESTING-RANDOM'
|
|
||||||
|
|
||||||
const injection = encodeURI(
|
const injection = encodeURI(
|
||||||
"javascript:(function(){var s=document.createElement('script');s.src=`https://hwcxiuzfylggtcktqgij.supabase.co/storage/v1/object/public/demo-public/v0.0.2/page-agent.js?t=${Math.random()}`;s.setAttribute('crossorigin', true);s.type=`text/javascript`;s.onload=()=>console.log('PageAgent script loaded!');document.body.appendChild(s);})();"
|
"javascript:(function(){var s=document.createElement('script');s.src=`https://hwcxiuzfylggtcktqgij.supabase.co/storage/v1/object/public/demo-public/v0.0.2/page-agent.js?t=${Math.random()}`;s.setAttribute('crossorigin', true);s.type=`text/javascript`;s.onload=()=>console.log('PageAgent script loaded!');document.body.appendChild(s);})();"
|
||||||
)
|
)
|
||||||
@@ -51,9 +47,9 @@ export default function HomePage() {
|
|||||||
|
|
||||||
// testing server
|
// testing server
|
||||||
// @note: rate limit. prompt limit.
|
// @note: rate limit. prompt limit.
|
||||||
model: DEMO_MODEL,
|
// model: DEMO_MODEL,
|
||||||
baseURL: DEMO_BASE_URL,
|
// baseURL: DEMO_BASE_URL,
|
||||||
apiKey: DEMO_API_KEY,
|
// apiKey: DEMO_API_KEY,
|
||||||
})
|
})
|
||||||
window.pageAgent = pageAgent
|
window.pageAgent = pageAgent
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user