We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Phoenix Cloud (app.phoenix.arize.com)
8.10
mac
3.13
No response
The get "prompts.get" returns an HTTP 404 when the prompt doesn't exist. It should be a clear prompt doesn't exist issue and not a HTTP 404.
Given it was my first use of prompt API, I thought I had connectivity issues and spent time looking at HTTP endpoint.
Example with a prompt that exists:
I expect a clear Message that the prompt doesn't exist, shouldn't be a python & HTTP error
Run this on Phoenix Cloud. from phoenix.client import Client
cl = Client(
)
prompt_name2 = "article-bullet-summarizer-random" cl.prompts.get(prompt_identifier=prompt_name)
The text was updated successfully, but these errors were encountered:
This makes sense. We can wrap errors in the client with our own set of errors.
Sorry, something went wrong.
No branches or pull requests
Where do you use Phoenix
Phoenix Cloud (app.phoenix.arize.com)
What version of Phoenix are you using?
8.10
What operating system are you seeing the problem on?
mac
What version of Python are you running Phoenix with?
3.13
What version of Python or Node are you using instrumentation with?
No response
What instrumentation are you using?
No response
What happened?
The get "prompts.get" returns an HTTP 404 when the prompt doesn't exist. It should be a clear prompt doesn't exist issue and not a HTTP 404.
Given it was my first use of prompt API, I thought I had connectivity issues and spent time looking at HTTP endpoint.
Example with a prompt that exists:
What did you expect to happen?
I expect a clear Message that the prompt doesn't exist, shouldn't be a python & HTTP error
How can we reproduce the bug?
Run this on Phoenix Cloud.
from phoenix.client import Client
Initialize a phoenix client with your phoenix endpoint
By default it will read from your environment variables
cl = Client(
endpoint="https://my-phoenix.com",
)
Pulling a prompt by name
prompt_name2 = "article-bullet-summarizer-random"
cl.prompts.get(prompt_identifier=prompt_name)
Additional information
No response
The text was updated successfully, but these errors were encountered: