jamesturk / scrapeghost

👻 Experimental library for scraping websites using OpenAI's GPT API.
https://jamesturk.github.io/scrapeghost/
Other
1.43k stars 87 forks source link

Add support for gpt-4o-mini #60

Open DieterHolvoet opened 1 month ago

DieterHolvoet commented 1 month ago

The supported models seem to be hardcoded in models.py:

models = [
    Model("gpt-4", 0.03, 0.06, 8192, False),
    Model("gpt-4-32k", 0.06, 0.12, 32768, False),
    Model("gpt-4-1106-preview", 0.01, 0.03, 128000, True),
    Model("gpt-3.5-turbo", 0.001, 0.002, 16384, False),
    Model("gpt-3.5-turbo-1106", 0.001, 0.002, 16384, True),
]

Any chance we can support gpt-4o-mini as well?

DieterHolvoet commented 1 month ago

Here's the pricing information for this model: https://openai.com/api/pricing#MKm0TAT0sEESKMml2k65u

jamesturk commented 1 month ago

PRs are welcome but I haven't really had much reason to put work into this and don't see myself working w/ OpenAI again given their business practices, I may pick this up w/ other providers.

On Fri, Aug 2, 2024, at 9:07 AM, Dieter Holvoet wrote:

Here's the pricing information for this model: https://openai.com/api/pricing#MKm0TAT0sEESKMml2k65u

— Reply to this email directly, view it on GitHub https://github.com/jamesturk/scrapeghost/issues/60#issuecomment-2265370052, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAB6YTYB2PB4LUFYDDN6UDZPOAC5AVCNFSM6AAAAABL4QN4SSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRVGM3TAMBVGI. You are receiving this because you are subscribed to this thread.Message ID: @.***>