4 ms·
Unfortunately, you're using sashabaranov/go-openai, which has different api behavior than the official langchain python package [0]. I was hoping this would be
by itake 3y ago
Unfortunately, you're using sashabaranov/go-openai, which has different api behavior than the official langchain python package [0].
I was hoping this would be a drop in replacement for langchain (so DS ppl can code in python and gophers can port it to production).
[0] - https://github.com/sashabaranov/go-openai#why-dont-we-get-the-same-answer-when-specifying-a-temperature-field-of-0-and-asking-the-same-question https://github.com/sashabaranov/go-openai#why-dont-we-get-th...
- emil14 3y ago1) Thank you for pointing the moment with 0 temp, I think we can make `agency.TextToTextParams{Temperature *int}` where nil gonna be passed down like `0` and 0 gonna be mapped to `math.SmallestNonzeroFloat32`. We also will add the ability to use seeds though 2) "I was hoping this would be a drop in replacement for langchain" - why don't use use langchaingo then? The thing is - we don't like langchain much. To is it looks too complex, we thing we can do better, simpler. The final goal is to make a library that can replace langchain and/or autogen but it's definitely not gonna be "drop-in" replacement
- emil14 3y agoUPD: bug with temperature fixed in master
- traviscline 3y agoYou might be interested in https://github.com/tmc/langchaingo https://github.com/tmc/langchaingo which adheres to some of the conceptual modeling in langchain.