Skip to main content

Module chatgpt

Module chatgpt 

Source
Expand description

ChatGPT (OpenAI) cloud provider

Fetches conversation history from ChatGPT web interface.

§Authentication

Requires either:

  • API key via OPENAI_API_KEY environment variable (for API access)
  • Session token for web interface access (retrieved from browser cookies)

Note: The official API doesn’t provide conversation history access. Web scraping requires a session token from browser cookies.

Structs§

ChatGPTProvider
ChatGPT provider for fetching conversation history

Functions§

parse_chatgpt_export
Parse a ChatGPT export file (JSON format from “Export data” feature)