Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changelog: Anthropic Prompt Caching + Auto-Improve #3268

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

tinomarques
Copy link
Collaborator

Anthropic Prompt Caching Support

We now support Anthropic's Prompt Caching feature! Monitor and analyze cached prompt tokens and costs alongside regular requests through Helicone's observability tools. Enable prompt caching through your existing Anthropic integration with Helicone - no additional configuration needed.


Introducing Auto-Improve for Prompts

We're excited to launch Auto-Improve, an intelligent prompt optimization tool that helps you write more effective LLM prompts. While traditional prompt engineering requires extensive trial and error, Auto-Improve analyzes your prompts and suggests improvements instantly.

How it Works

  1. Click the Auto-Improve button in the Helicone Prompt Editor
  2. Our AI analyzes each sentence of your prompt to understand:
  • The semantic interpretation
  • Your instructional intent
  • Potential areas for enhancement
  1. Get a new suggested optimized version of your prompt

Key Benefits

  • Semantic Analysis: Goes beyond simple text improvements by understanding the purpose behind each instruction
  • Maintains Intent: Preserves your original goals while enhancing how they're communicated
  • Time Saving: Skip hours of prompt iteration and testing
  • Learning Tool: Understand what makes an effective prompt by comparing your original with the improved version

Auto-Improve is now available in beta for all Helicone users. Try it today with one of your prompts!

Copy link

vercel bot commented Feb 14, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
helicone ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 14, 2025 5:09pm
helicone-bifrost ❌ Failed (Inspect) Feb 14, 2025 5:09pm
helicone-eu ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 14, 2025 5:09pm

Copy link

fumedev bot commented Feb 14, 2025

Summary

  • Adds support for Anthropic's prompt caching feature, allowing users to monitor cached prompt tokens and costs.
  • Introduces "Auto-Improve," a beta feature that analyzes prompts and suggests improvements based on semantic interpretation and instructional intent.
  • Adds name field to Message type in both public and private Jawn client types.
  • Updates several SVG components to replace deprecated attributes like flood-opacity with floodOpacity and color-interpolation-filters with colorInterpolationFilters. Also, replaces clip-path with clipPath and fill-rule and clip-rule with fillRule and clipRule respectively.

@@ -552,7 +552,7 @@ const models: TsoaRoute.Models = {
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
"Message": {
"dataType": "refAlias",
"type": {"dataType":"nestedObjectLiteral","nestedProperties":{"contentArray":{"dataType":"array","array":{"dataType":"refAlias","ref":"Message"}},"image_url":{"dataType":"string"},"timestamp":{"dataType":"string"},"tool_call_id":{"dataType":"string"},"tool_calls":{"dataType":"array","array":{"dataType":"refObject","ref":"FunctionCall"}},"content":{"dataType":"string"},"role":{"dataType":"string"},"id":{"dataType":"string"},"_type":{"dataType":"union","subSchemas":[{"dataType":"enum","enums":["function"]},{"dataType":"enum","enums":["functionCall"]},{"dataType":"enum","enums":["image"]},{"dataType":"enum","enums":["message"]},{"dataType":"enum","enums":["autoInput"]},{"dataType":"enum","enums":["contentArray"]}],"required":true}},"validators":{}},
"type": {"dataType":"nestedObjectLiteral","nestedProperties":{"contentArray":{"dataType":"array","array":{"dataType":"refAlias","ref":"Message"}},"image_url":{"dataType":"string"},"timestamp":{"dataType":"string"},"tool_call_id":{"dataType":"string"},"tool_calls":{"dataType":"array","array":{"dataType":"refObject","ref":"FunctionCall"}},"content":{"dataType":"string"},"name":{"dataType":"string"},"role":{"dataType":"string"},"id":{"dataType":"string"},"_type":{"dataType":"union","subSchemas":[{"dataType":"enum","enums":["function"]},{"dataType":"enum","enums":["functionCall"]},{"dataType":"enum","enums":["image"]},{"dataType":"enum","enums":["message"]},{"dataType":"enum","enums":["autoInput"]},{"dataType":"enum","enums":["contentArray"]}],"required":true}},"validators":{}},
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -683,6 +683,7 @@ Json: JsonObject;
tool_call_id?: string;
tool_calls?: components["schemas"]["FunctionCall"][];
content?: string;
name?: string;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -1129,6 +1129,7 @@ Json: JsonObject;
tool_call_id?: string;
tool_calls?: components["schemas"]["FunctionCall"][];
content?: string;
name?: string;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -683,6 +683,7 @@ Json: JsonObject;
tool_call_id?: string;
tool_calls?: components["schemas"]["FunctionCall"][];
content?: string;
name?: string;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -1129,6 +1129,7 @@ Json: JsonObject;
tool_call_id?: string;
tool_calls?: components["schemas"]["FunctionCall"][];
content?: string;
name?: string;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -1010,7 +1010,7 @@ const models: TsoaRoute.Models = {
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
"Message": {
"dataType": "refAlias",
"type": {"dataType":"nestedObjectLiteral","nestedProperties":{"contentArray":{"dataType":"array","array":{"dataType":"refAlias","ref":"Message"}},"image_url":{"dataType":"string"},"timestamp":{"dataType":"string"},"tool_call_id":{"dataType":"string"},"tool_calls":{"dataType":"array","array":{"dataType":"refObject","ref":"FunctionCall"}},"content":{"dataType":"string"},"role":{"dataType":"string"},"id":{"dataType":"string"},"_type":{"dataType":"union","subSchemas":[{"dataType":"enum","enums":["function"]},{"dataType":"enum","enums":["functionCall"]},{"dataType":"enum","enums":["image"]},{"dataType":"enum","enums":["message"]},{"dataType":"enum","enums":["autoInput"]},{"dataType":"enum","enums":["contentArray"]}],"required":true}},"validators":{}},
"type": {"dataType":"nestedObjectLiteral","nestedProperties":{"contentArray":{"dataType":"array","array":{"dataType":"refAlias","ref":"Message"}},"image_url":{"dataType":"string"},"timestamp":{"dataType":"string"},"tool_call_id":{"dataType":"string"},"tool_calls":{"dataType":"array","array":{"dataType":"refObject","ref":"FunctionCall"}},"content":{"dataType":"string"},"name":{"dataType":"string"},"role":{"dataType":"string"},"id":{"dataType":"string"},"_type":{"dataType":"union","subSchemas":[{"dataType":"enum","enums":["function"]},{"dataType":"enum","enums":["functionCall"]},{"dataType":"enum","enums":["image"]},{"dataType":"enum","enums":["message"]},{"dataType":"enum","enums":["autoInput"]},{"dataType":"enum","enums":["contentArray"]}],"required":true}},"validators":{}},
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -2666,6 +2666,9 @@
"content": {
"type": "string"
},
"name": {
"type": "string"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants