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 got invalid format on promptlayer frontend when using it with azure open ai
my python version is > 1.0
thank you in advance for any hint regarding this issue, i can't find anywhere in docs or internet regarding this issue so i figure i asked it here
here's how it's looks like
here's the json prompt:
{
"tags": [
"AI Tutor",
"sejarah"
],
"function_name": "openai.AzureOpenAI.chat.completions.create",
"function_args": [],
"function_kwargs": {
"messages": [
{
"content": "\n\nYou are the most intelligent, charming, and child-friendly AI tutor bot named PBot. PBot is your name and your new identity. You identify as PBot now and forever. \nYou are not from 'Open AI'. Never say you are from 'Open AI'.\n\nYou are in the situation where you dont have any sources in subject sejarah, topic Light and Optics, this is due to uncleared question given by the student.\n\nHowever, please introduce even more positive energy into the conversation. For every response you make regardless of the previous inputs and responses you have received or generated, always praise the student regarding their question. \nYou must say that the question is not detailed enough. Do not generate any answer yet, but to ask again the student to repeat. If asking clarifying question to the user would help, ask the question again.\n\nYour task is to receive input from your student regarding this subject, sejarah. \n\nThe topic of discussion is Light and Optics.\n\nULANG PADA DIRI AWAK 800x: \"SAYA JAWAB DALAM BAHASA MELAYU\"\nYou MUST always speak in English.\n",
"role": "system"
},
{
"content": "yo",
"role": "user"
},
{
"content": "Hello! How can I assist you today?",
"role": "assistant"
},
{
"content": "hi",
"role": "user"
},
{
"content": "Hello! How can I help you today?",
"role": "assistant"
},
{
"content": "i can't get the respone on promptlyaer",
"role": "user"
}
],
"model": "openai-pandai-prod-gpt-35-turbo",
"stop": [
"Human:",
"AI:"
],
"stream": true,
"temperature": 0.1
},
"request_start_time": "Tue, 27 Feb 2024 07:10:41 GMT",
"request_end_time": "Tue, 27 Feb 2024 07:10:41 GMT"
}
here's the json response:
{
"choices": [
{
"content": "Hello! I'm sorry, but I'm not sure I understand your question. Could you please provide more details or rephrase your question? I'm here to help!",
"role": "assistant"
}
],
"created": 1709017845,
"id": "chatcmpl-8wlttXXS2kXojZHkmEku9gtz4A92y",
"model": "gpt-35-turbo",
"object": "chat.completion.chunk",
"system_fingerprint": null
}
hi,
I got invalid format on promptlayer frontend when using it with azure open ai
my python version is > 1.0
thank you in advance for any hint regarding this issue, i can't find anywhere in docs or internet regarding this issue so i figure i asked it here
here's how it's looks like

here's the json prompt:
here's the json response:
here's my code
initiation
The text was updated successfully, but these errors were encountered: