feat(clients): models: Gemini on Vertex, Model Garden, Claude, endpoint models, media, VertexModel

One call table verified against Discovery (29 calls), live-verified read-only
with an express key and a service account token, /agent/models example routes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-24 04:40:00 +02:00
co-authored by Claude Sonnet 5.5
parent 6d744a433f
commit 6b731643bf
30 changed files with 3200 additions and 3 deletions
+26
View File
@@ -0,0 +1,26 @@
#include "google/models/vertex_model.h"
#include "google/errors.h"
namespace molo::google::models {
VertexModel::VertexModel(std::shared_ptr<Gemini> gemini, std::string default_model)
: gemini_(std::move(gemini)), default_model_(std::move(default_model)) {
VertexTarget::require_segment(default_model_, "model");
}
const std::string& VertexModel::model_for(const GenerateRequest& request) const {
return request.model.empty() ? default_model_ : request.model;
}
GenerateResponse VertexModel::generate(const GenerateRequest& request) {
return gemini_->generate(model_for(request), request);
}
void VertexModel::stream(
const GenerateRequest& request,
const std::function<bool(const GenerateResponse&)>& on_chunk) {
gemini_->stream(model_for(request), request, on_chunk);
}
} // namespace molo::google::models