-
Notifications
You must be signed in to change notification settings - Fork 0
Pass actor= to the llm.model() and llm.models() methods #3
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
For accounting reasons we want to track which actor was responsible for enrichment operations.
This means we need to pass actor= to this method call:
| model = await llm.model(model_id, purpose=PURPOSE) |
But this happens inside the enrich_batch() method which doesn't have access to the actor - it should be able to lookup an actor_id from the job_id though...
Which means we can use await datasette.actors_from_ids([actor_id])[actor_id] to get the actor.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request