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

Upgrade to Codaveri v2.1 #7632

Open
wants to merge 2 commits into
base: bivan/codaveri-edit-and-duplicate
Choose a base branch
from

Conversation

bivanalhar
Copy link
Contributor

@bivanalhar bivanalhar commented Nov 11, 2024

NOTE: This PR should be merged after #7630

We did the adjustment to our codebase to follow-up with the recent upgrade done by Codaveri to v2.1

Several notable adjustments made:

  • Include API Version in the headers everytime we send request to Codaveri
  • remove 'functionality' from the default config since it's already set as default in Codaveri
  • refactoring payload for Problem Generation to resolve 500 characters limit issue (more explanation below)
  • splitting expression inside each Codaveri problem into lhsExpression and rhsExpression
  • refactoring of GenerateProgrammingQuestionPage to make it more readable and more clean

Problem Generation

Previously we run into issue of limiting 500 characters limit since we need to dump every information about already generated problem into customPrompt, including title, description, test cases info, etc. which obviously will far exceeding 500 chars if combined. In Codaveri v2.1, they have the separate field for the recently-generated question so this char limit should not be a problem anymore

Miscellaneous

After merging this PR and deploying, we need to add CODAVERI_API_VERSION to our ENV variables inside our deployment configuration. Value should be '2.1', the version of the Codaveri API we're supposed to follow

@bivanalhar bivanalhar force-pushed the bivan/codaveri-upgrade-2.1 branch 3 times, most recently from fd20d40 to e7533eb Compare November 13, 2024 02:37
@bivanalhar bivanalhar force-pushed the bivan/codaveri-edit-and-duplicate branch from 7a3ddc0 to e29b7a4 Compare November 13, 2024 02:38
@bivanalhar bivanalhar force-pushed the bivan/codaveri-upgrade-2.1 branch 2 times, most recently from e538f97 to 6af32a4 Compare November 13, 2024 03:42
@bivanalhar bivanalhar force-pushed the bivan/codaveri-edit-and-duplicate branch from e29b7a4 to 94fbc22 Compare November 20, 2024 06:40
- Problem creation
- Evaluate in Codaveri
- Getting Codaveri Feedback
- Sending the rating for the given Codaveri feedback
- Programming question generation
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