mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-05-20 07:12:14 +00:00
Formatting
This commit is contained in:
parent
32aa08e0c9
commit
f70079356d
@ -19,9 +19,7 @@ public sealed record GoogleEmbeddingResponse
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (reader.TokenType == JsonTokenType.StartArray)
|
if (reader.TokenType == JsonTokenType.StartArray)
|
||||||
{
|
|
||||||
return JsonSerializer.Deserialize<List<GoogleEmbedding>>(ref reader, options) ?? new();
|
return JsonSerializer.Deserialize<List<GoogleEmbedding>>(ref reader, options) ?? new();
|
||||||
}
|
|
||||||
|
|
||||||
throw new JsonException("Expected object or array for embedding.");
|
throw new JsonException("Expected object or array for embedding.");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user