MCPcopy Index your code
hub / github.com/coder/coder / normalizeObjectCall

Function normalizeObjectCall

coderd/x/chatd/chatdebug/model.go:1214–1230  ·  view source on GitHub ↗
(call fantasy.ObjectCall)

Source from the content-addressed store, hash-verified

1212}
1213
1214func 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
1232func normalizeResponse(resp *fantasy.Response) normalizedResponsePayload {
1233 if resp == nil {

Callers 2

GenerateObjectMethod · 0.85
StreamObjectMethod · 0.85

Calls 1

normalizeMessagesFunction · 0.85

Tested by

no test coverage detected