MCPcopy Create free account
hub / github.com/coder/aibridge / Model

Method Model

intercept/messages/base.go:105–119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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