Browse Source

Using `IReadOnlyList` instead of `IEnumerable` in `IInferenceParams`

tags/v0.7.0^2
Martin Evans 2 years ago
parent
commit
c786fb0ec8
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      LLama.Web/Common/InferenceOptions.cs
  2. +1
    -1
      LLama/Abstractions/IInferenceParams.cs
  3. +1
    -1
      LLama/Common/InferenceParams.cs

+ 1
- 1
LLama.Web/Common/InferenceOptions.cs View File

@@ -23,7 +23,7 @@ namespace LLama.Web.Common
/// <summary>
/// Sequences where the model will stop generating further tokens.
/// </summary>
public IEnumerable<string> AntiPrompts { get; set; } = Array.Empty<string>();
public IReadOnlyList<string> AntiPrompts { get; set; } = Array.Empty<string>();
/// <summary>
/// path to file for saving/loading model eval state
/// </summary>


+ 1
- 1
LLama/Abstractions/IInferenceParams.cs View File

@@ -29,7 +29,7 @@ namespace LLama.Abstractions
/// <summary>
/// Sequences where the model will stop generating further tokens.
/// </summary>
public IEnumerable<string> AntiPrompts { get; set; }
public IReadOnlyList<string> AntiPrompts { get; set; }

/// <summary>
/// 0 or lower to use vocab size


+ 1
- 1
LLama/Common/InferenceParams.cs View File

@@ -28,7 +28,7 @@ namespace LLama.Common
/// <summary>
/// Sequences where the model will stop generating further tokens.
/// </summary>
public IEnumerable<string> AntiPrompts { get; set; } = Array.Empty<string>();
public IReadOnlyList<string> AntiPrompts { get; set; } = Array.Empty<string>();

/// <summary>
/// 0 or lower to use vocab size


Loading…
Cancel
Save