monarch-initiative / babelon

A format for language profiles for ontologies
https://monarch-initiative.github.io/babelon/
MIT License
8 stars 0 forks source link

Reduce irrelevant chatter of OpenAI.translate() #35

Open matentzn opened 8 months ago

matentzn commented 8 months ago

If you run (note FILLINBEFORERUN)

export OPENAI_API_KEY="sk-FILLINBEFORERUN" && babelon translate tests/tmp/example-augmented.babelon.tsv -o tests/tmp/example-translated.babelon.tsv

You get some strange looking output I cant make sense of:

close.started
close.complete
close.started
close.complete
close.started
close.complete
close.started
close.complete

Since I have already deactivated logging for the prompt execution entirely:

https://github.com/monarch-initiative/babelon/blob/d1b6f13341215868d2f2e31921fa85cca843290e/src/babelon/translate.py#L78

I dont understand where this is coming from..

If anyone has an idea..