EndlessInternational / intelligence

A Ruby gem for seamlessly and uniformly interacting with large language and vision model (LLM) API's served by numerous services, including those of OpenAI, Anthropic, Google and others.
MIT License
44 stars 2 forks source link

[groq] bad behavior of stop sequences #2

Open kristoph opened 2 weeks ago

kristoph commented 2 weeks ago

Groq will honor a stop sequence when streaming but it seems to continue to generate in the backend and, should it hit max_token, it will return length as the finish reason rather than stop.