mirror of
https://github.com/openai/codex.git
synced 2026-11-05 16:29:31 +00:00
Remote compact for API-key users (#7835)
This commit is contained in:
1 parent
9429e8b219
commit
b3ddd50eee
11 files changed
+101
-78
No files matched your search
@@ -25,7 +25,10 @@ impl SessionTask for CompactTask {
|
||||
_cancellation_token: CancellationToken,
|
||||
) -> Option<String> {
|
||||
let session = session.clone_session();
|
||||
if crate::compact::should_use_remote_compact_task(&session) {
|
||||
if crate::compact::should_use_remote_compact_task(
|
||||
session.as_ref(),
|
||||
&ctx.client.get_provider(),
|
||||
) {
|
||||
crate::compact_remote::run_remote_compact_task(session, ctx).await
|
||||
} else {
|
||||
crate::compact::run_compact_task(session, ctx, input).await
|
||||
|
||||
Reference in new issue
Block a user