Skip to content

Commit 2741d37

Browse files
committedNov 5, 2024·
allow all tool calling models
1 parent a14c73e commit 2741d37

File tree

1 file changed

+31
-29
lines changed

1 file changed

+31
-29
lines changed
 

‎components/model-select.tsx

+31-29
Original file line numberDiff line numberDiff line change
@@ -22,29 +22,29 @@ import { TooltipPortal } from '@radix-ui/react-tooltip'
2222
import { useUIState } from 'ai/rsc'
2323
import { AI } from '@/lib/chat/actions'
2424

25-
const featuredToolCallingModels = [
26-
'anthropic/claude-3-haiku',
27-
'anthropic/claude-3-sonnet',
28-
'anthropic/claude-3-opus',
29-
'anthropic/claude-3.5-sonnet',
30-
'mistralai/mistral-nemo',
31-
'openai/gpt-3.5-turbo',
32-
'openai/gpt-4-turbo',
33-
'openai/gpt-4',
34-
'openai/gpt-4-0314',
35-
'openai/gpt-4-0613',
36-
'openai/gpt-4-32k',
37-
'openai/gpt-4-32k-0314',
38-
// These are highly rate-limited
39-
// 'google/gemini-flash-1.5-exp',
40-
// 'google/gemini-pro-1.5-exp'
41-
// 'meta-llama/llama-3.1-405b-instruct',
42-
'cohere/command-r-plus-08-2024',
25+
// const featuredToolCallingModels = [
26+
// 'anthropic/claude-3-haiku',
27+
// 'anthropic/claude-3-sonnet',
28+
// 'anthropic/claude-3-opus',
29+
// 'anthropic/claude-3.5-sonnet',
30+
// 'mistralai/mistral-nemo',
31+
// 'openai/gpt-3.5-turbo',
32+
// 'openai/gpt-4-turbo',
33+
// 'openai/gpt-4',
34+
// 'openai/gpt-4-0314',
35+
// 'openai/gpt-4-0613',
36+
// 'openai/gpt-4-32k',
37+
// 'openai/gpt-4-32k-0314',
38+
// // These are highly rate-limited
39+
// // 'google/gemini-flash-1.5-exp',
40+
// // 'google/gemini-pro-1.5-exp'
41+
// // 'meta-llama/llama-3.1-405b-instruct',
42+
// 'cohere/command-r-plus-08-2024',
4343

44-
'google/gemini-pro-1.5',
45-
'google/gemini-flash-1.5',
46-
'mistralai/mistral-large'
47-
]
44+
// 'google/gemini-pro-1.5',
45+
// 'google/gemini-flash-1.5',
46+
// 'mistralai/mistral-large'
47+
// ]
4848

4949
export function ModelSelectContent() {
5050
const { models, isLoading, error } = useModels()
@@ -76,13 +76,15 @@ export function ModelSelectContent() {
7676
</SelectItem>
7777
]
7878
}
79-
return models
80-
.filter(model => featuredToolCallingModels.includes(model.id))
81-
.map(model => (
82-
<SelectItem key={model.id} value={model.id}>
83-
{model.name}
84-
</SelectItem>
85-
))
79+
return (
80+
models
81+
// .filter(model => featuredToolCallingModels.includes(model.id))
82+
.map(model => (
83+
<SelectItem key={model.id} value={model.id}>
84+
{model.name}
85+
</SelectItem>
86+
))
87+
)
8688
}, [models, isLoading, error])
8789

8890
return (

0 commit comments

Comments
 (0)
Please sign in to comment.