tmc / langchaingo

LangChain for Go, the easiest way to write LLM-based programs in Go
https://tmc.github.io/langchaingo/
MIT License
3.75k stars 521 forks source link

feat(openai): add the field `detail` in ImageURLContent struct #853

Closed douglarek closed 2 weeks ago

douglarek commented 1 month ago

resolves #848.

PR Checklist

tmc commented 2 weeks ago

Thanks, I reworked some of the marshaling code so I've rebased and pushed a change here. I opted to relax the type of the Detail field as it feels vendor-specific enough at this time. If that becomes more widespread I'm open to having the more specific type.