Skip to content

Commit 42c8b84

Browse files
committed
chore: update free models
1 parent 8db23cf commit 42c8b84

3 files changed

Lines changed: 12 additions & 7 deletions

File tree

apps/backend-convex/functions/threads/action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const generateTitle = action({
2828
const { text } = await generateText({
2929
model: openrouter('qwen/qwen3-8b:free'),
3030
system: `You are a helpful assistant, generating concise, informative, and clear titles for a given context, keep the generated title under 40 characters, do not use any quotes and markdown syntax.`,
31-
prompt: `Generate a new title for this thread, infer the language from the info's detail, here is the structured previous info: \n${[
31+
prompt: `Generate a new title for this thread, infer the language from the thread's detail, here is the structured thread detail: \n${[
3232
`Title: "${thread.title}"`,
3333
...(messages.length
3434
? [`Messages:\n${await simpleMessagesToString(messages.map(m => ({

apps/backend-convex/utils/agent.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ import { createOpenRouter, openrouter } from '@openrouter/ai-sdk-provider'
99
export function getAgentModel({ provider, model, apiKey }: AgentObject): LanguageModelV1 {
1010
if (provider === 'hosted') {
1111
switch (model) {
12-
case 'qwen3-32b':
13-
return openrouter('qwen/qwen3-32b:free')
12+
case 'qwen3-235b-a22b:free':
13+
return openrouter('qwen/qwen3-235b-a22b:free')
14+
case 'kimi-k2:free':
15+
return openrouter('moonshotai/kimi-k2:free')
1416
case 'deepseek-v3':
1517
return openrouter('deepseek/deepseek-chat-v3-0324:free')
1618
case 'devstral-small-2505':

apps/frontend/app/components/chat/ChatRootApp.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const { data: pinnedThreadIds, isFinished: pinnedThreadIdsLoaded } = useIDBKeyva
1111
const { data: agentsSettings, isFinished: agentsSettingsLoaded } = useIDBKeyval<AgentsSettings>('chat/agentsSettings', {
1212
providers: {
1313
},
14-
selectedAgent: 'hosted/qwen3-32b',
14+
selectedAgent: 'hosted/qwen3-235b-a22b:free',
1515
})
1616
1717
await until(computed(() =>
@@ -36,7 +36,10 @@ useHead({
3636
const hostedProvider = computed<HostedProvider>(() => ({
3737
enabled: true,
3838
models: {
39-
'qwen3-32b': {
39+
'qwen3-235b-a22b:free': {
40+
enabled: true,
41+
},
42+
'kimi-k2:free': {
4043
enabled: true,
4144
},
4245
'deepseek-v3': {
@@ -49,11 +52,11 @@ const hostedProvider = computed<HostedProvider>(() => ({
4952
enabled: true,
5053
},
5154
'gemini-2.0-flash-exp': {
52-
enabled: true,
55+
enabled: false,
5356
attachments: ['image/png', 'image/jpeg', 'image/webp', 'application/pdf', 'text/plain'],
5457
},
5558
},
56-
default: 'qwen3-32b',
59+
default: 'qwen3-235b-a22b:free',
5760
}))
5861
5962
const activeAgent = computed(() => {

0 commit comments

Comments
 (0)