Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

for anyone that likes the Agents SDK, but doesn't want their framework attached to OpenAI, we're really liking PydanticAI[0].

0 - https://ai.pydantic.dev/



There’s also HF’s smolagents[1].

1 - https://github.com/huggingface/smolagents


Openai SDK docs:

> Notably, our SDK is compatible with any model providers that support the OpenAI Chat Completions API format.

so you can use with everything, not only OpenAI?


yea they mention this on the pod


Yes


Does it encode everything as json object, so special characters are getting escaped?

I’ve noticed that with longer responses (particularly involving latex), models are a lot less accurate when the results need to be additionally encoded into JSON.

I like structured, but my preference is yaml/markdown, as it is a lot more readable (and the only thing that works with longer responses, latex or code generation).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: