Skip to content

Commit

Permalink
Something Important missed
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharth7113 committed May 3, 2024
1 parent 8ed4b4e commit 9b299f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion API_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# Constants
API_URL = "https://openrouter.ai/api/v1/chat/completions"
OPENROUTER_API_KEY = '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' # Secure this in your environment or a config file
OPENROUTER_API_KEY = 'API-KEY-HERE' # Secure this in your environment or a config file
CLEANED_TEXT_DIR = 'src/data/cleaned-sec-edgar-filings'
OUTPUT_DIR = 'src/data/output-responses'
REQUEST_INTERVAL = 60 # seconds to wait between requests to manage API rate limit
Expand Down
6 changes: 6 additions & 0 deletions src/data/output-responses/full-submission_response.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"error": {
"message": "{\"error\":{\"message\":\"{\\\"object\\\":\\\"error\\\",\\\"message\\\":\\\"This model's maximum context length is 32768 tokens. However, you requested 36431 tokens (30532 in the messages, 5899 in the completion). Please reduce the length of the messages or completion.\\\",\\\"type\\\":\\\"BadRequestError\\\",\\\"param\\\":null,\\\"code\\\":400}\"}}",
"code": 400
}
}

0 comments on commit 9b299f0

Please sign in to comment.