solve the problem when speaker is "ai"#86
Conversation
|
Thanks for pushing the fix. I think it should be fixed the other way around. Speaker = Literal["human", "assistant", "system"] should be human, ai, system. |
yeah,that's right. I'll make some changes, thanks. |
|
Emmm.. The openai_chat is unrelated to the pydantic here. For the pydantic, changing |
When 'format = "openai_chat"', only changing Speaker = Literal["human", "assistant", "system"] to Speaker = Literal["human", "ai", "system"] will causing problem. _poml_response_to_openai_chat function needs change. |
|
I don't think the original speaker returned by POML will ever be assistant? The speakers in the input of |
If that If it's ok i'll remove assistant finally. |
|
Sorry I mistakenly see "assistant": "assistant" as the change. I apologize for the confusion. Seems that your change is correct. Please remove |
Ok, I have already removed it, thanks for review. |
when use poml() function there is a problem that PomlMessage doesn't support speaker "ai"