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.
152 lines
3.6 KiB
C++
152 lines
3.6 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.
|
|
*/
|
|
|
|
/*
|
|
* LLM.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_LLM_H_
|
|
#define HANZO_MODEL_LLM_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class LLM
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
LLM();
|
|
virtual ~LLM();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// LLM members
|
|
|
|
|
|
/// <summary>
|
|
/// Available is false when the warehouse was not connected or a query blipped. The totals below are then honest zeros, NOT measured ones.
|
|
/// </summary>
|
|
bool isAvailable() const;
|
|
bool availableIsSet() const;
|
|
void unsetAvailable();
|
|
void setAvailable(bool value);
|
|
|
|
/// <summary>
|
|
/// CompletionTokens is the output half.
|
|
/// </summary>
|
|
int64_t getCompletionTokens() const;
|
|
bool completionTokensIsSet() const;
|
|
void unsetCompletionTokens();
|
|
void setCompletionTokens(int64_t value);
|
|
|
|
/// <summary>
|
|
/// CostCents is what they cost the org, in US cents. This IS a Hanzo charge.
|
|
/// </summary>
|
|
int64_t getCostCents() const;
|
|
bool costCentsIsSet() const;
|
|
void unsetCostCents();
|
|
void setCostCents(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Models is how many distinct models were used.
|
|
/// </summary>
|
|
int64_t getModels() const;
|
|
bool modelsIsSet() const;
|
|
void unsetModels();
|
|
void setModels(int64_t value);
|
|
|
|
/// <summary>
|
|
/// PromptTokens is the input half of that total.
|
|
/// </summary>
|
|
int64_t getPromptTokens() const;
|
|
bool promptTokensIsSet() const;
|
|
void unsetPromptTokens();
|
|
void setPromptTokens(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Requests is how many completions the org made in the window.
|
|
/// </summary>
|
|
int64_t getRequests() const;
|
|
bool requestsIsSet() const;
|
|
void unsetRequests();
|
|
void setRequests(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Source names the warehouse table the totals came from.
|
|
/// </summary>
|
|
utility::string_t getSource() const;
|
|
bool sourceIsSet() const;
|
|
void unsetSource();
|
|
void setSource(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Tokens is the total tokens those completions consumed.
|
|
/// </summary>
|
|
int64_t getTokens() const;
|
|
bool tokensIsSet() const;
|
|
void unsetTokens();
|
|
void setTokens(int64_t value);
|
|
|
|
|
|
protected:
|
|
bool m_Available;
|
|
bool m_AvailableIsSet;
|
|
|
|
int64_t m_CompletionTokens;
|
|
bool m_CompletionTokensIsSet;
|
|
|
|
int64_t m_CostCents;
|
|
bool m_CostCentsIsSet;
|
|
|
|
int64_t m_Models;
|
|
bool m_ModelsIsSet;
|
|
|
|
int64_t m_PromptTokens;
|
|
bool m_PromptTokensIsSet;
|
|
|
|
int64_t m_Requests;
|
|
bool m_RequestsIsSet;
|
|
|
|
utility::string_t m_Source;
|
|
bool m_SourceIsSet;
|
|
|
|
int64_t m_Tokens;
|
|
bool m_TokensIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_LLM_H_ */
|