Skip to content

Commit

Permalink
Fxing tool resources
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesrochabrun committed May 28, 2024
1 parent 5ec6e9a commit 352dc41
Showing 1 changed file with 27 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,33 @@ public struct AssistantParameters: Encodable {
topP: Double? = nil,
responseFormat: ResponseFormat? = nil)
{
self.model = action?.model ?? self.model
self.name = name
self.description = description
self.instructions = instructions
if let action {
self.model = action.model ?? self.model
}
if let name {
self.name = name
}
if let description {
self.description = description
}
if let instructions {
self.instructions = instructions
}
self.tools = tools
self.metadata = metadata
self.temperature = temperature
self.topP = topP
self.responseFormat = responseFormat
if let toolResources {
self.toolResources = toolResources
}
if let metadata {
self.metadata = metadata
}
if let temperature {
self.temperature = temperature
}
if let topP {
self.topP = topP
}
if let responseFormat {
self.responseFormat = responseFormat
}
}
}

0 comments on commit 352dc41

Please sign in to comment.