Skip to content

Create a Web-Scraper to Update Groq Models on Pricing/Context-Window JSON #10139

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

naliotopier
Copy link

Title

Create a Web-Scraper to Update Groq Models on Pricing/Context-Window JSON

(part of Founding Engineer interview per @ishaan-jaff)

Type

🚄 Infrastructure

Changes

I created a bs4 based web scraper to update the Groq related information on model_prices_and_context_window.json. This code is part of my technical interview for the Founding Engineer role.

The code should be fairly self-explanatory -- the one thing that might be confusing is how I update the JSON. Because Python automatically updates JSON formatting when you load it into memory, I instead loaded the JSON as a raw string and then used re to parse and update this string.

This code was used to generate the JSON updates seen in #10077.

I did not add testing, but I would happy to finish out testing during the 2-day on-sight (if you were to invite me).

Please let me know if you have any questions.

Copy link

vercel bot commented Apr 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 18, 2025 5:28pm

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants