Skip to content

Commit 472db76

Browse files
committed
refactor, Clarify that a field is a model ID
1 parent 91ec281 commit 472db76

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

model/llm/llm.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ import (
2626
type Model struct {
2727
// provider is the client to query the LLM model.
2828
provider provider.Query
29-
// model holds the identifier for the LLM model.
30-
model string
29+
// modelID holds the identifier for the LLM modelID.
30+
modelID string
3131

3232
// attributes holds query attributes.
3333
attributes map[string]string
@@ -45,7 +45,7 @@ func NewModel(provider provider.Query, modelIDWithAttributes string) (llmModel *
4545

4646
queryAttempts: 1,
4747
}
48-
llmModel.model, llmModel.attributes = model.ParseModelID(modelIDWithAttributes)
48+
llmModel.modelID, llmModel.attributes = model.ParseModelID(modelIDWithAttributes)
4949

5050
return llmModel
5151
}
@@ -54,7 +54,7 @@ func NewModel(provider provider.Query, modelIDWithAttributes string) (llmModel *
5454
func NewModelWithMetaInformation(provider provider.Query, modelIdentifier string, metaInformation *model.MetaInformation) *Model {
5555
return &Model{
5656
provider: provider,
57-
model: modelIdentifier,
57+
modelID: modelIdentifier,
5858

5959
queryAttempts: 1,
6060

@@ -245,7 +245,7 @@ var _ model.Model = (*Model)(nil)
245245

246246
// ID returns the unique ID of this model.
247247
func (m *Model) ID() (id string) {
248-
return m.model
248+
return m.modelID
249249
}
250250

251251
var _ model.CapabilityWriteTests = (*Model)(nil)

0 commit comments

Comments
 (0)