This commit is contained in:
Aiden Dai
2025-03-26 13:10:07 +08:00
parent c98e123c8f
commit b27e83624f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -232,7 +232,7 @@ class BedrockModel(BaseChatModel):
# return an [DONE] message at the end. # return an [DONE] message at the end.
yield self.stream_response_to_bytes() yield self.stream_response_to_bytes()
except Exception as e: except Exception as e:
error_event = Error(error=ErrorMessage(messsage=str(e))) error_event = Error(error=ErrorMessage(message=str(e)))
yield self.stream_response_to_bytes(error_event) yield self.stream_response_to_bytes(error_event)
def _parse_system_prompts(self, chat_request: ChatRequest) -> list[dict[str, str]]: def _parse_system_prompts(self, chat_request: ChatRequest) -> list[dict[str, str]]:
+1 -1
View File
@@ -179,7 +179,7 @@ class EmbeddingsResponse(BaseModel):
class ErrorMessage(BaseModel): class ErrorMessage(BaseModel):
messsage: str message: str
class Error(BaseModel): class Error(BaseModel):