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

Web package documentation is not right? #29

Open
Brandon689 opened this issue Aug 9, 2024 · 2 comments
Open

Web package documentation is not right? #29

Brandon689 opened this issue Aug 9, 2024 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@Brandon689
Copy link

using Mscc.GenerativeAI.Web;

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddGenerativeAI(builder.Configuration.GetSection("Gemini"));

var app = builder.Build();

app.MapGet("/", async (IGenerativeModelService service) =>
{
    var result = await service.GenerateContent("Write about the history of Mauritius.");
    return result.Text;
});

app.Run();

IGenerativeModelService doesnt contain any of the definitions of GenerativeModel

@Brandon689
Copy link
Author

Okay so its out of date, the sample is up to date. Also I found you can't have both nuget packages installed, it causes strange errors.

@jochenkirstaetter
Copy link
Contributor

Hi @Brandon689 ,

Thanks for reporting this. Please, what exactly is not right or out of date?
Is there any pending issue that I shall look into? Kindly let me know.

Thanks and cheers, JoKi

@jochenkirstaetter jochenkirstaetter added the documentation Improvements or additions to documentation label Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants