GatorEducator / execexam

:rocket: ExecExam runs executable examinations that assess Python programming skills
https://pypi.org/project/execexam/
2 stars 3 forks source link

Need Exception Handling for Coding Mentor #3

Closed PCain02 closed 4 days ago

PCain02 commented 2 months ago

Description: When using the Coding Mentor the program crashes when it is not given an expected model or url.

Expected Behavior: The code should not crash. Instead, it should notify the user of the unexpected input and offer an alternative.

Actual Behavior: The code crashes and gives a large error output. This is the end of the output.

BadRequestError: litellm.BadRequestError: LLM Provider NOT provided. Pass in the LLM provider you are trying to call. You passed model=https://docs.litellm.ai/docs/providers
 Pass model as E.g. For 'Huggingface' inference endpoints pass in `completion(model='huggingface/starcoder',..)` Learn more: https://docs.litellm.ai/docs/providers

Proposed Solution: Implement expectation handling statements within the coding mentor that provide more useful feedback.

gkapfham commented 3 weeks ago

Hi @dyga01 and @hemanialaparthi and @PCain02 can you give a status update concerning the resolution of this issue?

dyga01 commented 3 weeks ago

@gkapfham This issue will be resolved once PR #22 is finalized and merged.