Prompt Workbench Core
1.0.0
A C library for prompt testing and evaluation with OpenAI-compatible APIs (Educational Use Only)
Loading...
Searching...
No Matches
include
api-client.h
Go to the documentation of this file.
1
/*
2
* Prompt Workbench Core - API Client
3
* Copyright (c) 2025 nnlazaro
4
*
5
* This file is part of Prompt Workbench Core, licensed under the
6
* Educational and Non-Commercial Use License.
7
* See LICENSE file for details.
8
*
9
* FOR EDUCATIONAL USE ONLY - NOT FOR PRODUCTION OR COMMERCIAL USE
10
*/
11
12
#ifndef API_CLIENT_H
13
#define API_CLIENT_H
14
15
#ifdef __cplusplus
16
extern
"C"
{
17
#endif
18
44
char
*
api_ask
(
const
char
* api_endpoint,
45
const
char
* api_key,
46
const
char
* model,
47
const
char
* system_prompt,
48
const
char
* user_prompt);
49
54
void
api_ask_free
(
char
* response);
55
56
#ifdef __cplusplus
57
}
58
#endif
59
60
#endif
/* API_CLIENT_H */
api_ask
char * api_ask(const char *api_endpoint, const char *api_key, const char *model, const char *system_prompt, const char *user_prompt)
Definition
api-client.c:41
api_ask_free
void api_ask_free(char *response)
Free a response string returned by API functions.
Definition
api-client.c:167
Generated on Fri Oct 10 2025 11:33:07 for Prompt Workbench Core by
1.9.8