Files
OpenHands/openhands/server/session/conversation_init_data.py
Calvin Smith a12087243a Pydantic-based configuration and setting objects (#6321)
Co-authored-by: Calvin Smith <calvin@all-hands.dev>
Co-authored-by: Graham Neubig <neubig@gmail.com>
Co-authored-by: Engel Nyst <enyst@users.noreply.github.com>
2025-01-17 12:33:22 -07:00

13 lines
376 B
Python

from pydantic import Field
from openhands.server.settings import Settings
class ConversationInitData(Settings):
"""
Session initialization data for the web environment - a deep copy of the global config is made and then overridden with this data.
"""
github_token: str | None = Field(default=None)
selected_repository: str | None = Field(default=None)