Skip to content

Commit

Permalink
Vector store ids
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesrochabrun committed May 28, 2024
1 parent cb2c897 commit 5ec6e9a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Sources/OpenAI/Public/Shared/ToolResources.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,28 @@ public struct ToolResources: Codable {

public struct FileSearch: Codable {

let vectorStoreIds: [String]
public let vectorStoreIds: [String]

enum CodingKeys: String, CodingKey {
case vectorStoreIds = "vector_store_ids"
}

public init(vectorStoreIds: [String]) {
self.vectorStoreIds = vectorStoreIds
}
}

public struct CodeInterpreter: Codable {

let fileIds: [String]
public let fileIds: [String]

enum CodingKeys: String, CodingKey {
case fileIds = "file_ids"
}

public init(fileIds: [String]) {
self.fileIds = fileIds
}
}

enum CodingKeys: String, CodingKey {
Expand Down

0 comments on commit 5ec6e9a

Please sign in to comment.