Videos
Hey guys, i'm trying to create a prompt in langchain hub from an already existing public prompt by just copying and pasting its content into a new prompt. This is the first prompt I'm trying to create and it seems though I tried to duplicate the original prompt, My prompt is different from the original prompt.
Here's the link to my prompt: https://smith.langchain.com/hub/smtabatabaie/gps
And here's the original prompt: https://smith.langchain.com/hub/smtabatabaie/web-voyager
My prompt has a "ChatOpenAI" whereas the original prompt doesn't have this section. And also my prompt has "scratchpad" as input whereas the original prompt doesn't consider "scratchpad" as an input when I print the prompt in my python script.
Also in my script when I pull and use the original prompt, it works without any problem. But when i pull and use my prompt, it shows me the following error about hitting the maximum context length:
"openai.BadRequestError: Error code: 400 - {'error': {'message': "This model's maximum context length is 128000 tokens. However, your messages resulted in 473683 tokens. Please reduce the length of the messages.", 'type': 'invalid_request_error', 'param': 'messages', 'code': 'context_length_exceeded'}}"
Would really appreciate if you have any idea what's causing this.
Thanks very much.