Versions (OpenSearch Dashboard v 3.0.0):
Describe the issue:
Azure OpenAI external host connector is added. But the model return IllegalArgumentException: Invalid payload: { \"messages\": ${parameters.messages}, \"temperature\": 0.7 }
Strangely, this issue appear when I tried to test the model using this: RAG chatbot with a conversational flow agent - OpenSearch Documentation
But when I tried use the test described in the bluprint, it is working fine.
I tried to register an agent with below config but it also throws an error.
Configuration:
I follow the connector blueprint via ml-commons/docs/remote_inference_blueprints/azure_openai_connector_chat_blueprint.md at main · opensearch-project/ml-commons · GitHub
Relevant Logs or Screenshots:
- Agent Configuration
POST /_plugins/_ml/agents/_register
{
"name": "Plan execute and reflect agent",
"type": "plan_execute_and_reflect",
"description": "this is a test agent",
"llm": {
"model_id": "dMEk-JYBuC4BoDwKx4IS"
},
"memory": {
"type": "conversation_index"
},
"parameters": {
"_llm_interface": "openai/v1/chat/completions"
},
"tools": [
{
"type": "ListIndexTool"
},
{
"type": "SearchIndexTool"
},
{
"type": "IndexMappingTool"
}
],
"app_type": "os_chat"
}
- Connector Config