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

How to replace the LLM for test case generation? #27

Open
pitilessj opened this issue May 11, 2024 · 2 comments
Open

How to replace the LLM for test case generation? #27

pitilessj opened this issue May 11, 2024 · 2 comments

Comments

@pitilessj
Copy link

Can we call the api of the local LLM or other LLMS to generate test cases, and if so, can you tell us where to make the changes?
Thanks

@carolemieux
Copy link
Collaborator

You'll want to change https://github.com/microsoft/codamosa/blob/main/pynguin/languagemodels/model.py

If you provide the same API as _OpenAILanguageModel, you should be able to just change the instance of the class at the very bottom of the file.

@carolemieux
Copy link
Collaborator

if you want to use another openai language model, you do not need to change that file, simply provide a different value to --model_name argument. This is pointed out in the README.md and replication/README.md.

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

No branches or pull requests

2 participants