-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🎶 add methods ListModels and GetModel
- Loading branch information
Jochen Kirstätter
committed
Feb 29, 2024
1 parent
337bff6
commit bb24743
Showing
7 changed files
with
142 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#if NET472_OR_GREATER || NETSTANDARD2_0 | ||
using System.Collections.Generic; | ||
#endif | ||
|
||
namespace Mscc.GenerativeAI | ||
{ | ||
internal class ListModelsResponse | ||
{ | ||
public List<ModelResponse>? Models { get; set; } | ||
} | ||
} |
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,23 @@ | ||
#if NET472_OR_GREATER || NETSTANDARD2_0 | ||
using System.Collections.Generic; | ||
#endif | ||
|
||
using System.Diagnostics; | ||
|
||
namespace Mscc.GenerativeAI | ||
{ | ||
[DebuggerDisplay("{DisplayName} ({Name})")] | ||
public class ModelResponse | ||
{ | ||
public string? Name { get; set; } = default; | ||
public string? Version { get; set; } = default; | ||
public string? DisplayName { get; set; } = default; | ||
public string? Description { get; set; } = default; | ||
public int? InputTokenLimit { get; set; } = default; | ||
public int? OutputTokenLimit { get; set; } = default; | ||
public List<string>? SupportedGenerationMethods { get; set; } | ||
public float? Temperature { get; set; } = default; | ||
public float? TopP { get; set; } = default; | ||
public int? TopK { get; set; } = default; | ||
} | ||
} |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"api_key": "", | ||
"project_id": "", | ||
"region": "", | ||
"region": "us-central1", | ||
"access_token": "" | ||
} |