public
Creates, updates, deletes, gets or lists a public resource.
Overview
| Name | public |
| Type | Resource |
| Id | cloudflare.ai.public |
Fields
The following fields are returned by SELECT queries:
- list
Returns all public finetunes
| Name | Datatype | Description |
|---|---|---|
id | string (uuid) | |
name | string | |
created_at | string (date-time) | |
description | string | |
model | string | |
modified_at | string (date-time) | |
public | boolean |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | account_id | limit, offset, orderBy | Lists publicly available fine-tuned models that can be used with Workers AI. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
account_id | string | The Cloudflare account ID. |
limit | number | Pagination Limit |
offset | number | Pagination Offset |
orderBy | string | Order By Column Name |
SELECT examples
- list
Lists publicly available fine-tuned models that can be used with Workers AI.
SELECT
id,
name,
created_at,
description,
model,
modified_at,
public
FROM cloudflare.ai.public
WHERE account_id = '{{ account_id }}' -- required
AND limit = '{{ limit }}'
AND offset = '{{ offset }}'
AND orderBy = '{{ orderBy }}'
;