Skip to content

Commit

Permalink
fix: available openai models should not be filtered
Browse files Browse the repository at this point in the history
  • Loading branch information
sugarforever committed Dec 20, 2024
1 parent fadd557 commit d2eb1a8
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 d2eb1a8

Please sign in to comment.