Skip to content
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

Add from_groq support #556 #561

Merged
merged 2 commits into from
Apr 3, 2024
Merged

Add from_groq support #556 #561

merged 2 commits into from
Apr 3, 2024

Conversation

rabem00
Copy link
Contributor

@rabem00 rabem00 commented Apr 3, 2024

I've added a from_groq instead of the from_openai used in this https://python.useinstructor.com/hub/groq/#groq-ai link.
Also added two examples under examples/groq with the names: groq_example.py and groq_example2.py. The examples also show the expected output I got during testing. I also added groq.md under docs/examples with a small description.


Ellipsis 🚀 This PR description was created by Ellipsis for commit 5ef728a.

Summary:

This PR adds support for Groq in the Instructor library, including a new from_groq function, two example scripts, and a new documentation page.

Key points:

  • Added from_groq function in instructor/client.py and instructor/__init__.py
  • Added two example scripts groq_example.py and groq_example2.py under examples/groq
  • Added new documentation page groq.md under docs/examples
  • Updated docs/examples/index.md to include the new documentation page

Generated with ❤️ by ellipsis.dev

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. documentation Improvements or additions to documentation enhancement New feature or request labels Apr 3, 2024
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me!

  • Reviewed the entire pull request up to 5ef728a
  • Looked at 266 lines of code in 6 files
  • Took 1 minute and 25 seconds to review
More info
  • Skipped 0 files when reviewing.
  • Skipped posting 0 additional comments because they didn't meet confidence threshold of 85%.

Workflow ID: wflow_MVHeThAaWsnvjCWt


Not what you expected? You can customize the content of the reviews using rules. Learn more here.

@jxnl jxnl merged commit b99b299 into instructor-ai:main Apr 3, 2024
0 of 7 checks passed
@rabem00 rabem00 deleted the from_groq branch April 3, 2024 19:57
PrathamSoni pushed a commit to EndexAI/instructor that referenced this pull request Apr 10, 2024
Co-authored-by: m. rabelink <m.rabelink@belastingdienst.nl>
Co-authored-by: Jason Liu <jason@jxnl.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants