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

WIP: feat: Test code suggested by Gemini #122

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

WIP: feat: Test code suggested by Gemini #122

wants to merge 3 commits into from

Conversation

jhutar
Copy link
Contributor

@jhutar jhutar commented Feb 21, 2024

Asked Gemini (formerly Bard) LLM model to generate unittests for this:

https://github.com/redhat-performance/opl/blob/6cbe66432321394202ff0c8e26ee20fe08698ea1/opl/cluster_read.py

Related chats are here:

https://g.co/gemini/share/ee61acadbabe
https://g.co/gemini/share/f0a796512339

They are bit messy as looks like Gemini have issues with long prompt and somehow truncates response (probably also when it is too long).

So later I have been giving smaller questions per class/function.

This is raw copy&paste of the code it generated and needs cleanup, testing and edits.

Asked Gemini (formerly Bard) LLM model to generate unittests for this:

https://github.com/redhat-performance/opl/blob/6cbe66432321394202ff0c8e26ee20fe08698ea1/opl/cluster_read.py

Related chats are here:

https://g.co/gemini/share/ee61acadbabe
https://g.co/gemini/share/f0a796512339

They are bit messy as looks like Gemini have issues with long prompt and
somehow truncates response (probably also when it is too long).

So later I have been giving smaller questions per class/function.

This is raw copy&paste of the code it generated and needs cleanup,
testing and edits.
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