27 references to OllamaRequestOptions
Microsoft.Extensions.AI.Ollama (27)
JsonContext.cs (1)
19
[JsonSerializable(typeof(
OllamaRequestOptions
))]
OllamaChatClient.cs (24)
270
TransferMetadataValue<bool>(nameof(
OllamaRequestOptions
.embedding_only), (options, value) => options.embedding_only = value);
271
TransferMetadataValue<bool>(nameof(
OllamaRequestOptions
.f16_kv), (options, value) => options.f16_kv = value);
272
TransferMetadataValue<bool>(nameof(
OllamaRequestOptions
.logits_all), (options, value) => options.logits_all = value);
273
TransferMetadataValue<bool>(nameof(
OllamaRequestOptions
.low_vram), (options, value) => options.low_vram = value);
274
TransferMetadataValue<int>(nameof(
OllamaRequestOptions
.main_gpu), (options, value) => options.main_gpu = value);
275
TransferMetadataValue<float>(nameof(
OllamaRequestOptions
.min_p), (options, value) => options.min_p = value);
276
TransferMetadataValue<int>(nameof(
OllamaRequestOptions
.mirostat), (options, value) => options.mirostat = value);
277
TransferMetadataValue<float>(nameof(
OllamaRequestOptions
.mirostat_eta), (options, value) => options.mirostat_eta = value);
278
TransferMetadataValue<float>(nameof(
OllamaRequestOptions
.mirostat_tau), (options, value) => options.mirostat_tau = value);
279
TransferMetadataValue<int>(nameof(
OllamaRequestOptions
.num_batch), (options, value) => options.num_batch = value);
280
TransferMetadataValue<int>(nameof(
OllamaRequestOptions
.num_ctx), (options, value) => options.num_ctx = value);
281
TransferMetadataValue<int>(nameof(
OllamaRequestOptions
.num_gpu), (options, value) => options.num_gpu = value);
282
TransferMetadataValue<int>(nameof(
OllamaRequestOptions
.num_keep), (options, value) => options.num_keep = value);
283
TransferMetadataValue<int>(nameof(
OllamaRequestOptions
.num_thread), (options, value) => options.num_thread = value);
284
TransferMetadataValue<bool>(nameof(
OllamaRequestOptions
.numa), (options, value) => options.numa = value);
285
TransferMetadataValue<bool>(nameof(
OllamaRequestOptions
.penalize_newline), (options, value) => options.penalize_newline = value);
286
TransferMetadataValue<int>(nameof(
OllamaRequestOptions
.repeat_last_n), (options, value) => options.repeat_last_n = value);
287
TransferMetadataValue<float>(nameof(
OllamaRequestOptions
.repeat_penalty), (options, value) => options.repeat_penalty = value);
288
TransferMetadataValue<float>(nameof(
OllamaRequestOptions
.tfs_z), (options, value) => options.tfs_z = value);
289
TransferMetadataValue<float>(nameof(
OllamaRequestOptions
.typical_p), (options, value) => options.typical_p = value);
290
TransferMetadataValue<bool>(nameof(
OllamaRequestOptions
.use_mmap), (options, value) => options.use_mmap = value);
291
TransferMetadataValue<bool>(nameof(
OllamaRequestOptions
.use_mlock), (options, value) => options.use_mlock = value);
292
TransferMetadataValue<bool>(nameof(
OllamaRequestOptions
.vocab_only), (options, value) => options.vocab_only = value);
337
void TransferMetadataValue<T>(string propertyName, Action<
OllamaRequestOptions
, T> setOption)
OllamaChatRequest.cs (1)
15
public
OllamaRequestOptions
? Options { get; set; }
OllamaEmbeddingRequest.cs (1)
10
public
OllamaRequestOptions
? Options { get; set; }