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

Removing a request from cache #1667

Open
jumpingtom1 opened this issue Apr 6, 2024 · 1 comment
Open

Removing a request from cache #1667

jumpingtom1 opened this issue Apr 6, 2024 · 1 comment

Comments

@jumpingtom1
Copy link

This is a problem that I've had several times. I'm running a system of function calls to OpenAI and the responses are JSON. Sometimes, the openai completion doesn't fit the expected function schema, just omitting complete several of the key/values. The returned object is a complete JSON object, so that doesn't throw the error, but as the response is further processed by my app, the lack of certain values makes the app not function properly.

I can diagnose that as the problem by looking at the request logs and finding the response that was incomplete. I would like to be able to manually delete that request from my logs, so that it isn't returned to me as a cached value when I re-run the call. As the system currently exists, the stored request is returned to me from the cache, perpetuating the error.

If its helpful, here is the id of the request I'm referring to: 18f47876-f83b-4cdc-b9ab-f0cb283c006c

Thanks! Helicone is great! I'm looking forward to additional support for the prompts tracking feature.

@colegottdank
Copy link
Collaborator

Hi, thank you for the issue and we appreciate your support :)

Would the header Helicone-Cache-Seed solve this for you?

https://docs.helicone.ai/features/advanced-usage/caching#adding-cache-seed

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

No branches or pull requests

2 participants