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

fix: llama helper for text to summary, api helpers ip #15

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

rockett-m
Copy link
Member

This pull request introduces updates to the backend utilities and environment configuration to enhance API connectivity and model querying capabilities. The most important changes include the addition of new helper modules for Cerebras and Llama API connections, updates to environment variables, and error handling improvements.

Environment Configuration:

  • Added LLAMA_MODEL=llama3.1-8b to the .env.example file to specify the default Llama model.

Cerebras API Integration:

  • Created backend/utils/cerebras_connect.py to handle connections and queries to the Cerebras API, including error handling and response extraction.

Llama API Integration:

  • Added backend/utils/llama_api_helpers.py to provide helper functions for tokenization, API calls, and cost estimation for Llama models.

Modal API Integration:

  • Introduced backend/utils/modal_connect.py to facilitate connections to the Modal API, including environment setup and package installations.

@rockett-m rockett-m requested review from VDuda and cdirks4 January 29, 2025 02:54
@rockett-m rockett-m merged commit 82c43d1 into open-biz:main Jan 29, 2025
1 check passed
@rockett-m rockett-m deleted the helpers branch January 29, 2025 02:55
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