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

Added Open Source LLM Support via GROQ #56

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pulkitporwal
Copy link

Summary

This pull request refactors the API integration to dynamically select between OpenAI and Groq based on the provided API key. This improves flexibility and ensures seamless compatibility with different providers.

Changes

  • Refactored ai.go to automatically select the best LLM based on the provided API key.
  • Updated config.prod.yaml to include new keys for improved dynamic model selection.
  • Modified the configuration handling to properly integrate different LLMs without hardcoded values.

Testing

  • Verified automatic API selection and correct model assignment.
  • Ensured all functionalities (prompt execution, response handling, error reporting) work as expected.

Additional Notes

This change requires the correct API key format to ensure proper provider detection and model selection.

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.

1 participant