(call fantasy.ObjectCall)
| 1212 | } |
| 1213 | |
| 1214 | func normalizeObjectCall(call fantasy.ObjectCall) normalizedObjectCallPayload { |
| 1215 | return normalizedObjectCallPayload{ |
| 1216 | Messages: normalizeMessages(call.Prompt), |
| 1217 | Options: normalizedCallOptions{ |
| 1218 | MaxOutputTokens: call.MaxOutputTokens, |
| 1219 | Temperature: call.Temperature, |
| 1220 | TopP: call.TopP, |
| 1221 | TopK: call.TopK, |
| 1222 | PresencePenalty: call.PresencePenalty, |
| 1223 | FrequencyPenalty: call.FrequencyPenalty, |
| 1224 | }, |
| 1225 | SchemaName: call.SchemaName, |
| 1226 | SchemaDescription: call.SchemaDescription, |
| 1227 | StructuredOutput: true, |
| 1228 | ProviderOptionCount: len(call.ProviderOptions), |
| 1229 | } |
| 1230 | } |
| 1231 | |
| 1232 | func normalizeResponse(resp *fantasy.Response) normalizedResponsePayload { |
| 1233 | if resp == nil { |
no test coverage detected