Skip to content

Commit

Permalink
Merge pull request #601 from sugarforever/fix/list-all-openai-models
Browse files Browse the repository at this point in the history
fix: available openai models should not be filtered
  • Loading branch information
sugarforever authored Dec 20, 2024
2 parents fadd557 + d2eb1a8 commit e903aa0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions composables/useOpenAIModels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ export function useOpenAIModels() {

const data = await response.json()
const models = data.data
.filter((model: any) => model.id.startsWith('gpt-'))
// Sort models by name for better organization
.sort((a: any, b: any) => a.id.localeCompare(b.id))
.map((model: any) => model.id)

Expand Down

0 comments on commit e903aa0

Please sign in to comment.