Qore OpenAiDataProvider Module Reference 1.3
Loading...
Searching...
No Matches
OpenAiFileUploadDataProvider.qc.dox.h
1// -*- mode: c++; indent-tabs-mode: nil -*-
3
25// for the manual processing of the file API with a raw HTTP call
26
28namespace OpenAiDataProvider {
31
32public:
34 const ProviderInfo = ...;
35
36
39
40
43
46
48 constructor(*RestClient rest) ;
49
50
52 string getName();
53
54
56
61protected:
62 auto doRequestImpl(auto req, *hash<auto> request_options);
63public:
64
65
67
69protected:
70 *DataProvider::AbstractDataProviderType getRequestTypeImpl();
71public:
72
73
75
77protected:
78 *DataProvider::AbstractDataProviderType getResponseTypeImpl();
79public:
80
81
83protected:
84 hash<DataProviderInfo> getStaticInfoImpl();
85public:
86
87};
88
90class OpenAiFileUploadRequestType : public HashDataType {
91
92public:
94 const Fields = ...;
95
96
99
100};
101
104};
The OpenAi data provider common base class.
Definition OpenAiDataProviderCommon.qc.dox.h:28
*RestClient::RestClient rest
The REST client object for API calls.
Definition OpenAiDataProviderCommon.qc.dox.h:54
The OpenAi data provider class.
Definition OpenAiFileUploadDataProvider.qc.dox.h:30
const RequestType
Request type.
Definition OpenAiFileUploadDataProvider.qc.dox.h:42
const ProviderSummaryInfo
Provider summary info.
Definition OpenAiFileUploadDataProvider.qc.dox.h:38
string getName()
Returns the data provider name.
const ResponseType
Response type.
Definition OpenAiFileUploadDataProvider.qc.dox.h:45
constructor(*RestClient rest)
Creates the object from the arguments.
hash< DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
const ProviderInfo
Provider info.
Definition OpenAiFileUploadDataProvider.qc.dox.h:34
*DataProvider::AbstractDataProviderType getResponseTypeImpl()
Returns the description of a response message, if this object represents a response message.
*DataProvider::AbstractDataProviderType getRequestTypeImpl()
Returns the description of a successful request message, if any.
auto doRequestImpl(auto req, *hash< auto > request_options)
Makes a request and returns the response.
The file upload request type.
Definition OpenAiFileUploadDataProvider.qc.dox.h:90
const Fields
fields
Definition OpenAiFileUploadDataProvider.qc.dox.h:94
Qore OpenAiDataProvider module definition.
Definition OpenAiAssistantCreateDataProvider.qc.dox.h:26
const OpenAiFileDataType
File type constant.
Definition OpenAiFileDataProvider.qc.dox.h:133
const OpenAiFileUploadRequestType
File upload request type constant.
Definition OpenAiFileUploadDataProvider.qc.dox.h:103