mirror of
https://wget.la/https://github.com/leookun/cursor-byok
synced 2026-12-01 01:05:10 +08:00
Merge pull request #412 from ProtectCookies/main
This commit is contained in:
commit
82f6add55d
16 files changed
+369
-52
No files matched your search
@@ -172,9 +172,9 @@ impl ConversationRuntime {
|
||||
break;
|
||||
}
|
||||
TransportCommand::RunFinished { generation, finish } => {
|
||||
if !current
|
||||
if current
|
||||
.as_ref()
|
||||
.is_some_and(|current| current.id == generation)
|
||||
.is_none_or(|current| current.id != generation)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -88,11 +88,7 @@ async fn generate_local(
|
||||
}
|
||||
let model_id = settings.model_id.trim();
|
||||
ensure_configured_model(registry, model_id).await?;
|
||||
let invocation = build_invocation(
|
||||
&settings,
|
||||
model_id,
|
||||
build_user_content(&request, &diffs),
|
||||
);
|
||||
let invocation = build_invocation(&settings, model_id, build_user_content(&request, &diffs));
|
||||
let provider = registry.conversations().dependencies().provider.clone();
|
||||
let generated = generate(
|
||||
provider,
|
||||
|
||||
Reference in new issue
Block a user