(ctx context.Context, req *aibridge.PromptUsageRecord)
| 53 | } |
| 54 | |
| 55 | func (t *recorderTranslation) RecordPromptUsage(ctx context.Context, req *aibridge.PromptUsageRecord) error { |
| 56 | _, err := t.client.RecordPromptUsage(ctx, &proto.RecordPromptUsageRequest{ |
| 57 | InterceptionId: req.InterceptionID, |
| 58 | MsgId: req.MsgID, |
| 59 | Prompt: req.Prompt, |
| 60 | Metadata: marshalForProto(req.Metadata), |
| 61 | CreatedAt: timestamppb.New(req.CreatedAt), |
| 62 | }) |
| 63 | return err |
| 64 | } |
| 65 | |
| 66 | func (t *recorderTranslation) RecordTokenUsage(ctx context.Context, req *aibridge.TokenUsageRecord) error { |
| 67 | merged := req.Metadata |
nothing calls this directly
no test coverage detected