GoogleCloudPlatform/kubectl-ai
[Feature]: Add session persistence for OpenAI provider
开放
#465 创建于 2025年8月8日
enhancementhelp wanted
仓库指标
- 星标
- (7,532 个星标)
- PR 合并指标
- (PR 指标待抓取)
描述
#443 added session persistence for Gemini, but other providers were left unimplemented.
We should add similar implementation of Initialize() to load chat history for OpenAI provider. This can happen in gollm/openai.go and will likely follow a similar flow to Gemini, where we convert api messages to the provider-specific messages and add them to the history.
Adding tests is also very welcomed. Basic flows like saving and loading sessions, creating a new session, deleting a session, and listing sessions should be covered. Edge cases like invalid session ID and corrupted save file should also be covered.