Skip to content

Commit bbc4792

Browse files
committed
Make Annotation properties - public
1 parent c696c73 commit bbc4792

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Sources/OpenAI/Public/Models/Annotation.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@ import Foundation
22

33
public struct Annotation: Codable, Equatable, Sendable {
44
/// The type of the URL citation. Always `url_citation`.
5-
let type: String
5+
public let type: String
66
/// A URL citation when using web search.
7-
let urlCitation: URLCitation
7+
public let urlCitation: URLCitation
88

99
public enum CodingKeys: String, CodingKey {
1010
case type, urlCitation = "url_citation"
1111
}
1212

1313
public struct URLCitation: Codable, Equatable, Sendable {
1414
/// The index of the last character of the URL citation in the message.
15-
let endIndex: Int
15+
public let endIndex: Int
1616
/// The index of the first character of the URL citation in the message.
17-
let startIndex: Int
17+
public let startIndex: Int
1818
/// The title of the web resource.
19-
let title: String
19+
public let title: String
2020
/// The URL of the web resource.
21-
let url: String
21+
public let url: String
2222

2323
public enum CodingKeys: String, CodingKey {
2424
case endIndex = "end_index"

0 commit comments

Comments
 (0)