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