mirror of
https://github.com/hanzo-cpp/sdk.git
synced 2026-11-20 19:55:32 +00:00
288 of hanzoai/ai's 294 operations now declare a response, against 1 before. GET /v1/models, POST /v1/chat/completions, /v1/embeddings, /v1/messages — every address a client actually calls — used to reach this client untyped, because cloud's relay carried an operation's sentence and dropped the shapes it named. It carries both now. Fleet-wide the document goes from 69% to 81% of operations declaring what comes back, which is where the ~208 new models here come from.
153 lines
3.5 KiB
C++
153 lines
3.5 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.
|
|
*/
|
|
|
|
/*
|
|
* Openai_AudioResponse_segments_inner.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_Openai_AudioResponse_segments_inner_H_
|
|
#define HANZO_MODEL_Openai_AudioResponse_segments_inner_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
#include <vector>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class Openai_AudioResponse_segments_inner
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
Openai_AudioResponse_segments_inner();
|
|
virtual ~Openai_AudioResponse_segments_inner();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// Openai_AudioResponse_segments_inner members
|
|
|
|
|
|
double getAvgLogprob() const;
|
|
bool avgLogprobIsSet() const;
|
|
void unsetAvg_logprob();
|
|
void setAvgLogprob(double value);
|
|
|
|
double getCompressionRatio() const;
|
|
bool compressionRatioIsSet() const;
|
|
void unsetCompression_ratio();
|
|
void setCompressionRatio(double value);
|
|
|
|
double getEnd() const;
|
|
bool endIsSet() const;
|
|
void unsetEnd();
|
|
void setEnd(double value);
|
|
|
|
int32_t getId() const;
|
|
bool idIsSet() const;
|
|
void unsetId();
|
|
void setId(int32_t value);
|
|
|
|
double getNoSpeechProb() const;
|
|
bool noSpeechProbIsSet() const;
|
|
void unsetNo_speech_prob();
|
|
void setNoSpeechProb(double value);
|
|
|
|
int32_t getSeek() const;
|
|
bool seekIsSet() const;
|
|
void unsetSeek();
|
|
void setSeek(int32_t value);
|
|
|
|
double getStart() const;
|
|
bool startIsSet() const;
|
|
void unsetStart();
|
|
void setStart(double value);
|
|
|
|
double getTemperature() const;
|
|
bool temperatureIsSet() const;
|
|
void unsetTemperature();
|
|
void setTemperature(double value);
|
|
|
|
utility::string_t getText() const;
|
|
bool textIsSet() const;
|
|
void unsetText();
|
|
void setText(const utility::string_t& value);
|
|
|
|
std::vector<int32_t> getTokens() const;
|
|
bool tokensIsSet() const;
|
|
void unsetTokens();
|
|
void setTokens(std::vector<int32_t> value);
|
|
|
|
bool isTransient() const;
|
|
bool transientIsSet() const;
|
|
void unsetTransient();
|
|
void setTransient(bool value);
|
|
|
|
|
|
protected:
|
|
double m_Avg_logprob;
|
|
bool m_Avg_logprobIsSet;
|
|
|
|
double m_Compression_ratio;
|
|
bool m_Compression_ratioIsSet;
|
|
|
|
double m_End;
|
|
bool m_EndIsSet;
|
|
|
|
int32_t m_Id;
|
|
bool m_IdIsSet;
|
|
|
|
double m_No_speech_prob;
|
|
bool m_No_speech_probIsSet;
|
|
|
|
int32_t m_Seek;
|
|
bool m_SeekIsSet;
|
|
|
|
double m_Start;
|
|
bool m_StartIsSet;
|
|
|
|
double m_Temperature;
|
|
bool m_TemperatureIsSet;
|
|
|
|
utility::string_t m_Text;
|
|
bool m_TextIsSet;
|
|
|
|
std::vector<int32_t> m_Tokens;
|
|
bool m_TokensIsSet;
|
|
|
|
bool m_Transient;
|
|
bool m_TransientIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_Openai_AudioResponse_segments_inner_H_ */
|