cobe icon indicating copy to clipboard operation
cobe copied to clipboard

Constant reply time

Open CrazyPython opened this issue 8 years ago • 3 comments

I'm creating a bot and

...as many candidate replies as it can in half a second.

is inconvenient, because my bot has it's own scoring algorithm wrapping cobe. Can you add a method that uses constant reply CPU?

CrazyPython avatar Jan 01 '17 02:01 CrazyPython

You can pass loop_ms=0 to reply() to get a single candidate. With the current code, that reply will be run through cobe's scorer, but it's a lot closer to what you want.

pteichman avatar Jan 03 '17 17:01 pteichman

@pteichman I would like to be able to use cobe's scorer so that there are a constant number of iterations.

CrazyPython avatar Jan 03 '17 17:01 CrazyPython

Ah, ok. There isn't a way to do that with the current API, but it wouldn't be difficult to add.

pteichman avatar Jan 03 '17 17:01 pteichman