summaryrefslogtreecommitdiff
path: root/models
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2025-01-15 16:46:59 +0300
committerGrail Finder <wohilas@gmail.com>2025-01-15 16:46:59 +0300
commit1ea19ba11ec835370399fce9de3954ca2f58829c (patch)
tree0d613f1418bb04fd03e36146177e952192391923 /models
parent85f96aa4013f9cedaf333c6d1027fe6d901cf561 (diff)
Feat (status line): add model name
Diffstat (limited to 'models')
-rw-r--r--models/models.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/models/models.go b/models/models.go
index bbf1bd0..eb215a6 100644
--- a/models/models.go
+++ b/models/models.go
@@ -125,3 +125,21 @@ type EmbeddingResp struct {
// Object string `json:"object"`
// } `json:"data"`
// }
+
+type LLMModels struct {
+ Object string `json:"object"`
+ Data []struct {
+ ID string `json:"id"`
+ Object string `json:"object"`
+ Created int `json:"created"`
+ OwnedBy string `json:"owned_by"`
+ Meta struct {
+ VocabType int `json:"vocab_type"`
+ NVocab int `json:"n_vocab"`
+ NCtxTrain int `json:"n_ctx_train"`
+ NEmbd int `json:"n_embd"`
+ NParams int64 `json:"n_params"`
+ Size int64 `json:"size"`
+ } `json:"meta"`
+ } `json:"data"`
+}