diff --git a/API_request.py b/API_request.py index 3489d74..a2bd2c7 100644 --- a/API_request.py +++ b/API_request.py @@ -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 diff --git a/src/data/output-responses/full-submission_response.json b/src/data/output-responses/full-submission_response.json new file mode 100644 index 0000000..1b6b6a5 --- /dev/null +++ b/src/data/output-responses/full-submission_response.json @@ -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 + } +} \ No newline at end of file