TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Conversation history using OpenAI API

2 pointsby broooderover 2 years ago

1 comment

broooderover 2 years ago
I was messing around with the Open AI Api today, embedding the conversation history in the request to OpenAI, so that text-davinci-003 can be aware of conversation context like chatGPT.<p>Something like: request_open_ai = &quot;Previously we have said: #{@old_history_joined}. #{@prompt}&quot;