Support for Google Gemini · Issue #23 · intitni/CustomSuggestionServiceForCopilotForXcode · GitHub
Skip to content

Support for Google Gemini #23

Open

Description

@LeonidKokhnovich

Hi!

Thank you for such a great extension and all the contributions that have been added to this project.

I wonder if there is a plan to add support for Google Gemini into the tool?

If no, do we think there is some additional help needed to add it and externally produced changes can be accepted into the mainline branch?

Thanks again!

Activity

  1. intitni commented on May 2, 2025

    @intitni
    Owner

    Hello, I just checked the app and the code, we do have support using Google Gemini (Chat Completion API) as a service provider. But right now we don't have a good enough prompt strategy for using chat completion APIs as a code completion provider. So chat completion APIs are not recommended at the moment.

    If you want to help, you can try creating a RequestStrategy that works for Google Gemini. In the request strategy, you will have to define the rule to generate the prompt and to parse the response for the code completion. You can use AnthropicRequestStrategy as an example.

    Another thing you may want to try is to let the model return the code completion as a tool call. But tool calling is not implemented in this project so it may require some extra work. Please check GoogleGeminiService for details. You may also need to update the dependency google/generative-ai-swift for the latest features of Google Gemini.

    Pull requests are always welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions