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

agents.application.prompts.py def prompts_polymarket( self, data1: str, data2: str, market_question: str, outcome: str ) -> str: current_market_data = str(data1) #24

Closed
testpower4 opened this issue Oct 1, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@testpower4
Copy link

Describe the bug

python -m scripts.python.cli ask-polymarket-llm election

this can produce:

BadRequestError: Error code: 400 - {'error': {'message': "This model's maximum context length is 16385 tokens. However, your messages resulted in 96817
tokens. Please reduce the length of the messages.", 'type': 'invalid_request_error', 'param': 'messages', 'code': 'context_length_exceeded'}}

Steps to reproduce

using the default gpt-3.5-turbo will result in the error

Expected behavior

if modify agents/application/executor.py to use
gpt-4-1106-preview
possible to get a workaround, but I would like to split data1 from agents.application.prompts.py, which should resolve the issue properly

def prompts_polymarket( self, data1: str, data2: str, market_question: str, outcome: str ) -> str: current_market_data = str(data1)

Environment

  • OS: linux

Additional context

Add any other context about the problem here
.

@testpower4 testpower4 added the bug Something isn't working label Oct 1, 2024
Copy link

github-actions bot commented Oct 1, 2024

Welcome to Polymarket Agents. Thank you for filing your first issue.

@testpower4
Copy link
Author

created a PR to address the issue: #25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant