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: Broken, out-of-date docs for PromptLayer Langchain integration #27250

Open
2 tasks done
roablep opened this issue Oct 10, 2024 · 0 comments
Open
2 tasks done

DOC: Broken, out-of-date docs for PromptLayer Langchain integration #27250

roablep opened this issue Oct 10, 2024 · 0 comments
Labels
🤖:docs Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder

Comments

@roablep
Copy link

roablep commented Oct 10, 2024

URL

https://python.langchain.com/docs/integrations/chat/promptlayer_chatopenai/

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:

promptlayer.version 1.0.21
langchain_community.version 0.2.17
langchain_core.version 0.2.41

Same issue here - https://python.langchain.com/docs/integrations/llms/promptlayer_openai/

File ~/github/repo1.venv/lib/python3.11/site-packages/langchain_community/chat_models/promptlayer_openai.py:69, in PromptLayerChatOpenAI._generate(self, messages, stop, run_manager, stream, **kwargs)
     65 response_dict, params = super()._create_message_dicts(
     66     [generation.message], stop
     67 )
     68 params = {**params, **kwargs}
---> 69 pl_request_id = promptlayer_api_request(
     70     "langchain.PromptLayerChatOpenAI",
     71     "langchain",
     72     message_dicts,
     73     params,
     74     self.pl_tags,
     75     response_dict,
     76     request_start_time,
     77     request_end_time,
     78     get_api_key(),
     79     return_pl_id=self.return_pl_id,
     80 )
     81 if self.return_pl_id:
     82     if generation.generation_info is None or not isinstance(
     83         generation.generation_info, dict
     84     ):

TypeError: promptlayer_api_request() takes 0 positional arguments but 9 positional arguments (and 1 keyword-only argument) were given

Idea or request for content:

No response

@dosubot dosubot bot added the 🤖:docs Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder label Oct 10, 2024
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

1 participant