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

Does this sample also work with deployed prompt flows? #395

Open
christopher-wilke opened this issue Nov 16, 2023 · 4 comments
Open

Does this sample also work with deployed prompt flows? #395

christopher-wilke opened this issue Nov 16, 2023 · 4 comments

Comments

@christopher-wilke
Copy link

No description provided.

@ntabernacle
Copy link

Did you ever get this working? Looks like it would need to point to a end point.

@christopher-wilke
Copy link
Author

Yes, you also need to make sure to update the data model.

@ntabernacle
Copy link

Thanks. So,

AZURE_OPENAI_MODEL
AZURE_OPENAI_ENDPOINT

You updated from the promptflow deployment and it worked?

@placeholger313
Copy link

Yes, you also need to make sure to update the data model.

Means flow prompt should be configured to handle input/output as descibed in REST API docs and then it should work? (+adjusting endpoint URL and key)

input:
{"messages":[{"role": "system", "content": "You are a helpful assistant."},{"role": "user", "content": "Does Azure OpenAI support customer managed keys?"},{"role": "assistant", "content": "Yes, customer managed keys are supported by Azure OpenAI."},{"role": "user", "content": "Do other Azure AI services support this too?"}]}

output:

"object":"chat.completion","created":1679072642,
"model":"gpt-35-turbo",
"usage":{"prompt_tokens":58,
"completion_tokens":68,
"total_tokens":126},
"choices":[{"message":{"role":"assistant",
"content":"Yes, other Azure AI services also support customer managed keys. Azure AI services offer multiple options for customers to manage keys, such as using Azure Key Vault, customer-managed keys in Azure Key Vault or customer-managed keys through Azure Storage service. This helps customers ensure that their data is secure and access to their services is controlled."},"finish_reason":"stop","index":0}]}

Has someone tested it and can confirm?
Thx

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

3 participants