GoogleCloudPlatform/kubectl-ai

[Feature]: Add session persistence for Azure OpenAI

Aperta

#459 aperta il 8 ago 2025

 (3 commenti) (0 reazioni) (0 assegnatari)Go (708 fork)auto 404
enhancementhelp wanted

Metriche repository

Star
 (7532 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

#443 added session persistence for Gemini, but other providers were left unimplemented.

We should add similar implementation of Initialize() to load chat history for Azure OpenAI. This can happen in gollm/azopenai.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.

Guida contributor