aboutsummaryrefslogtreecommitdiff
path: root/pplx_server.h
blob: a15483d5ce499f40b3d91a228f7ebc0754d6169b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef PPLX_SERVER_H
#define PPLX_SERVER_H

#include <stdbool.h>

typedef struct {
    const char *id;
    const char *path;
} pplx_server_model_spec_t;

typedef struct {
    const pplx_server_model_spec_t *models;
    int n_models;
    const char *host;
    int port;
    int batch_size;
    int batch_wait_us;
    int use_mlx;
    int enable_cors;
    const char *api_key;
} pplx_server_config_t;

int pplx_run_server(const pplx_server_config_t *cfg);

#endif