You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got the AzureOpenAIService custom connector installed and it works, but some of the parameters in ChatCompletion don't seem to effect the response. For example, for "system_instruction", you should be able to say "you are a comedian", or "you are Shakespear" and the response would be reflected in that.
I've got the connector in a Power App, and have a fields to input the settings, then a button submit like this:
Then I display the "answer" like this in a text box: varResponse3.answer
The last issue I'm having is that I can never get any results returned for the usage, it's just blank. varResponse3.'raw-result'.usage.prompt_tokens
varResponse3.'raw-result'.usage.completion_tokens
varResponse3.'raw-result'.usage.total_tokens
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've got the AzureOpenAIService custom connector installed and it works, but some of the parameters in ChatCompletion don't seem to effect the response. For example, for "system_instruction", you should be able to say "you are a comedian", or "you are Shakespear" and the response would be reflected in that.
I've got the connector in a Power App, and have a fields to input the settings, then a button submit like this:
Set(varResponse3, AzureOpenAIService.ChatCompletion("deployment-gpt-35-turbo","2023-03-15-preview",{messages:{role:"user",content:TextInputChatGPTPrompt_1.Text},
system_instruction:TextInputSystemInstruction.Text, max_tokens:TextInputMaxTokens.Text, temperature:TextInputTemperature.Text,
presence_penalty:TextInputPresence_penalty.Text, frequency_penalty:TextInputFrequency_penalty.Text, top_p:TextInputTop_p.Text, n:TextInputN.Text, stop:TextInputStop.Text,
user_message:TextInputUserMessage.Text}))
Then I display the "answer" like this in a text box:
varResponse3.answer
The last issue I'm having is that I can never get any results returned for the usage, it's just blank.
varResponse3.'raw-result'.usage.prompt_tokens
varResponse3.'raw-result'.usage.completion_tokens
varResponse3.'raw-result'.usage.total_tokens
Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions