mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-26 18:44:47 +00:00
limit to 4 system prompts cached
This commit is contained in:
@@ -475,11 +475,11 @@ export namespace Session {
|
|||||||
maxSteps: 1000,
|
maxSteps: 1000,
|
||||||
messages: [
|
messages: [
|
||||||
...system.map(
|
...system.map(
|
||||||
(x): CoreMessage => ({
|
(x, index): CoreMessage => ({
|
||||||
role: "system",
|
role: "system",
|
||||||
content: x,
|
content: x,
|
||||||
providerOptions: {
|
providerOptions: {
|
||||||
...(input.providerID === "anthropic"
|
...(input.providerID === "anthropic" && index < 4
|
||||||
? {
|
? {
|
||||||
anthropic: {
|
anthropic: {
|
||||||
cacheControl: { type: "ephemeral" },
|
cacheControl: { type: "ephemeral" },
|
||||||
|
|||||||
Reference in New Issue
Block a user