thmsmlr / instructor_ex

Structured outputs for LLMs in Elixir
https://hexdocs.pm/instructor
430 stars 48 forks source link

fix: json schema included twice #51

Closed petrus-jvrensburg closed 1 week ago

petrus-jvrensburg commented 2 months ago

In :tools mode, the JSON schema is included in the prompt twice: once in the system message, and again in the tool description.

This PR ignores the system message for :tools mode.

thmsmlr commented 1 week ago

Good catch!