()
| 103 | } |
| 104 | |
| 105 | func (i *interceptionBase) Model() string { |
| 106 | if len(i.reqPayload) == 0 { |
| 107 | return "coder-aibridge-unknown" |
| 108 | } |
| 109 | |
| 110 | if i.bedrockCfg != nil { |
| 111 | model := i.bedrockCfg.Model |
| 112 | if i.isSmallFastModel() { |
| 113 | model = i.bedrockCfg.SmallFastModel |
| 114 | } |
| 115 | return model |
| 116 | } |
| 117 | |
| 118 | return i.reqPayload.model() |
| 119 | } |
| 120 | |
| 121 | func (i *interceptionBase) baseTraceAttributes(r *http.Request, streaming bool) []attribute.KeyValue { |
| 122 | return []attribute.KeyValue{ |
no test coverage detected