Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add threads support #11

Open
kaashmonee opened this issue Jan 20, 2024 · 1 comment
Open

Add threads support #11

kaashmonee opened this issue Jan 20, 2024 · 1 comment

Comments

@kaashmonee
Copy link

go-chatgpt/chat.go

Lines 134 to 139 in 8aeb601

endpoint := "/chat/completions"
httpReq, err := http.NewRequest("POST", c.config.BaseURL+endpoint, bytes.NewBuffer(reqBytes))
if err != nil {
return nil, err
}
httpReq = httpReq.WithContext(ctx)

It would be really cool to add Threads support -- I can work on this if you want!

https://platform.openai.com/docs/api-reference/threads

Thanks for this project btw, I was able to use it and found it super useful!

@ayush6624
Copy link
Owner

I'm glad you found it useful!

Please go ahead and create a PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants