perf(anthropic): prompt-caching (#517)
bring back prompt caching support on Anthropic Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
@@ -118,7 +118,7 @@ M.tokenizer_id = "gpt-4o"
|
||||
M.parse_message = function(opts)
|
||||
return {
|
||||
{ role = "system", content = opts.system_prompt },
|
||||
{ role = "user", content = opts.user_prompt },
|
||||
{ role = "user", content = table.concat(opts.user_prompts, "\n") },
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user