openai-api/cexport/cdllexport.h

26 lines
412 B
C
Raw Permalink Normal View History

2025-04-14 21:01:36 +08:00
#ifndef CDLLEXPORT_H
#define CDLLEXPORT_H
#ifdef __cplusplus
extern "C" {
#endif
typedef struct ExchangeData {
char* content;
unsigned int len;
unsigned int pk;
unsigned int ck;
} ExchangeData;
void init_api(const char* ip, unsigned int port);
ExchangeData* ask_openai(const char* content);
void free_exchange_data(ExchangeData* data);
#ifdef __cplusplus
}
#endif
#endif // CDLLEXPORT_H