feat: add support for o1 models and update provider configurations
This commit is contained in:
parent
02080954bc
commit
9024d48938
@ -144,7 +144,8 @@ const visionAllowedModels = [
|
||||
'pixtral',
|
||||
'gpt-4(?:-[\\w-]+)',
|
||||
'gpt-4o(?:-[\\w-]+)?',
|
||||
'chatgpt-4o(?:-[\\w-]+)?'
|
||||
'chatgpt-4o(?:-[\\w-]+)?',
|
||||
'o1(?:-[\\w-]+)?'
|
||||
]
|
||||
|
||||
const visionExcludedModels = ['gpt-4-\\d+-preview', 'gpt-4-turbo-preview', 'gpt-4-32k', 'gpt-4-\\d+']
|
||||
|
||||
@ -358,7 +358,7 @@ export const PROVIDER_CONFIG = {
|
||||
},
|
||||
aihubmix: {
|
||||
api: {
|
||||
url: 'https://aihubmix.com?aff=SJyh'
|
||||
url: 'https://aihubmix.com'
|
||||
},
|
||||
websites: {
|
||||
official: 'https://aihubmix.com?aff=SJyh',
|
||||
|
||||
@ -165,7 +165,7 @@ export default class OpenAIProvider extends BaseProvider {
|
||||
const isOpenAIo1 = model.id.startsWith('o1')
|
||||
|
||||
const isSupportStreamOutput = () => {
|
||||
if (this.provider.id === 'github' && isOpenAIo1) {
|
||||
if (isOpenAIo1) {
|
||||
return false
|
||||
}
|
||||
return streamOutput
|
||||
@ -251,7 +251,7 @@ export default class OpenAIProvider extends BaseProvider {
|
||||
if (!onResponse) {
|
||||
return false
|
||||
}
|
||||
if (this.provider.id === 'github' && isOpenAIo1) {
|
||||
if (isOpenAIo1) {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user