MLSysOps / MLE-agent

MLE-Agent is designed to be a pair coding agent for machine learning engineers and researchers. Support OpenAI and Ollama.
MIT License
17 stars 1 forks source link

[JSON] make sure the generated plan is json mode #45

Closed HuaizhengZhang closed 1 day ago

HuaizhengZhang commented 1 month ago

https://platform.openai.com/docs/guides/text-generation/chat-completions-api

image

huangyz0918 commented 1 month ago

Good point, also I saw some developers will try to catch the error and then re-generate again, to make sure it always return the correct format

huangyz0918 commented 1 month ago

ref #31 Let's make this better