• Query GPT-4o with a user question and repository context.

    Parameters

    • dir: string

      The directory containing the repository files.

    • user_query: string

      The user's question.

    • OptionalgitignorePath: string

      Optional path to the .gitignore file.

    • OptionaladditionalIgnorePath: string[]

    Returns Promise<string>

    The response from GPT-4o.

    Error if the token limit is exceeded.