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

Make it possible to use "copy paste" to external LLM for Gemini 1.5 experimentation #1036

Closed
AntonOsika opened this issue Feb 27, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@AntonOsika
Copy link
Collaborator

AntonOsika commented Feb 27, 2024

Just got access to Gemini 1.5.

It supposedly performs super well with long prompts + million token context window.

To run it I right now have to:

  • pipe codebase and system prompt to clipboard
  • use Gemini web UI
  • copy paste results back to e.g. gpt-engineer to apply to codebase

Would love help with this since my calendar is packed and then I'd be happy to run any experiment on an open source repo for the community.

I think solution is something like this:

import pyperclip

class ClipboardAI:
  def next(self, messages):
    msgs = messages_to_str(messages)
    pyperclip.copy(msgs)
    return str_to_messages(multiline_input())
    
    
def multiline_input():
  print("Enter/Paste your content. Ctrl-D or Ctrl-Z ( windows ) to save it.")
  content = []
  while True:
    try:
        line = input()
    except EOFError:
        break
    content.append(line)
  return content

As well as skipping the selection step but just feeding all the files in a given directory.

Should be straightforward to add a new agent for this.

@AntonOsika AntonOsika added enhancement New feature or request triage Interesting but stale issue. Will be close if inactive for 3 more days after label added. help wanted Extra attention is needed and removed triage Interesting but stale issue. Will be close if inactive for 3 more days after label added. labels Feb 27, 2024
@TheoMcCabe
Copy link
Collaborator

Nice i would use this too - happy to implement it - @viborc its been moved to in progress without an owner - is someone picking it up?

@viborc
Copy link
Collaborator

viborc commented Mar 4, 2024

I'm happy to assign you @TheoMcCabe right now!

@viborc
Copy link
Collaborator

viborc commented Mar 4, 2024

Actually, just seeing this, @TheoMcCabe can you look into #1037 and @AntonOsika's PR? Looks as if that one is already addressing the current one (#1036)

@AntonOsika AntonOsika self-assigned this Mar 4, 2024
@AntonOsika
Copy link
Collaborator Author

AntonOsika commented Mar 4, 2024 via email

@AntonOsika AntonOsika removed the help wanted Extra attention is needed label Mar 5, 2024
@TheoMcCabe
Copy link
Collaborator

All looks good to me- approved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

3 participants