Skip to content

API Cost and Latency added

Compare
Choose a tag to compare
@closedLoop closedLoop released this 31 Jan 20:03
· 46 commits to main since this release
d6d9cec

Custom tracking of apis

spacy_usage = Usage(model='spacy')
spacy_usage.start()
ents_spacy = await extract_entities_spacy....
spacy_usage.end()
print(spacy_usage)

Can compare api costs and durations across multiple models

image