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

Sandevh/stu 307 generate tests with an llm #1122

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

Conversation

izi-on
Copy link
Contributor

@izi-on izi-on commented Mar 2, 2024

  • cleaned up code +
    GENERATOR PANEL:
  • generate tests with a given prompt

Copy link

linear bot commented Mar 2, 2024

Copy link

vercel bot commented Mar 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 5, 2024 10:11pm

Copy link
Contributor

@LatentDream LatentDream left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Backend

How do we handle inference? Do we pay for it? Not sure if we can package our key with the desktop app due to security reasons. We won't be able to update the key if something happens.

Or should we let the user add their own OpenAI key? Set this key the same way as the cloud one?

Any other solutions?


Frontend:

  • The Run Test Sequence button should always be visible, in my opinion. We could move it to where the Play button is on the flowchart.

  • A toast.promise would be great so the user knows the request is being processed in the background.

  • Now that the import and all are not always present, it's easy to confuse the following:
    Image Description

  • For hardware, it completely hallucinate function (with tm_devices as example). We need to do some tests on how we can use other models, give it more context, fine-tune, etc. :)

    • I have some idea that I want to test when the export feature is done for that :)
  • Right-click to consult code in the generated panel doesn't work.

    • shoud we do a mouse over to check the code directly ?
      Image Description
  • I haven't went through all the frontend code wet :) But the UI is clean !!

captain/parser/bool_parser/bool_parser.py Show resolved Hide resolved
from openai import OpenAI
from captain.utils.test_sequencer.data_stream import _with_error_report

key = "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" # TODO have this from .env, Joey said to hard code for now until his PR
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

key should be as an ENV variable, never hard coded since it can easily be forgotten

test_coool Outdated Show resolved Hide resolved
test_example.py Outdated Show resolved Hide resolved
src/renderer/hooks/useTestSequencerState.ts Show resolved Hide resolved
@izi-on izi-on force-pushed the sandevh/stu-307-generate-tests-with-an-llm branch from 221bca5 to da8afe0 Compare March 5, 2024 20:27
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.

None yet

3 participants