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

DOC: Add support for custom user agent in the tutorial for openai #28178

Open
2 tasks done
remyleone opened this issue Nov 18, 2024 · 2 comments
Open
2 tasks done

DOC: Add support for custom user agent in the tutorial for openai #28178

remyleone opened this issue Nov 18, 2024 · 2 comments
Labels
🤖:docs Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder

Comments

@remyleone
Copy link

URL

https://python.langchain.com/docs/integrations/llms/openai/

Checklist

  • I added a very descriptive title to this issue.
  • I included a link to the documentation page I am referring to (if applicable).

Issue with current documentation:

There is no explicit section in this documentation about how to override the default openai client to put custom user agent information. This is problematic because from an analytics perspective langchain shows up nowhere in our logs. Purely from analytics data, we cannot see if our customers are using langchain.

Idea or request for content:

Either add a default langchain custom user agent that says something like:
User-Agent: langchain/v1.2.3 openai/python v1.2.3
that would be helpful to show up that langchain is used and this can be proved.

or add in the documentation a way to add a custom User-Agent that would be weaker because it would suppose that all customer will add this header but it is better than nothing :)

@dosubot dosubot bot added the 🤖:docs Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder label Nov 18, 2024
@Aijeyomah
Copy link

@remyleone I am interested in working on this issue. Can you assign to me?

@remyleone
Copy link
Author

I don't have any particular permissions on this repository. I guess it is ok for you to work on it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:docs Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder
Projects
None yet
Development

No branches or pull requests

2 participants