mirror of
https://github.com/openai/codex.git
synced 2026-05-05 11:57:33 +00:00
Refactor truncation helpers into its own file (#6683)
That's to centralize the truncation in one place. Next step would be to make only two methods public: one with bytes/lines and one with tokens.
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
mod history;
|
||||
mod normalize;
|
||||
mod truncate;
|
||||
|
||||
pub(crate) use crate::truncate::MODEL_FORMAT_MAX_BYTES;
|
||||
pub(crate) use crate::truncate::MODEL_FORMAT_MAX_LINES;
|
||||
pub(crate) use crate::truncate::format_output_for_model_body;
|
||||
pub(crate) use history::ContextManager;
|
||||
pub(crate) use truncate::MODEL_FORMAT_MAX_BYTES;
|
||||
pub(crate) use truncate::MODEL_FORMAT_MAX_LINES;
|
||||
pub(crate) use truncate::format_output_for_model_body;
|
||||
|
||||
Reference in New Issue
Block a user