Skip to content

Commit 941a0cd

Browse files
authored
Merge pull request #72 from aftersnow/add-more-cap
feat: add more fields for capabilities
2 parents 4e6fc00 + 5128619 commit 941a0cd

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

docs/config.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,14 @@ The following terms are used in this section:
167167

168168
Whether the model can use external tools or APIs to perform tasks.
169169

170+
- **embedding** _boolean_, OPTIONAL
171+
172+
Whether the model can perform embedding tasks.
173+
174+
- **reward** _boolean_, OPTIONAL
175+
176+
Whether the model is a reward model.
177+
170178
## Example
171179

172180
Here is an example model artifact configuration JSON document:
@@ -208,6 +216,8 @@ Here is an example model artifact configuration JSON document:
208216
"knowledgeCutoff": "2024-05-21T00:00:00Z",
209217
"reasoning": true,
210218
"toolUsage": false
219+
"embedding": false,
220+
"reward": false
211221
}
212222
},
213223
"modelfs": {

specs-go/v1/config.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,12 @@ type ModelCapabilities struct {
123123
// ToolUsage indicates whether the model can use external tools
124124
// such as a calculator, a search engine, etc.
125125
ToolUsage *bool `json:"toolUsage,omitempty"`
126+
127+
// Embedding indicates whether the model can perform embedding tasks
128+
Embedding *bool `json:"embedding,omitempty"`
129+
130+
// Reward indicates whether the model is a reward model
131+
Reward *bool `json:"reward,omitempty"`
126132
}
127133

128134
// Model defines the basic information of a model.

0 commit comments

Comments
 (0)