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

Method Model

aibridge/intercept/messages/base.go:106–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104}
105
106func (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
122func (i *interceptionBase) baseTraceAttributes(r *http.Request, streaming bool) []attribute.KeyValue {
123 return []attribute.KeyValue{

Callers 3

baseTraceAttributesMethod · 0.95
newMessagesServiceMethod · 0.95

Calls 2

isSmallFastModelMethod · 0.95
modelMethod · 0.45

Tested by

no test coverage detected