GoogleCloudPlatform/kubectl-ai

[Feature]: Add session persistence for Ollama

開放

#464 建立於 2025年8月8日

 (0 則留言) (1 個反應) (0 位負責人)Go (708 個分叉)auto 404
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 Ollama. This can happen in gollm/ollama.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.

貢獻者指南