ztjhz / BetterChatGPT

An amazing UI for OpenAI's ChatGPT (Website + Windows + MacOS + Linux)
http://bettergpt.chat/
Creative Commons Zero v1.0 Universal
8.05k stars 2.72k forks source link

Centralize the adding of models. #589

Open Boiln opened 4 months ago

Boiln commented 4 months ago

Please for everyones sake, add a .yml for loading the models.. so you don't have to edit 5555 different locations otherwise an error.

Something like:

models:
  - name: 'gpt-4'
    max_tokens: 8000
    cost:
      prompt: { price: 0.0, unit: 1000 }
      completion: { price: 0.0, unit: 1000 }
  - name: 'gpt-4-turbo'
    max_tokens: 128000
    cost:
      prompt: { price: 0.0, unit: 1000 }
      completion: { price: 0.0, unit: 1000 }
  - name: 'gpt-4o'
    max_tokens: 128000
    cost:
      prompt: { price: 0.005, unit: 1000 }
      completion: { price: 0.015, unit: 1000 }