-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from gsilvamartin/16-add-get-model-and-list-mo…
…del-method Gel model and models
- Loading branch information
Showing
4 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
|
||
namespace DotnetGeminiSDK.Model.Response | ||
{ | ||
public class RootGeminiModelResponse | ||
{ | ||
[JsonProperty("models", NullValueHandling = NullValueHandling.Ignore)] | ||
public IEnumerable<GeminiModelResponse?> GeminiModelResponses { get; set; } = new List<GeminiModelResponse>(); | ||
} | ||
|
||
public class GeminiModelResponse | ||
{ | ||
[JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] | ||
public string Name { get; set; } | ||
|
||
[JsonProperty("version", NullValueHandling = NullValueHandling.Ignore)] | ||
public string Version { get; set; } | ||
|
||
[JsonProperty("displayName", NullValueHandling = NullValueHandling.Ignore)] | ||
public string DisplayName { get; set; } | ||
|
||
[JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)] | ||
public string Description { get; set; } | ||
|
||
[JsonProperty("inputTokenLimit", NullValueHandling = NullValueHandling.Ignore)] | ||
public int InputTokenLimit { get; set; } | ||
|
||
[JsonProperty("outputTokenLimit", NullValueHandling = NullValueHandling.Ignore)] | ||
public int OutputTokenLimit { get; set; } | ||
|
||
[JsonProperty("supportedGenerationMethods", NullValueHandling = NullValueHandling.Ignore)] | ||
public List<string> SupportedGenerationMethods { get; set; } | ||
|
||
[JsonProperty("temperature", NullValueHandling = NullValueHandling.Ignore)] | ||
public double Temperature { get; set; } | ||
|
||
[JsonProperty("topP", NullValueHandling = NullValueHandling.Ignore)] | ||
public double TopP { get; set; } | ||
|
||
[JsonProperty("topK", NullValueHandling = NullValueHandling.Ignore)] | ||
public double TopK { get; set; } | ||
} | ||
} |