Compare commits
2 Commits
ff0ec78e78
...
5d7b7bb23d
| Author | SHA1 | Date | |
|---|---|---|---|
|
5d7b7bb23d
|
|||
|
fa6857f4c8
|
@@ -17,15 +17,15 @@ typedef struct ai_message_t
|
|||||||
*/
|
*/
|
||||||
typedef struct ai_provider_t
|
typedef struct ai_provider_t
|
||||||
{
|
{
|
||||||
gchar* name; /* Provider name (e.g., "openai", "perplexity") */
|
gchar* name; /* Provider name (e.g., "openai", "perplexity") */
|
||||||
gchar* api_url; /* API endpoint URL */
|
gchar* api_url; /* API endpoint URL */
|
||||||
gchar* project_id; /* Optional project ID (for some providers) */
|
gchar* project_id; /* Optional project ID (for some providers) */
|
||||||
gchar* default_model; /* Default model for this provider */
|
gchar* default_model; /* Default model for this provider */
|
||||||
pthread_mutex_t settings_lock; /* Protects settings (iterated by the request thread) */
|
pthread_mutex_t settings_lock; /* Protects settings (iterated by the request thread) */
|
||||||
GHashTable* settings; /* Extensible per-provider settings (e.g., temperature=0.7) */
|
GHashTable* settings; /* Extensible per-provider settings (e.g., temperature=0.7) */
|
||||||
GList* models; /* Cached models (gchar*) */
|
GList* models; /* Cached models (gchar*) */
|
||||||
gboolean models_fresh; /* Whether models cache is current */
|
gboolean models_fresh; /* Whether models cache is current */
|
||||||
gint32 ref_count; /* Reference count (atomic) */
|
gint32 ref_count; /* Reference count (atomic) */
|
||||||
} AIProvider;
|
} AIProvider;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user