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

Safety settings #23

Open
xolli opened this issue Jul 7, 2024 · 1 comment
Open

Safety settings #23

xolli opened this issue Jul 7, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@xolli
Copy link

xolli commented Jul 7, 2024

How can I set multiple safety settings? I can set only 1 safety parameter in IGeminiClient::TextPrompt

  public interface IGeminiClient
  {
    Task<GeminiMessageResponse?> TextPrompt(
      string message,
      GenerationConfig? generationConfig = null,
      SafetySetting? safetySetting = null);

    Task<GeminiMessageResponse?> TextPrompt(
      List<DotnetGeminiSDK.Model.Request.Content> messages,
      GenerationConfig? generationConfig = null,
      SafetySetting? safetySetting = null);
...

Describe the solution you'd like
SafetySetting? safetySetting -> List<SafetySetting>? safetySetting

@gsilvamartin
Copy link
Owner

Thanks for suggestion, will include this in another release

@gsilvamartin gsilvamartin added the enhancement New feature or request label Jul 29, 2024
@gsilvamartin gsilvamartin self-assigned this Jul 29, 2024
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
None yet
Development

No branches or pull requests

2 participants