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

Google Gemini Integration #512

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

Conversation

nimrod4278
Copy link

Adding the option to use Gemini as your LLM for gpt-pilot

@senko
Copy link
Collaborator

senko commented Jan 10, 2024

Thanks for the contribution @nimrod4278 🙏, this is awesome!

Trying GPT Pilot with various LLMs, we've found that other than GPT4, they mostly stumble on our prompts because we're using JSON schemas to define the expected output. How does Gemini fare in that regard?

It would be great if you could post a few screenshot or copy/paste a log showing it working (ie. making it as far as the development steps and then starting to create files/run commants, I'd count that as a success).

@nimrod4278
Copy link
Author

nimrod4278 commented Jan 14, 2024 via email

@DjWarmonger
Copy link

@nimrod4278 Screenshots sent by email didn't work.

I am particularly interested in this as we're yet to see Gemini Ultra, which is said to outperform GPT-4. Even if slightly, it it can make or break the app.

@robin-collins
Copy link

i believe that an LLM agnostic approach should be considered now that the new king of the hill for code is claude 3, and there are also some amazing opensource coding LLMs available.

@marcuslimdw
Copy link

What about a pluggable interface (ModelManager?) that could be something like this?

class ModelManager(metaclass=ABCMeta)

    @classmethod
    def build() -> Self:
        pass

    def generate_completion(data, request_type, project):  # TODO: add types
        pass

There could then be multiple implementations OpenAiModelManager, GeminiModelManager etc. that would each own configuration (loading API keys, etc. from environment variables) and formatting requests to and responses from their APIs, including any necessary retries - I too have experienced Gemini not returning things in the format you originally requested.

@Alignment-Lab-AI
Copy link

Thanks for the contribution @nimrod4278 🙏, this is awesome!

Trying GPT Pilot with various LLMs, we've found that other than GPT4, they mostly stumble on our prompts because we're using JSON schemas to define the expected output. How does Gemini fare in that regard?

It would be great if you could post a few screenshot or copy/paste a log showing it working (ie. making it as far as the development steps and then starting to create files/run commants, I'd count that as a success).

hello, significantly delayed response, but i would be interested in training a small open source model for this

@ssnaikr
Copy link

ssnaikr commented Mar 16, 2024

@nimrod4278
Have you used gemini 1.5 pro?
How were the results?

@ArtikUA
Copy link

ArtikUA commented Mar 21, 2024

@nimrod4278

senko in Discord said: "I can't say when the core team might do it (we have a bunch of stuff on our plate) but would love merge this if it gets into mergeable state"

Could you please update it to the state that it can be merged?

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

8 participants