Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
freem
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Openai/694057b6-101c-8007-9a65-c40578c7252d
(section)
Add languages
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Assistant: Great — then we can simplify the request store a bit. === Great — then we can simplify the request store a bit. ==== - The worker will accumulate the full generated output for each request in memory until it reaches a terminal state (COMPLETED/FAILED/CANCELED) and the caller retrieves it. ==== * Polling status can still expose “tail”/metrics, but internally we keep the whole thing. ==== - This reduces complexity (no chunk files, no reassembly, no partial paging). ==== * It does mean you’ll want clear lifecycle cleanup: - once the caller calls get_result(id) (or an explicit release(id)), the worker can free stored output and metadata. - optionally a TTL GC for abandoned requests. ==== Even if “whole outputs” are fine, I’d add an optional per-worker max_output_chars (or None for unlimited). Not because you expect it normally, but because a runaway loop + high max_tokens could otherwise chew RAM. ==== Everything else stays the same: internal streaming feeds the accumulator, loop detector watches completed lines, and slot/backpressure is unchanged.
Summary:
Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see
Freem:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)