mirror of
https://github.com/hanzo-cpp/sdk.git
synced 2026-11-20 19:55:32 +00:00
The projection these were generated from was a month old and predated the compute migration, so every one of them described /v1/visor — which the API serves at zero paths now. That is why a hand-written console client and a generated one had drifted the same way at the same time. No /v1/visor path survives here. The word still appears as a source-plane value and inside gvisor and supervisor, which are not this rename.
130 lines
3.0 KiB
C++
130 lines
3.0 KiB
C++
/**
|
|
* Hanzo Cloud API
|
|
* The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
|
|
*
|
|
* The version of the OpenAPI document: v1
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI-Generator 7.14.0.
|
|
* https://openapi-generator.tech
|
|
* Do not edit the class manually.
|
|
*/
|
|
|
|
/*
|
|
* ModelRow.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_ModelRow_H_
|
|
#define HANZO_MODEL_ModelRow_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class ModelRow
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
ModelRow();
|
|
virtual ~ModelRow();
|
|
|
|
/////////////////////////////////////////////
|
|
/// ModelBase overrides
|
|
|
|
void validate() override;
|
|
|
|
web::json::value toJson() const override;
|
|
bool fromJson(const web::json::value& json) override;
|
|
|
|
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
|
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// ModelRow members
|
|
|
|
|
|
/// <summary>
|
|
/// Model is the model id, e.g. zen5-coder.
|
|
/// </summary>
|
|
utility::string_t getModel() const;
|
|
bool modelIsSet() const;
|
|
void unsetModel();
|
|
void setModel(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Pct is this model's share of the window's returned spend, 0..100, one decimal.
|
|
/// </summary>
|
|
double getPct() const;
|
|
bool pctIsSet() const;
|
|
void unsetPct();
|
|
void setPct(double value);
|
|
|
|
/// <summary>
|
|
/// Provider is who served it.
|
|
/// </summary>
|
|
utility::string_t getProvider() const;
|
|
bool providerIsSet() const;
|
|
void unsetProvider();
|
|
void setProvider(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Requests is how many calls went to this model.
|
|
/// </summary>
|
|
int64_t getRequests() const;
|
|
bool requestsIsSet() const;
|
|
void unsetRequests();
|
|
void setRequests(int64_t value);
|
|
|
|
/// <summary>
|
|
/// SpendCents is what they cost, in cents.
|
|
/// </summary>
|
|
int64_t getSpendCents() const;
|
|
bool spendCentsIsSet() const;
|
|
void unsetSpendCents();
|
|
void setSpendCents(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Tokens is prompt plus completion tokens over those calls.
|
|
/// </summary>
|
|
int64_t getTokens() const;
|
|
bool tokensIsSet() const;
|
|
void unsetTokens();
|
|
void setTokens(int64_t value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_Model;
|
|
bool m_ModelIsSet;
|
|
|
|
double m_Pct;
|
|
bool m_PctIsSet;
|
|
|
|
utility::string_t m_Provider;
|
|
bool m_ProviderIsSet;
|
|
|
|
int64_t m_Requests;
|
|
bool m_RequestsIsSet;
|
|
|
|
int64_t m_SpendCents;
|
|
bool m_SpendCentsIsSet;
|
|
|
|
int64_t m_Tokens;
|
|
bool m_TokensIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_ModelRow_H_ */
|