Skip to content

Add threads support #11

@kaashmonee

Description

@kaashmonee

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions