Skip to content

Commit

Permalink
Change route name
Browse files Browse the repository at this point in the history
  • Loading branch information
harishmohanraj committed Nov 9, 2023
1 parent 36f825d commit 58b164f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ class AzureOpenAIRequest(BaseModel):
conversation: List[Dict[str, str]]

# Route 5: Connect to OpenAI and get response
@app.post("/conversation")
@app.post("/chat")
async def create_item(request: AzureOpenAIRequest) -> str:
conversation = request.conversation
result = await get_openai_response(conversation)
Expand Down

0 comments on commit 58b164f

Please sign in to comment.