Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HTTP request Multiple conversations with ChatGPT while keeping context
#8
thanks for your help.
I've tried the PowerShell code below, but the execution result is the same as the C# code above.
I've searched through a lot of resources, but still haven't found what I need. It's much more complex than I imagined.
 
Code:
Copy      Help
# UserA 1
Invoke-RestMethod http://localhost:4455/GetGPTMes -Method Post -Body @{
    userMes   = 'What is the capital of Japan?'
    createBot = $true
}

sleep 5

# UserA 2
Invoke-RestMethod http://localhost:4455/GetGPTMes -Method Post -Body @{
    userMes   = 'Translate the previous answer into French.'
    createBot = $false
}


Messages In This Thread
RE: HTTP request Multiple conversations with ChatGPT while keeping context - by Davider - 04-29-2024, 09:53 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)