Skip to content

Commit ecf40af

Browse files
alarbadaGuillemgrvsahil
authored
Add openai textgen processor (#2169)
* code move * fix lint * fix README.md lint * paramgen * Update pkg/plugin/processor/builtin/impl/openai-textgen/textgen.go Co-authored-by: Gaurav Kumar Sahil <[email protected]> * Update pkg/plugin/processor/builtin/impl/openai-textgen/textgen.go Co-authored-by: Gaurav Kumar Sahil <[email protected]> * apply code review edits * apply fix * add backoff * apply pr suggestion * add examples * fix version * fix go generate --------- Co-authored-by: Guillem <[email protected]> Co-authored-by: Gaurav Kumar Sahil <[email protected]>
1 parent 90119ed commit ecf40af

File tree

9 files changed

+1045
-0
lines changed

9 files changed

+1045
-0
lines changed

go.mod

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ require (
4141
github.com/prometheus/client_model v0.6.1
4242
github.com/prometheus/common v0.62.0
4343
github.com/rs/zerolog v1.33.0
44+
github.com/sashabaranov/go-openai v1.37.0
4445
github.com/sourcegraph/conc v0.3.0
4546
github.com/spf13/cobra v1.9.1
4647
github.com/spf13/pflag v1.0.6

go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -813,6 +813,8 @@ github.com/sanposhiho/wastedassign/v2 v2.1.0 h1:crurBF7fJKIORrV85u9UUpePDYGWnwvv
813813
github.com/sanposhiho/wastedassign/v2 v2.1.0/go.mod h1:+oSmSC+9bQ+VUAxA66nBb0Z7N8CK7mscKTDYC6aIek4=
814814
github.com/santhosh-tekuri/jsonschema/v6 v6.0.1 h1:PKK9DyHxif4LZo+uQSgXNqs0jj5+xZwwfKHgph2lxBw=
815815
github.com/santhosh-tekuri/jsonschema/v6 v6.0.1/go.mod h1:JXeL+ps8p7/KNMjDQk3TCwPpBy0wYklyWTfbkIzdIFU=
816+
github.com/sashabaranov/go-openai v1.37.0 h1:hQQowgYm4OXJ1Z/wTrE+XZaO20BYsL0R3uRPSpfNZkY=
817+
github.com/sashabaranov/go-openai v1.37.0/go.mod h1:lj5b/K+zjTSFxVLijLSTDZuP7adOgerWeFyZLUhAKRg=
816818
github.com/sashamelentyev/interfacebloat v1.1.0 h1:xdRdJp0irL086OyW1H/RTZTr1h/tMEOsumirXcOJqAw=
817819
github.com/sashamelentyev/interfacebloat v1.1.0/go.mod h1:+Y9yU5YdTkrNvoX0xHc84dxiN1iBi9+G8zZIhPVoNjQ=
818820
github.com/sashamelentyev/usestdlibvars v1.28.0 h1:jZnudE2zKCtYlGzLVreNp5pmCdOxXUzwsMDBkR21cyQ=

pkg/plugin/processor/builtin/impl/openai-textgen/paramgen_proc.go

+204
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)