Archived
serve: the model entry carries the capabilities /server_info reports
OpenAI's model object has no field for what a model can be asked for, so a client learned it by sending a request and reading the refusal. The entry it already fetches now carries the same capabilities object /server_info does (tools, reasoning, grammar, media, logprobs, the reasoning efforts the template takes), built by one Server::capabilities() so the two cannot disagree.
This commit is contained in:
1 parent
d5b584a4c1
commit
7c0bd03841
8 files changed
+63
-20
No files matched your search
@@ -331,6 +331,11 @@ struct ModelCard {
|
||||
int64_t max_model_len = 0;
|
||||
/* What the server loaded (ServerOptions::model_path), vLLM's `root`. Empty leaves it out. */
|
||||
std::string root;
|
||||
/* What the model can be asked for -- tools, reasoning, images -- as /server_info reports it.
|
||||
* There is no field for it in OpenAI's model object, so a client today learns it by sending a
|
||||
* request and reading the refusal; the entry it already fetches can say so up front. A JSON
|
||||
* object as text, spliced in as it is; empty leaves it out. */
|
||||
std::string capabilities;
|
||||
};
|
||||
/* The list, for GET /v1/models. */
|
||||
std::string models_body(const ModelCard& m);
|
||||
|
||||
Reference in new issue
Block a user