mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-03 00:00:58 +08:00
35 lines
924 B
C#
35 lines
924 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Yi.Framework.AiHub.Domain.Shared.Dtos.OpenAi;
|
|
|
|
public class ThorChatWebSearchOptions
|
|
{
|
|
[JsonPropertyName("search_context_size")]
|
|
public string? SearchContextSize { get; set; }
|
|
|
|
[JsonPropertyName("user_location")]
|
|
public ThorUserLocation? UserLocation { get; set; }
|
|
}
|
|
|
|
public sealed class ThorUserLocation
|
|
{
|
|
[JsonPropertyName("type")] public required string Type { get; set; }
|
|
|
|
[JsonPropertyName("approximate")]
|
|
public ThorUserLocationApproximate? Approximate { get; set; }
|
|
}
|
|
|
|
public sealed class ThorUserLocationApproximate
|
|
{
|
|
[JsonPropertyName("city")]
|
|
public string? City { get; set; }
|
|
|
|
[JsonPropertyName("country")]
|
|
public string? Country { get; set; }
|
|
|
|
[JsonPropertyName("region")]
|
|
public string? Region { get; set; }
|
|
|
|
[JsonPropertyName("timezone")]
|
|
public string? Timezone { get; set; }
|
|
} |