weave-typescript 0.11.12 → 0.11.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/weaveapi/project/v1/project.pb.d.ts +40 -0
- package/dist/weaveapi/project/v1/project.pb.js +263 -0
- package/dist/weaveapi/project/v1/service.pb.d.ts +181 -0
- package/dist/weaveapi/project/v1/service.pb.js +1066 -0
- package/dist/weaveapi/workflow/v1/service.pb.d.ts +235 -0
- package/dist/weaveapi/workflow/v1/service.pb.js +1834 -0
- package/dist/weaveapi/workflow/v1/workflow.pb.d.ts +76 -0
- package/dist/weaveapi/workflow/v1/workflow.pb.js +539 -0
- package/dist/weavesql/llmxdb/capabilities_sql.d.ts +7 -7
- package/dist/weavesql/llmxdb/capabilities_sql.js +7 -7
- package/dist/weavesql/llmxdb/changes_sql.d.ts +5 -5
- package/dist/weavesql/llmxdb/changes_sql.js +6 -6
- package/dist/weavesql/llmxdb/models_sql.d.ts +6 -6
- package/dist/weavesql/llmxdb/models_sql.js +6 -6
- package/dist/weavesql/llmxdb/providers_sql.d.ts +5 -5
- package/dist/weavesql/llmxdb/providers_sql.js +5 -5
- package/dist/weavesql/llmxdb/scraper_runs_sql.d.ts +5 -5
- package/dist/weavesql/llmxdb/scraper_runs_sql.js +5 -5
- package/dist/weavesql/llmxdb/search_sql.d.ts +7 -7
- package/dist/weavesql/llmxdb/search_sql.js +7 -7
- package/dist/weavesql/weavedb/llm_provider_credentials_sql.d.ts +1 -1
- package/dist/weavesql/weavedb/llm_provider_credentials_sql.js +1 -1
- package/dist/weavesql/weavedb/project_sql.d.ts +95 -0
- package/dist/weavesql/weavedb/project_sql.js +166 -0
- package/dist/weavesql/weavedb/storage_sql.d.ts +2 -2
- package/dist/weavesql/weavedb/storage_sql.js +2 -2
- package/dist/weavesql/weavedb/workflow_sql.d.ts +142 -0
- package/dist/weavesql/weavedb/workflow_sql.js +260 -0
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ exports.getModelsWithStructuredResponse = getModelsWithStructuredResponse;
|
|
|
10
10
|
exports.getModelsWithVision = getModelsWithVision;
|
|
11
11
|
exports.getModelsWithCapabilityQuery = `-- name: GetModelsWithCapability :many
|
|
12
12
|
SELECT id, provider_id, model_id, slug, name, display_name, description, version, capabilities, classification, architecture, performance, token_info, pricing, api_details, training, licensing, safety, availability, technical_specs, release_date, training_data_cutoff, deprecation_date, metadata, last_scraped_at, is_active, is_deprecated, created_at, updated_at
|
|
13
|
-
FROM llm_models
|
|
13
|
+
FROM weave.llm_models
|
|
14
14
|
WHERE is_active = true
|
|
15
15
|
AND capabilities->'configs' ? $1
|
|
16
16
|
AND ($2::uuid IS NULL OR provider_id = $2)
|
|
@@ -57,7 +57,7 @@ async function getModelsWithCapability(client, args) {
|
|
|
57
57
|
}
|
|
58
58
|
exports.getModelCapabilitiesQuery = `-- name: GetModelCapabilities :one
|
|
59
59
|
SELECT capabilities
|
|
60
|
-
FROM llm_models
|
|
60
|
+
FROM weave.llm_models
|
|
61
61
|
WHERE slug = $1
|
|
62
62
|
AND is_active = true`;
|
|
63
63
|
async function getModelCapabilities(client, args) {
|
|
@@ -76,7 +76,7 @@ async function getModelCapabilities(client, args) {
|
|
|
76
76
|
}
|
|
77
77
|
exports.getCapabilityConfigQuery = `-- name: GetCapabilityConfig :one
|
|
78
78
|
SELECT capabilities->'configs'->@capability_type as config
|
|
79
|
-
FROM llm_models
|
|
79
|
+
FROM weave.llm_models
|
|
80
80
|
WHERE slug = $1
|
|
81
81
|
AND is_active = true`;
|
|
82
82
|
async function getCapabilityConfig(client, args) {
|
|
@@ -96,7 +96,7 @@ async function getCapabilityConfig(client, args) {
|
|
|
96
96
|
exports.checkModelHasCapabilityQuery = `-- name: CheckModelHasCapability :one
|
|
97
97
|
SELECT EXISTS (
|
|
98
98
|
SELECT 1
|
|
99
|
-
FROM llm_models
|
|
99
|
+
FROM weave.llm_models
|
|
100
100
|
WHERE id = $1
|
|
101
101
|
AND capabilities->'configs' ? $2
|
|
102
102
|
) as has_capability`;
|
|
@@ -116,7 +116,7 @@ async function checkModelHasCapability(client, args) {
|
|
|
116
116
|
}
|
|
117
117
|
exports.getModelCapabilityTypesQuery = `-- name: GetModelCapabilityTypes :many
|
|
118
118
|
SELECT jsonb_object_keys(capabilities->'configs') as capability_type
|
|
119
|
-
FROM llm_models
|
|
119
|
+
FROM weave.llm_models
|
|
120
120
|
WHERE id = $1
|
|
121
121
|
ORDER BY 1`;
|
|
122
122
|
async function getModelCapabilityTypes(client, args) {
|
|
@@ -135,7 +135,7 @@ exports.getModelsWithStructuredResponseQuery = `-- name: GetModelsWithStructured
|
|
|
135
135
|
SELECT m.id, m.provider_id, m.model_id, m.slug, m.name, m.display_name, m.description, m.version, m.capabilities, m.classification, m.architecture, m.performance, m.token_info, m.pricing, m.api_details, m.training, m.licensing, m.safety, m.availability, m.technical_specs, m.release_date, m.training_data_cutoff, m.deprecation_date, m.metadata, m.last_scraped_at, m.is_active, m.is_deprecated, m.created_at, m.updated_at,
|
|
136
136
|
c.config->>'max_schema_depth' as max_schema_depth,
|
|
137
137
|
c.config->>'requires_json_mode' as requires_json_mode
|
|
138
|
-
FROM llm_models m,
|
|
138
|
+
FROM weave.llm_models m,
|
|
139
139
|
LATERAL (
|
|
140
140
|
SELECT capabilities->'configs'->'CAPABILITY_TYPE_STRUCTURED_RESPONSE' as config
|
|
141
141
|
) c
|
|
@@ -189,7 +189,7 @@ exports.getModelsWithVisionQuery = `-- name: GetModelsWithVision :many
|
|
|
189
189
|
SELECT m.id, m.provider_id, m.model_id, m.slug, m.name, m.display_name, m.description, m.version, m.capabilities, m.classification, m.architecture, m.performance, m.token_info, m.pricing, m.api_details, m.training, m.licensing, m.safety, m.availability, m.technical_specs, m.release_date, m.training_data_cutoff, m.deprecation_date, m.metadata, m.last_scraped_at, m.is_active, m.is_deprecated, m.created_at, m.updated_at,
|
|
190
190
|
c.config->>'max_images_per_request' as max_images,
|
|
191
191
|
c.config->>'supported_formats' as formats
|
|
192
|
-
FROM llm_models m,
|
|
192
|
+
FROM weave.llm_models m,
|
|
193
193
|
LATERAL (
|
|
194
194
|
SELECT capabilities->'configs'->'CAPABILITY_TYPE_VISION' as config
|
|
195
195
|
) c
|
|
@@ -2,7 +2,7 @@ import { QueryArrayConfig, QueryArrayResult } from "pg";
|
|
|
2
2
|
interface Client {
|
|
3
3
|
query: (config: QueryArrayConfig) => Promise<QueryArrayResult>;
|
|
4
4
|
}
|
|
5
|
-
export declare const insertModelChangeQuery = "-- name: InsertModelChange :one\nINSERT INTO model_changes (model_id, field_name, old_value, new_value, change_type)\nVALUES ($1, $2, $3, $4, $5)\nRETURNING id, model_id, field_name, old_value, new_value, change_type, detected_at, created_at";
|
|
5
|
+
export declare const insertModelChangeQuery = "-- name: InsertModelChange :one\nINSERT INTO weave.model_changes (model_id, field_name, old_value, new_value, change_type)\nVALUES ($1, $2, $3, $4, $5)\nRETURNING id, model_id, field_name, old_value, new_value, change_type, detected_at, created_at";
|
|
6
6
|
export interface InsertModelChangeArgs {
|
|
7
7
|
modelId: string;
|
|
8
8
|
fieldName: string;
|
|
@@ -21,7 +21,7 @@ export interface InsertModelChangeRow {
|
|
|
21
21
|
createdAt: Date | null;
|
|
22
22
|
}
|
|
23
23
|
export declare function insertModelChange(client: Client, args: InsertModelChangeArgs): Promise<InsertModelChangeRow | null>;
|
|
24
|
-
export declare const batchInsertChangesQuery = "-- name: BatchInsertChanges :copyfrom\nINSERT INTO model_changes (\n model_id, field_name, old_value, new_value, change_type\n) VALUES (\n $1, $2, $3, $4, $5\n)";
|
|
24
|
+
export declare const batchInsertChangesQuery = "-- name: BatchInsertChanges :copyfrom\nINSERT INTO weave.model_changes (\n model_id, field_name, old_value, new_value, change_type\n) VALUES (\n $1, $2, $3, $4, $5\n)";
|
|
25
25
|
export interface BatchInsertChangesArgs {
|
|
26
26
|
modelId: string;
|
|
27
27
|
fieldName: string;
|
|
@@ -29,7 +29,7 @@ export interface BatchInsertChangesArgs {
|
|
|
29
29
|
newValue: string | null;
|
|
30
30
|
changeType: string | null;
|
|
31
31
|
}
|
|
32
|
-
export declare const getRecentChangesQuery = "-- name: GetRecentChanges :many\nSELECT id, model_id, field_name, old_value, new_value, change_type, detected_at, created_at\nFROM model_changes\nWHERE detected_at > NOW() - INTERVAL '24 hours'\nORDER BY detected_at DESC\nLIMIT $1";
|
|
32
|
+
export declare const getRecentChangesQuery = "-- name: GetRecentChanges :many\nSELECT id, model_id, field_name, old_value, new_value, change_type, detected_at, created_at\nFROM weave.model_changes\nWHERE detected_at > NOW() - INTERVAL '24 hours'\nORDER BY detected_at DESC\nLIMIT $1";
|
|
33
33
|
export interface GetRecentChangesArgs {
|
|
34
34
|
limitCount: string;
|
|
35
35
|
}
|
|
@@ -44,7 +44,7 @@ export interface GetRecentChangesRow {
|
|
|
44
44
|
createdAt: Date | null;
|
|
45
45
|
}
|
|
46
46
|
export declare function getRecentChanges(client: Client, args: GetRecentChangesArgs): Promise<GetRecentChangesRow[]>;
|
|
47
|
-
export declare const getChangesByModelQuery = "-- name: GetChangesByModel :many\nSELECT id, model_id, field_name, old_value, new_value, change_type, detected_at, created_at\nFROM model_changes\nWHERE model_id = $1\nORDER BY detected_at DESC\nLIMIT $2";
|
|
47
|
+
export declare const getChangesByModelQuery = "-- name: GetChangesByModel :many\nSELECT id, model_id, field_name, old_value, new_value, change_type, detected_at, created_at\nFROM weave.model_changes\nWHERE model_id = $1\nORDER BY detected_at DESC\nLIMIT $2";
|
|
48
48
|
export interface GetChangesByModelArgs {
|
|
49
49
|
modelId: string;
|
|
50
50
|
limitCount: string;
|
|
@@ -60,7 +60,7 @@ export interface GetChangesByModelRow {
|
|
|
60
60
|
createdAt: Date | null;
|
|
61
61
|
}
|
|
62
62
|
export declare function getChangesByModel(client: Client, args: GetChangesByModelArgs): Promise<GetChangesByModelRow[]>;
|
|
63
|
-
export declare const getChangesByTypeQuery = "-- name: GetChangesByType :many\nSELECT mc.id, mc.model_id, mc.field_name, mc.old_value, mc.new_value, mc.change_type, mc.detected_at, mc.created_at,\n lm.slug as model_slug,\n lm.name as model_name\nFROM model_changes mc\n JOIN llm_models lm ON mc.model_id = lm.id\nWHERE mc.change_type = $1\n AND mc.detected_at > $2\nORDER BY mc.detected_at DESC";
|
|
63
|
+
export declare const getChangesByTypeQuery = "-- name: GetChangesByType :many\nSELECT mc.id, mc.model_id, mc.field_name, mc.old_value, mc.new_value, mc.change_type, mc.detected_at, mc.created_at,\n lm.slug as model_slug,\n lm.name as model_name\nFROM weave.model_changes mc\n JOIN weave.llm_models lm ON mc.model_id = lm.id\nWHERE mc.change_type = $1\n AND mc.detected_at > $2\nORDER BY mc.detected_at DESC";
|
|
64
64
|
export interface GetChangesByTypeArgs {
|
|
65
65
|
changeType: string | null;
|
|
66
66
|
since: Date | null;
|
|
@@ -6,7 +6,7 @@ exports.getRecentChanges = getRecentChanges;
|
|
|
6
6
|
exports.getChangesByModel = getChangesByModel;
|
|
7
7
|
exports.getChangesByType = getChangesByType;
|
|
8
8
|
exports.insertModelChangeQuery = `-- name: InsertModelChange :one
|
|
9
|
-
INSERT INTO model_changes (model_id, field_name, old_value, new_value, change_type)
|
|
9
|
+
INSERT INTO weave.model_changes (model_id, field_name, old_value, new_value, change_type)
|
|
10
10
|
VALUES ($1, $2, $3, $4, $5)
|
|
11
11
|
RETURNING id, model_id, field_name, old_value, new_value, change_type, detected_at, created_at`;
|
|
12
12
|
async function insertModelChange(client, args) {
|
|
@@ -31,14 +31,14 @@ async function insertModelChange(client, args) {
|
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
exports.batchInsertChangesQuery = `-- name: BatchInsertChanges :copyfrom
|
|
34
|
-
INSERT INTO model_changes (
|
|
34
|
+
INSERT INTO weave.model_changes (
|
|
35
35
|
model_id, field_name, old_value, new_value, change_type
|
|
36
36
|
) VALUES (
|
|
37
37
|
$1, $2, $3, $4, $5
|
|
38
38
|
)`;
|
|
39
39
|
exports.getRecentChangesQuery = `-- name: GetRecentChanges :many
|
|
40
40
|
SELECT id, model_id, field_name, old_value, new_value, change_type, detected_at, created_at
|
|
41
|
-
FROM model_changes
|
|
41
|
+
FROM weave.model_changes
|
|
42
42
|
WHERE detected_at > NOW() - INTERVAL '24 hours'
|
|
43
43
|
ORDER BY detected_at DESC
|
|
44
44
|
LIMIT $1`;
|
|
@@ -63,7 +63,7 @@ async function getRecentChanges(client, args) {
|
|
|
63
63
|
}
|
|
64
64
|
exports.getChangesByModelQuery = `-- name: GetChangesByModel :many
|
|
65
65
|
SELECT id, model_id, field_name, old_value, new_value, change_type, detected_at, created_at
|
|
66
|
-
FROM model_changes
|
|
66
|
+
FROM weave.model_changes
|
|
67
67
|
WHERE model_id = $1
|
|
68
68
|
ORDER BY detected_at DESC
|
|
69
69
|
LIMIT $2`;
|
|
@@ -90,8 +90,8 @@ exports.getChangesByTypeQuery = `-- name: GetChangesByType :many
|
|
|
90
90
|
SELECT mc.id, mc.model_id, mc.field_name, mc.old_value, mc.new_value, mc.change_type, mc.detected_at, mc.created_at,
|
|
91
91
|
lm.slug as model_slug,
|
|
92
92
|
lm.name as model_name
|
|
93
|
-
FROM model_changes mc
|
|
94
|
-
JOIN llm_models lm ON mc.model_id = lm.id
|
|
93
|
+
FROM weave.model_changes mc
|
|
94
|
+
JOIN weave.llm_models lm ON mc.model_id = lm.id
|
|
95
95
|
WHERE mc.change_type = $1
|
|
96
96
|
AND mc.detected_at > $2
|
|
97
97
|
ORDER BY mc.detected_at DESC`;
|
|
@@ -2,7 +2,7 @@ import { QueryArrayConfig, QueryArrayResult } from "pg";
|
|
|
2
2
|
interface Client {
|
|
3
3
|
query: (config: QueryArrayConfig) => Promise<QueryArrayResult>;
|
|
4
4
|
}
|
|
5
|
-
export declare const getModelQuery = "-- name: GetModel :one\nSELECT id, provider_id, model_id, slug, name, display_name, description, version, capabilities, classification, architecture, performance, token_info, pricing, api_details, training, licensing, safety, availability, technical_specs, release_date, training_data_cutoff, deprecation_date, metadata, last_scraped_at, is_active, is_deprecated, created_at, updated_at\nFROM llm_models\nWHERE slug = $1\n AND is_active = true";
|
|
5
|
+
export declare const getModelQuery = "-- name: GetModel :one\nSELECT id, provider_id, model_id, slug, name, display_name, description, version, capabilities, classification, architecture, performance, token_info, pricing, api_details, training, licensing, safety, availability, technical_specs, release_date, training_data_cutoff, deprecation_date, metadata, last_scraped_at, is_active, is_deprecated, created_at, updated_at\nFROM weave.llm_models\nWHERE slug = $1\n AND is_active = true";
|
|
6
6
|
export interface GetModelArgs {
|
|
7
7
|
slug: string;
|
|
8
8
|
}
|
|
@@ -38,7 +38,7 @@ export interface GetModelRow {
|
|
|
38
38
|
updatedAt: Date | null;
|
|
39
39
|
}
|
|
40
40
|
export declare function getModel(client: Client, args: GetModelArgs): Promise<GetModelRow | null>;
|
|
41
|
-
export declare const getModelsQuery = "-- name: GetModels :many\nSELECT id, provider_id, model_id, slug, name, display_name, description, version, capabilities, classification, architecture, performance, token_info, pricing, api_details, training, licensing, safety, availability, technical_specs, release_date, training_data_cutoff, deprecation_date, metadata, last_scraped_at, is_active, is_deprecated, created_at, updated_at\nFROM llm_models\nWHERE is_active = true\nORDER BY provider_id, name";
|
|
41
|
+
export declare const getModelsQuery = "-- name: GetModels :many\nSELECT id, provider_id, model_id, slug, name, display_name, description, version, capabilities, classification, architecture, performance, token_info, pricing, api_details, training, licensing, safety, availability, technical_specs, release_date, training_data_cutoff, deprecation_date, metadata, last_scraped_at, is_active, is_deprecated, created_at, updated_at\nFROM weave.llm_models\nWHERE is_active = true\nORDER BY provider_id, name";
|
|
42
42
|
export interface GetModelsRow {
|
|
43
43
|
id: string;
|
|
44
44
|
providerId: string;
|
|
@@ -71,7 +71,7 @@ export interface GetModelsRow {
|
|
|
71
71
|
updatedAt: Date | null;
|
|
72
72
|
}
|
|
73
73
|
export declare function getModels(client: Client): Promise<GetModelsRow[]>;
|
|
74
|
-
export declare const getModelsByProviderQuery = "-- name: GetModelsByProvider :many\nSELECT id, provider_id, model_id, slug, name, display_name, description, version, capabilities, classification, architecture, performance, token_info, pricing, api_details, training, licensing, safety, availability, technical_specs, release_date, training_data_cutoff, deprecation_date, metadata, last_scraped_at, is_active, is_deprecated, created_at, updated_at\nFROM llm_models\nWHERE provider_id = $1\n AND is_active = true\nORDER BY name";
|
|
74
|
+
export declare const getModelsByProviderQuery = "-- name: GetModelsByProvider :many\nSELECT id, provider_id, model_id, slug, name, display_name, description, version, capabilities, classification, architecture, performance, token_info, pricing, api_details, training, licensing, safety, availability, technical_specs, release_date, training_data_cutoff, deprecation_date, metadata, last_scraped_at, is_active, is_deprecated, created_at, updated_at\nFROM weave.llm_models\nWHERE provider_id = $1\n AND is_active = true\nORDER BY name";
|
|
75
75
|
export interface GetModelsByProviderArgs {
|
|
76
76
|
providerId: string;
|
|
77
77
|
}
|
|
@@ -107,7 +107,7 @@ export interface GetModelsByProviderRow {
|
|
|
107
107
|
updatedAt: Date | null;
|
|
108
108
|
}
|
|
109
109
|
export declare function getModelsByProvider(client: Client, args: GetModelsByProviderArgs): Promise<GetModelsByProviderRow[]>;
|
|
110
|
-
export declare const upsertModelQuery = "-- name: UpsertModel :one\nINSERT INTO llm_models (provider_id, model_id, slug, name, display_name, description, version,\n classification, architecture, capabilities, performance, token_info,\n pricing, api_details, training, licensing, safety, availability,\n technical_specs, release_date, training_data_cutoff, deprecation_date,\n metadata, last_scraped_at)\nVALUES ($1, $2, $3, $4, $5, $6, $7,\n $8, $9, $10, $11, $12,\n $13, $14, $15, $16, $17, $18,\n $19, $20, $21, $22,\n $23, NOW())\nON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name,\n display_name = EXCLUDED.display_name,\n description = EXCLUDED.description,\n version = EXCLUDED.version,\n classification = EXCLUDED.classification,\n architecture = EXCLUDED.architecture,\n capabilities = EXCLUDED.capabilities,\n performance = EXCLUDED.performance,\n token_info = EXCLUDED.token_info,\n pricing = EXCLUDED.pricing,\n api_details = EXCLUDED.api_details,\n training = EXCLUDED.training,\n licensing = EXCLUDED.licensing,\n safety = EXCLUDED.safety,\n availability = EXCLUDED.availability,\n technical_specs = EXCLUDED.technical_specs,\n release_date = EXCLUDED.release_date,\n training_data_cutoff = EXCLUDED.training_data_cutoff,\n deprecation_date = EXCLUDED.deprecation_date,\n metadata = EXCLUDED.metadata,\n last_scraped_at = NOW(),\n updated_at = NOW()\nRETURNING id, provider_id, model_id, slug, name, display_name, description, version, capabilities, classification, architecture, performance, token_info, pricing, api_details, training, licensing, safety, availability, technical_specs, release_date, training_data_cutoff, deprecation_date, metadata, last_scraped_at, is_active, is_deprecated, created_at, updated_at";
|
|
110
|
+
export declare const upsertModelQuery = "-- name: UpsertModel :one\nINSERT INTO weave.llm_models (provider_id, model_id, slug, name, display_name, description, version,\n classification, architecture, capabilities, performance, token_info,\n pricing, api_details, training, licensing, safety, availability,\n technical_specs, release_date, training_data_cutoff, deprecation_date,\n metadata, last_scraped_at)\nVALUES ($1, $2, $3, $4, $5, $6, $7,\n $8, $9, $10, $11, $12,\n $13, $14, $15, $16, $17, $18,\n $19, $20, $21, $22,\n $23, NOW())\nON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name,\n display_name = EXCLUDED.display_name,\n description = EXCLUDED.description,\n version = EXCLUDED.version,\n classification = EXCLUDED.classification,\n architecture = EXCLUDED.architecture,\n capabilities = EXCLUDED.capabilities,\n performance = EXCLUDED.performance,\n token_info = EXCLUDED.token_info,\n pricing = EXCLUDED.pricing,\n api_details = EXCLUDED.api_details,\n training = EXCLUDED.training,\n licensing = EXCLUDED.licensing,\n safety = EXCLUDED.safety,\n availability = EXCLUDED.availability,\n technical_specs = EXCLUDED.technical_specs,\n release_date = EXCLUDED.release_date,\n training_data_cutoff = EXCLUDED.training_data_cutoff,\n deprecation_date = EXCLUDED.deprecation_date,\n metadata = EXCLUDED.metadata,\n last_scraped_at = NOW(),\n updated_at = NOW()\nRETURNING id, provider_id, model_id, slug, name, display_name, description, version, capabilities, classification, architecture, performance, token_info, pricing, api_details, training, licensing, safety, availability, technical_specs, release_date, training_data_cutoff, deprecation_date, metadata, last_scraped_at, is_active, is_deprecated, created_at, updated_at";
|
|
111
111
|
export interface UpsertModelArgs {
|
|
112
112
|
providerId: string;
|
|
113
113
|
modelId: string;
|
|
@@ -165,7 +165,7 @@ export interface UpsertModelRow {
|
|
|
165
165
|
updatedAt: Date | null;
|
|
166
166
|
}
|
|
167
167
|
export declare function upsertModel(client: Client, args: UpsertModelArgs): Promise<UpsertModelRow | null>;
|
|
168
|
-
export declare const batchUpsertModelsQuery = "-- name: BatchUpsertModels :copyfrom\nINSERT INTO llm_models (provider_id, model_id, slug, name, display_name, description, version,\n classification, architecture, capabilities, performance, token_info,\n pricing, api_details, training, licensing, safety, availability,\n technical_specs, metadata)\nVALUES ($1, $2, $3, $4, $5, $6, $7,\n $8, $9, $10, $11, $12,\n $13, $14, $15, $16, $17, $18,\n $19, $20)";
|
|
168
|
+
export declare const batchUpsertModelsQuery = "-- name: BatchUpsertModels :copyfrom\nINSERT INTO weave.llm_models (provider_id, model_id, slug, name, display_name, description, version,\n classification, architecture, capabilities, performance, token_info,\n pricing, api_details, training, licensing, safety, availability,\n technical_specs, metadata)\nVALUES ($1, $2, $3, $4, $5, $6, $7,\n $8, $9, $10, $11, $12,\n $13, $14, $15, $16, $17, $18,\n $19, $20)";
|
|
169
169
|
export interface BatchUpsertModelsArgs {
|
|
170
170
|
providerId: string;
|
|
171
171
|
modelId: string;
|
|
@@ -188,7 +188,7 @@ export interface BatchUpsertModelsArgs {
|
|
|
188
188
|
technicalSpecs: any;
|
|
189
189
|
metadata: any;
|
|
190
190
|
}
|
|
191
|
-
export declare const updateModelDeprecationQuery = "-- name: UpdateModelDeprecation :exec\nUPDATE llm_models\nSET is_deprecated = true,\n deprecation_date = $1,\n metadata = jsonb_set(metadata, '{replacement_model_id}', to_jsonb($2::text))\nWHERE slug = $3";
|
|
191
|
+
export declare const updateModelDeprecationQuery = "-- name: UpdateModelDeprecation :exec\nUPDATE weave.llm_models\nSET is_deprecated = true,\n deprecation_date = $1,\n metadata = jsonb_set(metadata, '{replacement_model_id}', to_jsonb($2::text))\nWHERE slug = $3";
|
|
192
192
|
export interface UpdateModelDeprecationArgs {
|
|
193
193
|
deprecationDate: Date | null;
|
|
194
194
|
replacementModelId: string;
|
|
@@ -8,7 +8,7 @@ exports.upsertModel = upsertModel;
|
|
|
8
8
|
exports.updateModelDeprecation = updateModelDeprecation;
|
|
9
9
|
exports.getModelQuery = `-- name: GetModel :one
|
|
10
10
|
SELECT id, provider_id, model_id, slug, name, display_name, description, version, capabilities, classification, architecture, performance, token_info, pricing, api_details, training, licensing, safety, availability, technical_specs, release_date, training_data_cutoff, deprecation_date, metadata, last_scraped_at, is_active, is_deprecated, created_at, updated_at
|
|
11
|
-
FROM llm_models
|
|
11
|
+
FROM weave.llm_models
|
|
12
12
|
WHERE slug = $1
|
|
13
13
|
AND is_active = true`;
|
|
14
14
|
async function getModel(client, args) {
|
|
@@ -55,7 +55,7 @@ async function getModel(client, args) {
|
|
|
55
55
|
}
|
|
56
56
|
exports.getModelsQuery = `-- name: GetModels :many
|
|
57
57
|
SELECT id, provider_id, model_id, slug, name, display_name, description, version, capabilities, classification, architecture, performance, token_info, pricing, api_details, training, licensing, safety, availability, technical_specs, release_date, training_data_cutoff, deprecation_date, metadata, last_scraped_at, is_active, is_deprecated, created_at, updated_at
|
|
58
|
-
FROM llm_models
|
|
58
|
+
FROM weave.llm_models
|
|
59
59
|
WHERE is_active = true
|
|
60
60
|
ORDER BY provider_id, name`;
|
|
61
61
|
async function getModels(client) {
|
|
@@ -100,7 +100,7 @@ async function getModels(client) {
|
|
|
100
100
|
}
|
|
101
101
|
exports.getModelsByProviderQuery = `-- name: GetModelsByProvider :many
|
|
102
102
|
SELECT id, provider_id, model_id, slug, name, display_name, description, version, capabilities, classification, architecture, performance, token_info, pricing, api_details, training, licensing, safety, availability, technical_specs, release_date, training_data_cutoff, deprecation_date, metadata, last_scraped_at, is_active, is_deprecated, created_at, updated_at
|
|
103
|
-
FROM llm_models
|
|
103
|
+
FROM weave.llm_models
|
|
104
104
|
WHERE provider_id = $1
|
|
105
105
|
AND is_active = true
|
|
106
106
|
ORDER BY name`;
|
|
@@ -145,7 +145,7 @@ async function getModelsByProvider(client, args) {
|
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
147
|
exports.upsertModelQuery = `-- name: UpsertModel :one
|
|
148
|
-
INSERT INTO llm_models (provider_id, model_id, slug, name, display_name, description, version,
|
|
148
|
+
INSERT INTO weave.llm_models (provider_id, model_id, slug, name, display_name, description, version,
|
|
149
149
|
classification, architecture, capabilities, performance, token_info,
|
|
150
150
|
pricing, api_details, training, licensing, safety, availability,
|
|
151
151
|
technical_specs, release_date, training_data_cutoff, deprecation_date,
|
|
@@ -221,7 +221,7 @@ async function upsertModel(client, args) {
|
|
|
221
221
|
};
|
|
222
222
|
}
|
|
223
223
|
exports.batchUpsertModelsQuery = `-- name: BatchUpsertModels :copyfrom
|
|
224
|
-
INSERT INTO llm_models (provider_id, model_id, slug, name, display_name, description, version,
|
|
224
|
+
INSERT INTO weave.llm_models (provider_id, model_id, slug, name, display_name, description, version,
|
|
225
225
|
classification, architecture, capabilities, performance, token_info,
|
|
226
226
|
pricing, api_details, training, licensing, safety, availability,
|
|
227
227
|
technical_specs, metadata)
|
|
@@ -230,7 +230,7 @@ VALUES ($1, $2, $3, $4, $5, $6, $7,
|
|
|
230
230
|
$13, $14, $15, $16, $17, $18,
|
|
231
231
|
$19, $20)`;
|
|
232
232
|
exports.updateModelDeprecationQuery = `-- name: UpdateModelDeprecation :exec
|
|
233
|
-
UPDATE llm_models
|
|
233
|
+
UPDATE weave.llm_models
|
|
234
234
|
SET is_deprecated = true,
|
|
235
235
|
deprecation_date = $1,
|
|
236
236
|
metadata = jsonb_set(metadata, '{replacement_model_id}', to_jsonb($2::text))
|
|
@@ -2,7 +2,7 @@ import { QueryArrayConfig, QueryArrayResult } from "pg";
|
|
|
2
2
|
interface Client {
|
|
3
3
|
query: (config: QueryArrayConfig) => Promise<QueryArrayResult>;
|
|
4
4
|
}
|
|
5
|
-
export declare const getProviderQuery = "-- name: GetProvider :one\nSELECT id, slug, name, display_name, description, website_url, api_base_url, documentation_url, logo_url, provider_type, founding_year, headquarters, api_key_required, oauth_required, api_key_env_var, is_active, is_verified, created_at, updated_at\nFROM providers\nWHERE slug = $1\n AND is_active = true";
|
|
5
|
+
export declare const getProviderQuery = "-- name: GetProvider :one\nSELECT id, slug, name, display_name, description, website_url, api_base_url, documentation_url, logo_url, provider_type, founding_year, headquarters, api_key_required, oauth_required, api_key_env_var, is_active, is_verified, created_at, updated_at\nFROM weave.providers\nWHERE slug = $1\n AND is_active = true";
|
|
6
6
|
export interface GetProviderArgs {
|
|
7
7
|
slug: string;
|
|
8
8
|
}
|
|
@@ -28,7 +28,7 @@ export interface GetProviderRow {
|
|
|
28
28
|
updatedAt: Date | null;
|
|
29
29
|
}
|
|
30
30
|
export declare function getProvider(client: Client, args: GetProviderArgs): Promise<GetProviderRow | null>;
|
|
31
|
-
export declare const getProvidersQuery = "-- name: GetProviders :many\nSELECT id, slug, name, display_name, description, website_url, api_base_url, documentation_url, logo_url, provider_type, founding_year, headquarters, api_key_required, oauth_required, api_key_env_var, is_active, is_verified, created_at, updated_at\nFROM providers\nWHERE is_active = true\nORDER BY name";
|
|
31
|
+
export declare const getProvidersQuery = "-- name: GetProviders :many\nSELECT id, slug, name, display_name, description, website_url, api_base_url, documentation_url, logo_url, provider_type, founding_year, headquarters, api_key_required, oauth_required, api_key_env_var, is_active, is_verified, created_at, updated_at\nFROM weave.providers\nWHERE is_active = true\nORDER BY name";
|
|
32
32
|
export interface GetProvidersRow {
|
|
33
33
|
id: string;
|
|
34
34
|
slug: string;
|
|
@@ -51,7 +51,7 @@ export interface GetProvidersRow {
|
|
|
51
51
|
updatedAt: Date | null;
|
|
52
52
|
}
|
|
53
53
|
export declare function getProviders(client: Client): Promise<GetProvidersRow[]>;
|
|
54
|
-
export declare const getProviderByIDQuery = "-- name: GetProviderByID :one\nSELECT id, slug, name, display_name, description, website_url, api_base_url, documentation_url, logo_url, provider_type, founding_year, headquarters, api_key_required, oauth_required, api_key_env_var, is_active, is_verified, created_at, updated_at\nFROM providers\nWHERE id = $1";
|
|
54
|
+
export declare const getProviderByIDQuery = "-- name: GetProviderByID :one\nSELECT id, slug, name, display_name, description, website_url, api_base_url, documentation_url, logo_url, provider_type, founding_year, headquarters, api_key_required, oauth_required, api_key_env_var, is_active, is_verified, created_at, updated_at\nFROM weave.providers\nWHERE id = $1";
|
|
55
55
|
export interface GetProviderByIDArgs {
|
|
56
56
|
id: string;
|
|
57
57
|
}
|
|
@@ -77,7 +77,7 @@ export interface GetProviderByIDRow {
|
|
|
77
77
|
updatedAt: Date | null;
|
|
78
78
|
}
|
|
79
79
|
export declare function getProviderByID(client: Client, args: GetProviderByIDArgs): Promise<GetProviderByIDRow | null>;
|
|
80
|
-
export declare const upsertProviderQuery = "-- name: UpsertProvider :one\nINSERT INTO providers (slug, name, display_name, description,\n website_url, api_base_url, documentation_url, logo_url,\n provider_type, api_key_required, api_key_env_var)\nVALUES ($1, $2, $3, $4,\n $5, $6, $7, $8,\n $9, $10, $11)\nON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name,\n display_name = EXCLUDED.display_name,\n description = EXCLUDED.description,\n website_url = EXCLUDED.website_url,\n api_base_url = EXCLUDED.api_base_url,\n documentation_url = EXCLUDED.documentation_url,\n logo_url = EXCLUDED.logo_url,\n provider_type = EXCLUDED.provider_type,\n api_key_required = EXCLUDED.api_key_required,\n api_key_env_var = EXCLUDED.api_key_env_var,\n updated_at = NOW()\nRETURNING id, slug, name, display_name, description, website_url, api_base_url, documentation_url, logo_url, provider_type, founding_year, headquarters, api_key_required, oauth_required, api_key_env_var, is_active, is_verified, created_at, updated_at";
|
|
80
|
+
export declare const upsertProviderQuery = "-- name: UpsertProvider :one\nINSERT INTO weave.providers (slug, name, display_name, description,\n website_url, api_base_url, documentation_url, logo_url,\n provider_type, api_key_required, api_key_env_var)\nVALUES ($1, $2, $3, $4,\n $5, $6, $7, $8,\n $9, $10, $11)\nON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name,\n display_name = EXCLUDED.display_name,\n description = EXCLUDED.description,\n website_url = EXCLUDED.website_url,\n api_base_url = EXCLUDED.api_base_url,\n documentation_url = EXCLUDED.documentation_url,\n logo_url = EXCLUDED.logo_url,\n provider_type = EXCLUDED.provider_type,\n api_key_required = EXCLUDED.api_key_required,\n api_key_env_var = EXCLUDED.api_key_env_var,\n updated_at = NOW()\nRETURNING id, slug, name, display_name, description, website_url, api_base_url, documentation_url, logo_url, provider_type, founding_year, headquarters, api_key_required, oauth_required, api_key_env_var, is_active, is_verified, created_at, updated_at";
|
|
81
81
|
export interface UpsertProviderArgs {
|
|
82
82
|
slug: string;
|
|
83
83
|
name: string;
|
|
@@ -113,7 +113,7 @@ export interface UpsertProviderRow {
|
|
|
113
113
|
updatedAt: Date | null;
|
|
114
114
|
}
|
|
115
115
|
export declare function upsertProvider(client: Client, args: UpsertProviderArgs): Promise<UpsertProviderRow | null>;
|
|
116
|
-
export declare const updateProviderStatusQuery = "-- name: UpdateProviderStatus :exec\nUPDATE providers\nSET is_active = $1,\n updated_at = NOW()\nWHERE slug = $2";
|
|
116
|
+
export declare const updateProviderStatusQuery = "-- name: UpdateProviderStatus :exec\nUPDATE weave.providers\nSET is_active = $1,\n updated_at = NOW()\nWHERE slug = $2";
|
|
117
117
|
export interface UpdateProviderStatusArgs {
|
|
118
118
|
isActive: boolean | null;
|
|
119
119
|
slug: string;
|
|
@@ -8,7 +8,7 @@ exports.upsertProvider = upsertProvider;
|
|
|
8
8
|
exports.updateProviderStatus = updateProviderStatus;
|
|
9
9
|
exports.getProviderQuery = `-- name: GetProvider :one
|
|
10
10
|
SELECT id, slug, name, display_name, description, website_url, api_base_url, documentation_url, logo_url, provider_type, founding_year, headquarters, api_key_required, oauth_required, api_key_env_var, is_active, is_verified, created_at, updated_at
|
|
11
|
-
FROM providers
|
|
11
|
+
FROM weave.providers
|
|
12
12
|
WHERE slug = $1
|
|
13
13
|
AND is_active = true`;
|
|
14
14
|
async function getProvider(client, args) {
|
|
@@ -45,7 +45,7 @@ async function getProvider(client, args) {
|
|
|
45
45
|
}
|
|
46
46
|
exports.getProvidersQuery = `-- name: GetProviders :many
|
|
47
47
|
SELECT id, slug, name, display_name, description, website_url, api_base_url, documentation_url, logo_url, provider_type, founding_year, headquarters, api_key_required, oauth_required, api_key_env_var, is_active, is_verified, created_at, updated_at
|
|
48
|
-
FROM providers
|
|
48
|
+
FROM weave.providers
|
|
49
49
|
WHERE is_active = true
|
|
50
50
|
ORDER BY name`;
|
|
51
51
|
async function getProviders(client) {
|
|
@@ -80,7 +80,7 @@ async function getProviders(client) {
|
|
|
80
80
|
}
|
|
81
81
|
exports.getProviderByIDQuery = `-- name: GetProviderByID :one
|
|
82
82
|
SELECT id, slug, name, display_name, description, website_url, api_base_url, documentation_url, logo_url, provider_type, founding_year, headquarters, api_key_required, oauth_required, api_key_env_var, is_active, is_verified, created_at, updated_at
|
|
83
|
-
FROM providers
|
|
83
|
+
FROM weave.providers
|
|
84
84
|
WHERE id = $1`;
|
|
85
85
|
async function getProviderByID(client, args) {
|
|
86
86
|
const result = await client.query({
|
|
@@ -115,7 +115,7 @@ async function getProviderByID(client, args) {
|
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
117
|
exports.upsertProviderQuery = `-- name: UpsertProvider :one
|
|
118
|
-
INSERT INTO providers (slug, name, display_name, description,
|
|
118
|
+
INSERT INTO weave.providers (slug, name, display_name, description,
|
|
119
119
|
website_url, api_base_url, documentation_url, logo_url,
|
|
120
120
|
provider_type, api_key_required, api_key_env_var)
|
|
121
121
|
VALUES ($1, $2, $3, $4,
|
|
@@ -166,7 +166,7 @@ async function upsertProvider(client, args) {
|
|
|
166
166
|
};
|
|
167
167
|
}
|
|
168
168
|
exports.updateProviderStatusQuery = `-- name: UpdateProviderStatus :exec
|
|
169
|
-
UPDATE providers
|
|
169
|
+
UPDATE weave.providers
|
|
170
170
|
SET is_active = $1,
|
|
171
171
|
updated_at = NOW()
|
|
172
172
|
WHERE slug = $2`;
|
|
@@ -2,7 +2,7 @@ import { QueryArrayConfig, QueryArrayResult } from "pg";
|
|
|
2
2
|
interface Client {
|
|
3
3
|
query: (config: QueryArrayConfig) => Promise<QueryArrayResult>;
|
|
4
4
|
}
|
|
5
|
-
export declare const createScraperRunQuery = "-- name: CreateScraperRun :one\nINSERT INTO scraper_runs (provider_slug, status)\nVALUES ($1, $2)\nRETURNING id, provider_slug, status, models_found, models_updated, models_added, started_at, completed_at, error_message, created_at";
|
|
5
|
+
export declare const createScraperRunQuery = "-- name: CreateScraperRun :one\nINSERT INTO weave.scraper_runs (provider_slug, status)\nVALUES ($1, $2)\nRETURNING id, provider_slug, status, models_found, models_updated, models_added, started_at, completed_at, error_message, created_at";
|
|
6
6
|
export interface CreateScraperRunArgs {
|
|
7
7
|
providerSlug: string | null;
|
|
8
8
|
status: string | null;
|
|
@@ -20,7 +20,7 @@ export interface CreateScraperRunRow {
|
|
|
20
20
|
createdAt: Date | null;
|
|
21
21
|
}
|
|
22
22
|
export declare function createScraperRun(client: Client, args: CreateScraperRunArgs): Promise<CreateScraperRunRow | null>;
|
|
23
|
-
export declare const updateScraperRunQuery = "-- name: UpdateScraperRun :exec\nUPDATE scraper_runs\nSET status = $1,\n models_found = $2,\n models_updated = $3,\n models_added = $4,\n completed_at = $5,\n error_message = $6\nWHERE id = $7";
|
|
23
|
+
export declare const updateScraperRunQuery = "-- name: UpdateScraperRun :exec\nUPDATE weave.scraper_runs\nSET status = $1,\n models_found = $2,\n models_updated = $3,\n models_added = $4,\n completed_at = $5,\n error_message = $6\nWHERE id = $7";
|
|
24
24
|
export interface UpdateScraperRunArgs {
|
|
25
25
|
status: string | null;
|
|
26
26
|
modelsFound: number | null;
|
|
@@ -31,7 +31,7 @@ export interface UpdateScraperRunArgs {
|
|
|
31
31
|
id: string;
|
|
32
32
|
}
|
|
33
33
|
export declare function updateScraperRun(client: Client, args: UpdateScraperRunArgs): Promise<void>;
|
|
34
|
-
export declare const getLastSuccessfulRunQuery = "-- name: GetLastSuccessfulRun :one\nSELECT id, provider_slug, status, models_found, models_updated, models_added, started_at, completed_at, error_message, created_at\nFROM scraper_runs\nWHERE provider_slug = $1\n AND status = 'success'\nORDER BY completed_at DESC\nLIMIT 1";
|
|
34
|
+
export declare const getLastSuccessfulRunQuery = "-- name: GetLastSuccessfulRun :one\nSELECT id, provider_slug, status, models_found, models_updated, models_added, started_at, completed_at, error_message, created_at\nFROM weave.scraper_runs\nWHERE provider_slug = $1\n AND status = 'success'\nORDER BY completed_at DESC\nLIMIT 1";
|
|
35
35
|
export interface GetLastSuccessfulRunArgs {
|
|
36
36
|
providerSlug: string | null;
|
|
37
37
|
}
|
|
@@ -48,7 +48,7 @@ export interface GetLastSuccessfulRunRow {
|
|
|
48
48
|
createdAt: Date | null;
|
|
49
49
|
}
|
|
50
50
|
export declare function getLastSuccessfulRun(client: Client, args: GetLastSuccessfulRunArgs): Promise<GetLastSuccessfulRunRow | null>;
|
|
51
|
-
export declare const getRecentRunsQuery = "-- name: GetRecentRuns :many\nSELECT id, provider_slug, status, models_found, models_updated, models_added, started_at, completed_at, error_message, created_at\nFROM scraper_runs\nWHERE ($1::text IS NULL OR provider_slug = $1)\nORDER BY created_at DESC\nLIMIT $2";
|
|
51
|
+
export declare const getRecentRunsQuery = "-- name: GetRecentRuns :many\nSELECT id, provider_slug, status, models_found, models_updated, models_added, started_at, completed_at, error_message, created_at\nFROM weave.scraper_runs\nWHERE ($1::text IS NULL OR provider_slug = $1)\nORDER BY created_at DESC\nLIMIT $2";
|
|
52
52
|
export interface GetRecentRunsArgs {
|
|
53
53
|
providerSlug: string;
|
|
54
54
|
limitCount: string;
|
|
@@ -66,7 +66,7 @@ export interface GetRecentRunsRow {
|
|
|
66
66
|
createdAt: Date | null;
|
|
67
67
|
}
|
|
68
68
|
export declare function getRecentRuns(client: Client, args: GetRecentRunsArgs): Promise<GetRecentRunsRow[]>;
|
|
69
|
-
export declare const getRunStatsQuery = "-- name: GetRunStats :one\nSELECT COUNT(*) as total_runs,\n COUNT(*) FILTER (WHERE status = 'success') as successful_runs,\n COUNT(*) FILTER (WHERE status = 'failed') as failed_runs,\n AVG(EXTRACT(EPOCH FROM (completed_at - started_at))) as avg_duration_seconds,\n SUM(models_added) as total_models_added,\n SUM(models_updated) as total_models_updated\nFROM scraper_runs\nWHERE created_at > $1\n AND ($2::text IS NULL OR provider_slug = $2)";
|
|
69
|
+
export declare const getRunStatsQuery = "-- name: GetRunStats :one\nSELECT COUNT(*) as total_runs,\n COUNT(*) FILTER (WHERE status = 'success') as successful_runs,\n COUNT(*) FILTER (WHERE status = 'failed') as failed_runs,\n AVG(EXTRACT(EPOCH FROM (completed_at - started_at))) as avg_duration_seconds,\n SUM(models_added) as total_models_added,\n SUM(models_updated) as total_models_updated\nFROM weave.scraper_runs\nWHERE created_at > $1\n AND ($2::text IS NULL OR provider_slug = $2)";
|
|
70
70
|
export interface GetRunStatsArgs {
|
|
71
71
|
since: Date | null;
|
|
72
72
|
providerSlug: string;
|
|
@@ -7,7 +7,7 @@ exports.getLastSuccessfulRun = getLastSuccessfulRun;
|
|
|
7
7
|
exports.getRecentRuns = getRecentRuns;
|
|
8
8
|
exports.getRunStats = getRunStats;
|
|
9
9
|
exports.createScraperRunQuery = `-- name: CreateScraperRun :one
|
|
10
|
-
INSERT INTO scraper_runs (provider_slug, status)
|
|
10
|
+
INSERT INTO weave.scraper_runs (provider_slug, status)
|
|
11
11
|
VALUES ($1, $2)
|
|
12
12
|
RETURNING id, provider_slug, status, models_found, models_updated, models_added, started_at, completed_at, error_message, created_at`;
|
|
13
13
|
async function createScraperRun(client, args) {
|
|
@@ -34,7 +34,7 @@ async function createScraperRun(client, args) {
|
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
exports.updateScraperRunQuery = `-- name: UpdateScraperRun :exec
|
|
37
|
-
UPDATE scraper_runs
|
|
37
|
+
UPDATE weave.scraper_runs
|
|
38
38
|
SET status = $1,
|
|
39
39
|
models_found = $2,
|
|
40
40
|
models_updated = $3,
|
|
@@ -51,7 +51,7 @@ async function updateScraperRun(client, args) {
|
|
|
51
51
|
}
|
|
52
52
|
exports.getLastSuccessfulRunQuery = `-- name: GetLastSuccessfulRun :one
|
|
53
53
|
SELECT id, provider_slug, status, models_found, models_updated, models_added, started_at, completed_at, error_message, created_at
|
|
54
|
-
FROM scraper_runs
|
|
54
|
+
FROM weave.scraper_runs
|
|
55
55
|
WHERE provider_slug = $1
|
|
56
56
|
AND status = 'success'
|
|
57
57
|
ORDER BY completed_at DESC
|
|
@@ -81,7 +81,7 @@ async function getLastSuccessfulRun(client, args) {
|
|
|
81
81
|
}
|
|
82
82
|
exports.getRecentRunsQuery = `-- name: GetRecentRuns :many
|
|
83
83
|
SELECT id, provider_slug, status, models_found, models_updated, models_added, started_at, completed_at, error_message, created_at
|
|
84
|
-
FROM scraper_runs
|
|
84
|
+
FROM weave.scraper_runs
|
|
85
85
|
WHERE ($1::text IS NULL OR provider_slug = $1)
|
|
86
86
|
ORDER BY created_at DESC
|
|
87
87
|
LIMIT $2`;
|
|
@@ -113,7 +113,7 @@ SELECT COUNT(*) as total_runs,
|
|
|
113
113
|
AVG(EXTRACT(EPOCH FROM (completed_at - started_at))) as avg_duration_seconds,
|
|
114
114
|
SUM(models_added) as total_models_added,
|
|
115
115
|
SUM(models_updated) as total_models_updated
|
|
116
|
-
FROM scraper_runs
|
|
116
|
+
FROM weave.scraper_runs
|
|
117
117
|
WHERE created_at > $1
|
|
118
118
|
AND ($2::text IS NULL OR provider_slug = $2)`;
|
|
119
119
|
async function getRunStats(client, args) {
|
|
@@ -2,7 +2,7 @@ import { QueryArrayConfig, QueryArrayResult } from "pg";
|
|
|
2
2
|
interface Client {
|
|
3
3
|
query: (config: QueryArrayConfig) => Promise<QueryArrayResult>;
|
|
4
4
|
}
|
|
5
|
-
export declare const searchModelsQuery = "-- name: SearchModels :many\nSELECT id, provider_id, model_id, slug, name, display_name, description, version, capabilities, classification, architecture, performance, token_info, pricing, api_details, training, licensing, safety, availability, technical_specs, release_date, training_data_cutoff, deprecation_date, metadata, last_scraped_at, is_active, is_deprecated, created_at, updated_at\nFROM llm_models\nWHERE is_active = true\n AND ($1::uuid IS NULL OR provider_id = $1)\n AND ($2::text IS NULL OR classification ->> 'model_type' = $2)\n AND ($3::int IS NULL OR (token_info ->> 'context_window')::int >= $3)\n AND ($4::numeric IS NULL OR (pricing ->> 'input_price')::numeric <= $4)\n AND ($5::text IS NULL OR capabilities->'configs' ? $5)\nORDER BY CASE WHEN $6 = 'price' THEN (pricing ->> 'input_price')::numeric END ASC,\n CASE WHEN $6 = 'context' THEN (token_info ->> 'context_window')::int END DESC,\n name ASC\nLIMIT $8 OFFSET $7";
|
|
5
|
+
export declare const searchModelsQuery = "-- name: SearchModels :many\nSELECT id, provider_id, model_id, slug, name, display_name, description, version, capabilities, classification, architecture, performance, token_info, pricing, api_details, training, licensing, safety, availability, technical_specs, release_date, training_data_cutoff, deprecation_date, metadata, last_scraped_at, is_active, is_deprecated, created_at, updated_at\nFROM weave.llm_models\nWHERE is_active = true\n AND ($1::uuid IS NULL OR provider_id = $1)\n AND ($2::text IS NULL OR classification ->> 'model_type' = $2)\n AND ($3::int IS NULL OR (token_info ->> 'context_window')::int >= $3)\n AND ($4::numeric IS NULL OR (pricing ->> 'input_price')::numeric <= $4)\n AND ($5::text IS NULL OR capabilities->'configs' ? $5)\nORDER BY CASE WHEN $6 = 'price' THEN (pricing ->> 'input_price')::numeric END ASC,\n CASE WHEN $6 = 'context' THEN (token_info ->> 'context_window')::int END DESC,\n name ASC\nLIMIT $8 OFFSET $7";
|
|
6
6
|
export interface SearchModelsArgs {
|
|
7
7
|
providerId: string;
|
|
8
8
|
modelType: string;
|
|
@@ -45,7 +45,7 @@ export interface SearchModelsRow {
|
|
|
45
45
|
updatedAt: Date | null;
|
|
46
46
|
}
|
|
47
47
|
export declare function searchModels(client: Client, args: SearchModelsArgs): Promise<SearchModelsRow[]>;
|
|
48
|
-
export declare const searchModelsByArchitectureQuery = "-- name: SearchModelsByArchitecture :many\nSELECT id, provider_id, model_id, slug, name, display_name, description, version, capabilities, classification, architecture, performance, token_info, pricing, api_details, training, licensing, safety, availability, technical_specs, release_date, training_data_cutoff, deprecation_date, metadata, last_scraped_at, is_active, is_deprecated, created_at, updated_at\nFROM llm_models\nWHERE is_active = true\n AND ($1::text IS NULL OR architecture->>'base_architecture' = $1)\n AND ($2::bigint IS NULL OR (architecture->>'parameter_count')::bigint >= $2)\n AND ($3::bigint IS NULL OR (architecture->>'parameter_count')::bigint <= $3)\n AND ($4::boolean IS NULL OR (architecture->>'is_mixture_of_experts')::boolean = $4)\nORDER BY (architecture->>'parameter_count')::bigint DESC";
|
|
48
|
+
export declare const searchModelsByArchitectureQuery = "-- name: SearchModelsByArchitecture :many\nSELECT id, provider_id, model_id, slug, name, display_name, description, version, capabilities, classification, architecture, performance, token_info, pricing, api_details, training, licensing, safety, availability, technical_specs, release_date, training_data_cutoff, deprecation_date, metadata, last_scraped_at, is_active, is_deprecated, created_at, updated_at\nFROM weave.llm_models\nWHERE is_active = true\n AND ($1::text IS NULL OR architecture->>'base_architecture' = $1)\n AND ($2::bigint IS NULL OR (architecture->>'parameter_count')::bigint >= $2)\n AND ($3::bigint IS NULL OR (architecture->>'parameter_count')::bigint <= $3)\n AND ($4::boolean IS NULL OR (architecture->>'is_mixture_of_experts')::boolean = $4)\nORDER BY (architecture->>'parameter_count')::bigint DESC";
|
|
49
49
|
export interface SearchModelsByArchitectureArgs {
|
|
50
50
|
baseArchitecture: string;
|
|
51
51
|
minParams: string;
|
|
@@ -84,7 +84,7 @@ export interface SearchModelsByArchitectureRow {
|
|
|
84
84
|
updatedAt: Date | null;
|
|
85
85
|
}
|
|
86
86
|
export declare function searchModelsByArchitecture(client: Client, args: SearchModelsByArchitectureArgs): Promise<SearchModelsByArchitectureRow[]>;
|
|
87
|
-
export declare const getOpenSourceModelsQuery = "-- name: GetOpenSourceModels :many\nSELECT id, provider_id, model_id, slug, name, display_name, description, version, capabilities, classification, architecture, performance, token_info, pricing, api_details, training, licensing, safety, availability, technical_specs, release_date, training_data_cutoff, deprecation_date, metadata, last_scraped_at, is_active, is_deprecated, created_at, updated_at\nFROM llm_models\nWHERE is_active = true\n AND (licensing->>'is_open_source')::boolean = true\n AND ($1::boolean IS NULL OR (licensing->>'commercial_use')::boolean = $1)\nORDER BY provider_id, name";
|
|
87
|
+
export declare const getOpenSourceModelsQuery = "-- name: GetOpenSourceModels :many\nSELECT id, provider_id, model_id, slug, name, display_name, description, version, capabilities, classification, architecture, performance, token_info, pricing, api_details, training, licensing, safety, availability, technical_specs, release_date, training_data_cutoff, deprecation_date, metadata, last_scraped_at, is_active, is_deprecated, created_at, updated_at\nFROM weave.llm_models\nWHERE is_active = true\n AND (licensing->>'is_open_source')::boolean = true\n AND ($1::boolean IS NULL OR (licensing->>'commercial_use')::boolean = $1)\nORDER BY provider_id, name";
|
|
88
88
|
export interface GetOpenSourceModelsArgs {
|
|
89
89
|
commercialUse: boolean;
|
|
90
90
|
}
|
|
@@ -120,7 +120,7 @@ export interface GetOpenSourceModelsRow {
|
|
|
120
120
|
updatedAt: Date | null;
|
|
121
121
|
}
|
|
122
122
|
export declare function getOpenSourceModels(client: Client, args: GetOpenSourceModelsArgs): Promise<GetOpenSourceModelsRow[]>;
|
|
123
|
-
export declare const getModelsBySafetyQuery = "-- name: GetModelsBySafety :many\nSELECT id, provider_id, model_id, slug, name, display_name, description, version, capabilities, classification, architecture, performance, token_info, pricing, api_details, training, licensing, safety, availability, technical_specs, release_date, training_data_cutoff, deprecation_date, metadata, last_scraped_at, is_active, is_deprecated, created_at, updated_at\nFROM llm_models\nWHERE is_active = true\n AND ($1::text IS NULL OR safety->>'moderation_level' = $1)\n AND ($2::boolean IS NULL OR (safety->>'gdpr_compliant')::boolean = $2)\n AND ($3::boolean IS NULL OR (safety->>'hipaa_compliant')::boolean = $3)\nORDER BY provider_id, name";
|
|
123
|
+
export declare const getModelsBySafetyQuery = "-- name: GetModelsBySafety :many\nSELECT id, provider_id, model_id, slug, name, display_name, description, version, capabilities, classification, architecture, performance, token_info, pricing, api_details, training, licensing, safety, availability, technical_specs, release_date, training_data_cutoff, deprecation_date, metadata, last_scraped_at, is_active, is_deprecated, created_at, updated_at\nFROM weave.llm_models\nWHERE is_active = true\n AND ($1::text IS NULL OR safety->>'moderation_level' = $1)\n AND ($2::boolean IS NULL OR (safety->>'gdpr_compliant')::boolean = $2)\n AND ($3::boolean IS NULL OR (safety->>'hipaa_compliant')::boolean = $3)\nORDER BY provider_id, name";
|
|
124
124
|
export interface GetModelsBySafetyArgs {
|
|
125
125
|
moderationLevel: string;
|
|
126
126
|
gdprCompliant: boolean;
|
|
@@ -158,7 +158,7 @@ export interface GetModelsBySafetyRow {
|
|
|
158
158
|
updatedAt: Date | null;
|
|
159
159
|
}
|
|
160
160
|
export declare function getModelsBySafety(client: Client, args: GetModelsBySafetyArgs): Promise<GetModelsBySafetyRow[]>;
|
|
161
|
-
export declare const getModelsByParameterCountQuery = "-- name: GetModelsByParameterCount :many\nSELECT id, provider_id, model_id, slug, name, display_name, description, version, capabilities, classification, architecture, performance, token_info, pricing, api_details, training, licensing, safety, availability, technical_specs, release_date, training_data_cutoff, deprecation_date, metadata, last_scraped_at, is_active, is_deprecated, created_at, updated_at\nFROM llm_models\nWHERE is_active = true\n AND ($1::bigint IS NULL OR (architecture->>'parameter_count')::bigint >= $1)\n AND ($2::bigint IS NULL OR (architecture->>'parameter_count')::bigint <= $2)\nORDER BY (architecture->>'parameter_count')::bigint DESC";
|
|
161
|
+
export declare const getModelsByParameterCountQuery = "-- name: GetModelsByParameterCount :many\nSELECT id, provider_id, model_id, slug, name, display_name, description, version, capabilities, classification, architecture, performance, token_info, pricing, api_details, training, licensing, safety, availability, technical_specs, release_date, training_data_cutoff, deprecation_date, metadata, last_scraped_at, is_active, is_deprecated, created_at, updated_at\nFROM weave.llm_models\nWHERE is_active = true\n AND ($1::bigint IS NULL OR (architecture->>'parameter_count')::bigint >= $1)\n AND ($2::bigint IS NULL OR (architecture->>'parameter_count')::bigint <= $2)\nORDER BY (architecture->>'parameter_count')::bigint DESC";
|
|
162
162
|
export interface GetModelsByParameterCountArgs {
|
|
163
163
|
minParams: string;
|
|
164
164
|
maxParams: string;
|
|
@@ -195,7 +195,7 @@ export interface GetModelsByParameterCountRow {
|
|
|
195
195
|
updatedAt: Date | null;
|
|
196
196
|
}
|
|
197
197
|
export declare function getModelsByParameterCount(client: Client, args: GetModelsByParameterCountArgs): Promise<GetModelsByParameterCountRow[]>;
|
|
198
|
-
export declare const getModelsByContextWindowQuery = "-- name: GetModelsByContextWindow :many\nSELECT id, provider_id, model_id, slug, name, display_name, description, version, capabilities, classification, architecture, performance, token_info, pricing, api_details, training, licensing, safety, availability, technical_specs, release_date, training_data_cutoff, deprecation_date, metadata, last_scraped_at, is_active, is_deprecated, created_at, updated_at\nFROM llm_models \nWHERE is_active = true\n AND ($1::int IS NULL OR (token_info->>'context_window')::int >= $1)\n AND ($2::int IS NULL OR (token_info->>'context_window')::int <= $2)\nORDER BY (token_info->>'context_window')::int DESC";
|
|
198
|
+
export declare const getModelsByContextWindowQuery = "-- name: GetModelsByContextWindow :many\nSELECT id, provider_id, model_id, slug, name, display_name, description, version, capabilities, classification, architecture, performance, token_info, pricing, api_details, training, licensing, safety, availability, technical_specs, release_date, training_data_cutoff, deprecation_date, metadata, last_scraped_at, is_active, is_deprecated, created_at, updated_at\nFROM weave.llm_models \nWHERE is_active = true\n AND ($1::int IS NULL OR (token_info->>'context_window')::int >= $1)\n AND ($2::int IS NULL OR (token_info->>'context_window')::int <= $2)\nORDER BY (token_info->>'context_window')::int DESC";
|
|
199
199
|
export interface GetModelsByContextWindowArgs {
|
|
200
200
|
minContext: number;
|
|
201
201
|
maxContext: number;
|
|
@@ -232,7 +232,7 @@ export interface GetModelsByContextWindowRow {
|
|
|
232
232
|
updatedAt: Date | null;
|
|
233
233
|
}
|
|
234
234
|
export declare function getModelsByContextWindow(client: Client, args: GetModelsByContextWindowArgs): Promise<GetModelsByContextWindowRow[]>;
|
|
235
|
-
export declare const getModelsByPriceRangeQuery = "-- name: GetModelsByPriceRange :many\nSELECT id, provider_id, model_id, slug, name, display_name, description, version, capabilities, classification, architecture, performance, token_info, pricing, api_details, training, licensing, safety, availability, technical_specs, release_date, training_data_cutoff, deprecation_date, metadata, last_scraped_at, is_active, is_deprecated, created_at, updated_at\nFROM llm_models\nWHERE is_active = true\n AND ($1::numeric IS NULL OR (pricing->>'input_price')::numeric <= $1)\n AND ($2::numeric IS NULL OR (pricing->>'output_price')::numeric <= $2)\nORDER BY (pricing->>'input_price')::numeric ASC";
|
|
235
|
+
export declare const getModelsByPriceRangeQuery = "-- name: GetModelsByPriceRange :many\nSELECT id, provider_id, model_id, slug, name, display_name, description, version, capabilities, classification, architecture, performance, token_info, pricing, api_details, training, licensing, safety, availability, technical_specs, release_date, training_data_cutoff, deprecation_date, metadata, last_scraped_at, is_active, is_deprecated, created_at, updated_at\nFROM weave.llm_models\nWHERE is_active = true\n AND ($1::numeric IS NULL OR (pricing->>'input_price')::numeric <= $1)\n AND ($2::numeric IS NULL OR (pricing->>'output_price')::numeric <= $2)\nORDER BY (pricing->>'input_price')::numeric ASC";
|
|
236
236
|
export interface GetModelsByPriceRangeArgs {
|
|
237
237
|
maxInputPrice: string;
|
|
238
238
|
maxOutputPrice: string;
|
|
@@ -10,7 +10,7 @@ exports.getModelsByContextWindow = getModelsByContextWindow;
|
|
|
10
10
|
exports.getModelsByPriceRange = getModelsByPriceRange;
|
|
11
11
|
exports.searchModelsQuery = `-- name: SearchModels :many
|
|
12
12
|
SELECT id, provider_id, model_id, slug, name, display_name, description, version, capabilities, classification, architecture, performance, token_info, pricing, api_details, training, licensing, safety, availability, technical_specs, release_date, training_data_cutoff, deprecation_date, metadata, last_scraped_at, is_active, is_deprecated, created_at, updated_at
|
|
13
|
-
FROM llm_models
|
|
13
|
+
FROM weave.llm_models
|
|
14
14
|
WHERE is_active = true
|
|
15
15
|
AND ($1::uuid IS NULL OR provider_id = $1)
|
|
16
16
|
AND ($2::text IS NULL OR classification ->> 'model_type' = $2)
|
|
@@ -63,7 +63,7 @@ async function searchModels(client, args) {
|
|
|
63
63
|
}
|
|
64
64
|
exports.searchModelsByArchitectureQuery = `-- name: SearchModelsByArchitecture :many
|
|
65
65
|
SELECT id, provider_id, model_id, slug, name, display_name, description, version, capabilities, classification, architecture, performance, token_info, pricing, api_details, training, licensing, safety, availability, technical_specs, release_date, training_data_cutoff, deprecation_date, metadata, last_scraped_at, is_active, is_deprecated, created_at, updated_at
|
|
66
|
-
FROM llm_models
|
|
66
|
+
FROM weave.llm_models
|
|
67
67
|
WHERE is_active = true
|
|
68
68
|
AND ($1::text IS NULL OR architecture->>'base_architecture' = $1)
|
|
69
69
|
AND ($2::bigint IS NULL OR (architecture->>'parameter_count')::bigint >= $2)
|
|
@@ -112,7 +112,7 @@ async function searchModelsByArchitecture(client, args) {
|
|
|
112
112
|
}
|
|
113
113
|
exports.getOpenSourceModelsQuery = `-- name: GetOpenSourceModels :many
|
|
114
114
|
SELECT id, provider_id, model_id, slug, name, display_name, description, version, capabilities, classification, architecture, performance, token_info, pricing, api_details, training, licensing, safety, availability, technical_specs, release_date, training_data_cutoff, deprecation_date, metadata, last_scraped_at, is_active, is_deprecated, created_at, updated_at
|
|
115
|
-
FROM llm_models
|
|
115
|
+
FROM weave.llm_models
|
|
116
116
|
WHERE is_active = true
|
|
117
117
|
AND (licensing->>'is_open_source')::boolean = true
|
|
118
118
|
AND ($1::boolean IS NULL OR (licensing->>'commercial_use')::boolean = $1)
|
|
@@ -159,7 +159,7 @@ async function getOpenSourceModels(client, args) {
|
|
|
159
159
|
}
|
|
160
160
|
exports.getModelsBySafetyQuery = `-- name: GetModelsBySafety :many
|
|
161
161
|
SELECT id, provider_id, model_id, slug, name, display_name, description, version, capabilities, classification, architecture, performance, token_info, pricing, api_details, training, licensing, safety, availability, technical_specs, release_date, training_data_cutoff, deprecation_date, metadata, last_scraped_at, is_active, is_deprecated, created_at, updated_at
|
|
162
|
-
FROM llm_models
|
|
162
|
+
FROM weave.llm_models
|
|
163
163
|
WHERE is_active = true
|
|
164
164
|
AND ($1::text IS NULL OR safety->>'moderation_level' = $1)
|
|
165
165
|
AND ($2::boolean IS NULL OR (safety->>'gdpr_compliant')::boolean = $2)
|
|
@@ -207,7 +207,7 @@ async function getModelsBySafety(client, args) {
|
|
|
207
207
|
}
|
|
208
208
|
exports.getModelsByParameterCountQuery = `-- name: GetModelsByParameterCount :many
|
|
209
209
|
SELECT id, provider_id, model_id, slug, name, display_name, description, version, capabilities, classification, architecture, performance, token_info, pricing, api_details, training, licensing, safety, availability, technical_specs, release_date, training_data_cutoff, deprecation_date, metadata, last_scraped_at, is_active, is_deprecated, created_at, updated_at
|
|
210
|
-
FROM llm_models
|
|
210
|
+
FROM weave.llm_models
|
|
211
211
|
WHERE is_active = true
|
|
212
212
|
AND ($1::bigint IS NULL OR (architecture->>'parameter_count')::bigint >= $1)
|
|
213
213
|
AND ($2::bigint IS NULL OR (architecture->>'parameter_count')::bigint <= $2)
|
|
@@ -254,7 +254,7 @@ async function getModelsByParameterCount(client, args) {
|
|
|
254
254
|
}
|
|
255
255
|
exports.getModelsByContextWindowQuery = `-- name: GetModelsByContextWindow :many
|
|
256
256
|
SELECT id, provider_id, model_id, slug, name, display_name, description, version, capabilities, classification, architecture, performance, token_info, pricing, api_details, training, licensing, safety, availability, technical_specs, release_date, training_data_cutoff, deprecation_date, metadata, last_scraped_at, is_active, is_deprecated, created_at, updated_at
|
|
257
|
-
FROM llm_models
|
|
257
|
+
FROM weave.llm_models
|
|
258
258
|
WHERE is_active = true
|
|
259
259
|
AND ($1::int IS NULL OR (token_info->>'context_window')::int >= $1)
|
|
260
260
|
AND ($2::int IS NULL OR (token_info->>'context_window')::int <= $2)
|
|
@@ -301,7 +301,7 @@ async function getModelsByContextWindow(client, args) {
|
|
|
301
301
|
}
|
|
302
302
|
exports.getModelsByPriceRangeQuery = `-- name: GetModelsByPriceRange :many
|
|
303
303
|
SELECT id, provider_id, model_id, slug, name, display_name, description, version, capabilities, classification, architecture, performance, token_info, pricing, api_details, training, licensing, safety, availability, technical_specs, release_date, training_data_cutoff, deprecation_date, metadata, last_scraped_at, is_active, is_deprecated, created_at, updated_at
|
|
304
|
-
FROM llm_models
|
|
304
|
+
FROM weave.llm_models
|
|
305
305
|
WHERE is_active = true
|
|
306
306
|
AND ($1::numeric IS NULL OR (pricing->>'input_price')::numeric <= $1)
|
|
307
307
|
AND ($2::numeric IS NULL OR (pricing->>'output_price')::numeric <= $2)
|
|
@@ -2,7 +2,7 @@ import { QueryArrayConfig, QueryArrayResult } from "pg";
|
|
|
2
2
|
interface Client {
|
|
3
3
|
query: (config: QueryArrayConfig) => Promise<QueryArrayResult>;
|
|
4
4
|
}
|
|
5
|
-
export declare const getLlmProviderCredentialsQuery = "-- name: GetLlmProviderCredentials :one\nSELECT credentials\nFROM llm_provider_credentials\nWHERE organization_id = $1\n AND provider_slug = $2";
|
|
5
|
+
export declare const getLlmProviderCredentialsQuery = "-- name: GetLlmProviderCredentials :one\nSELECT credentials\nFROM weave.llm_provider_credentials\nWHERE organization_id = $1\n AND provider_slug = $2";
|
|
6
6
|
export interface GetLlmProviderCredentialsArgs {
|
|
7
7
|
organizationId: string;
|
|
8
8
|
providerSlug: string;
|
|
@@ -4,7 +4,7 @@ exports.getLlmProviderCredentialsQuery = void 0;
|
|
|
4
4
|
exports.getLlmProviderCredentials = getLlmProviderCredentials;
|
|
5
5
|
exports.getLlmProviderCredentialsQuery = `-- name: GetLlmProviderCredentials :one
|
|
6
6
|
SELECT credentials
|
|
7
|
-
FROM llm_provider_credentials
|
|
7
|
+
FROM weave.llm_provider_credentials
|
|
8
8
|
WHERE organization_id = $1
|
|
9
9
|
AND provider_slug = $2`;
|
|
10
10
|
async function getLlmProviderCredentials(client, args) {
|