Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: update `ChatCompletionResponse` to make `model` field optional (#1258)
Sarah Wooderse1063e3129da
diff --git a/memgpt/models/chat_completion_response.py b/memgpt/models/chat_completion_response.pyindex ebd172d36..5369aeb36 100644--- a/memgpt/models/chat_completion_response.py+++ b/memgpt/models/chat_completion_response.py@@ -58,7 +58,7 @@ class ChatCompletionResponse(BaseModel):id: strchoices: List[Choice]created: datetime.datetime- model: str+ model: Optional[str] = None # NOTE: this is not consistent with OpenAI API standard, however is necessary to support local LLMs# system_fingerprint: str # docs say this is mandatory, but in reality API returns Nonesystem_fingerprint: Optional[str] = None# object: str = Field(default="chat.completion")