Replies: 3 comments 1 reply
-
I agree your request. We need developer message on langchain. if you want to use markdown output ,we can use system role and content is Formatting re-enabled now.
|
Beta Was this translation helpful? Give feedback.
-
Yep I need this too. Is there any short term fix - anyone got a decent workaround for this? |
Beta Was this translation helpful? Give feedback.
-
for someone find hotfix's we can use system message type as temporal Developer messages. from langchain_core.messages import SystemMessage, HumanMessage
from langchain_openai import ChatOpenAI
test_developer_message = SystemMessage(content="you are a developer")
test_developer_message.additional_kwargs = {"__openai_role__": "developer"}
test_message = HumanMessage(content="say somthing")
test_model = ChatOpenAI(model="o3-mini-2025-01-31", temperature=1, timeout=180)
print(test_model.invoke([test_developer_message, test_message]))
|
Beta Was this translation helpful? Give feedback.
-
Checked
Feature request
Yesterday openai released new type of message called "developer" message which replaces system message for newest models.
Langchain does not have a current solution for dynamically adding new message types, we should add new message type "developer" and make it possible to add dynamic types for future.
Motivation
Feature request for new technologies
Proposal (If applicable)
No response
Beta Was this translation helpful? Give feedback.
All reactions