-
-
Notifications
You must be signed in to change notification settings - Fork 82
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 ability to specify user in OpenAI and ChatOpenAI #143
Labels
Milestone
Comments
thanks for reporting @mirkancal! |
davidmigloz
changed the title
Add User to the OpenAI endpoints
Add ability to specify user in OpenAI and ChatOpenAI
Aug 31, 2023
davidmigloz
added a commit
that referenced
this issue
Aug 31, 2023
davidmigloz
added a commit
that referenced
this issue
Aug 31, 2023
github-project-automation
bot
moved this from 🏗 In Progress
to ✅ Done
in LangChain.dart
Aug 31, 2023
davidmigloz
added a commit
that referenced
this issue
Aug 31, 2023
davidmigloz
added a commit
that referenced
this issue
Aug 31, 2023
Done! Now you can either specify it when instantiating the wrapper if the user will be always the same: final chat = ChatOpenAI(
apiKey: '...',
user: 'user123456',
); Or when calling the llm if the user varies per request: final res = await chat(
[query],
options: const ChatOpenAIOptions(user: 'user123456'),
); Btw, thank you very much for assisting people in our discord, I really appreciate it 🙂 |
KennethKnudsen97
pushed a commit
to KennethKnudsen97/langchain_dart
that referenced
this issue
Sep 29, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Feature request
https://platform.openai.com/docs/guides/safety-best-practices
It seems missing.
Motivation
We can pass userId to OpenAI, not sure if there's any benefits except for them to monitor users.
Your contribution
Checking how to add without breaking the code.
The text was updated successfully, but these errors were encountered: