microsoft / prompty

Prompty makes it easy to create, manage, debug, and evaluate LLM prompts for your AI applications. Prompty is an asset class and format for LLM prompts designed to enhance observability, understandability, and portability for developers.
https://prompty.ai
MIT License
148 stars 9 forks source link

Error: 400 status code (no body) #8

Closed batemansogq closed 1 month ago

batemansogq commented 1 month ago

Running the default Prompty template, post;

  1. azd auth login
  2. subscription set

update the prompty for the endpoint, deployment name and max tokens - run get the error message of "Error: 400 status code (no body)"

see attached screenshots - prompty1 prompty2 prompty3

Any ideas?

wayliums commented 1 month ago

@batemansogq hmm, looks like the model endpoint doesn't understand the payload, looks weird, which model is it? GPT35 turbo? Have you tried creating another endpoint and test with that?

wayliums commented 1 month ago

also, can you try using api key, and see if that's working?

fjuradom98 commented 1 month ago

Hello @wayliums @batemansogq I am having the same issue, with the basic example. But i see that you already got an answer in the first time, and in the second iteration shows the error, correct? I have the issue at the first time, i am trying to configure my local environment

batemansogq commented 1 month ago

@wayliums - current model image

batemansogq commented 1 month ago

image @wayliums

wayliums commented 1 month ago

@batemansogq you mean if you remove the api_key, using AAD it's not working? And is it the same for all models?

Btw if you have to use API key, I suggest you use ${env:API_KEY}, it'll try to find and load .env file in

batemansogq commented 1 month ago

Hey @wayliums; AAD? That correct, validated against a 3.5 & 4, both deployed via AI studio

image

config file? Yes, this is the plan.