Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbbc9f63

Browse files
committed
Remove userID info as this is needed in the request body
1 parent1703ff6 commitbbc9f63

File tree

3 files changed

+0
-16
lines changed

3 files changed

+0
-16
lines changed

‎client_options.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,6 @@ func WithUserAgent(userAgent string) ClientOption {
3232
}
3333
}
3434

35-
// WithUserID is a client option that allows you to specify the unique user ID per request
36-
// see: https://beta.openai.com/docs/guides/safety-best-practices/end-user-ids
37-
funcWithUserID(userIDstring)ClientOption {
38-
returnfunc(c*client)error {
39-
c.userID=userID
40-
returnnil
41-
}
42-
}
43-
4435
// WithBaseURL is a client option that allows you to override the default base url of the client.
4536
// The default base url is "https://api.openai.com/v1"
4637
funcWithBaseURL(baseURLstring)ClientOption {

‎gpt3.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ type client struct {
101101
httpClient*http.Client
102102
defaultEnginestring
103103
idOrgstring
104-
userIDstring
105104
}
106105

107106
// NewClient returns a new OpenAI GPT-3 API client. An apiKey is required to use the client

‎models.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,6 @@ type EnginesResponse struct {
3232
Objectstring`json:"object"`
3333
}
3434

35-
// A base model/mixin that is bound to a unique user ID for whom the request is made
36-
// This is only available on newer OpenAI endpoints.
37-
typeUserBasedRequeststruct {
38-
UserIDstring`json:"user"`
39-
}
40-
4135
// CompletionRequest is a request for the completions API
4236
typeCompletionRequeststruct {
4337
// A list of string prompts to use.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp