Created
August 15, 2024 11:26
-
-
Save johnfelipe/11fd8819a7abe163e2cee501ef2871f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
felipe@praisonaiwiit:~/hcdc-adres-nuevo$ python3 -m praisonai code | |
2024-08-15 11:13:11,063 - 140631345090560 - __init__.py-__init__:653 - WARNING: SDK is disabled. | |
2024-08-15 11:13:11,063 - 140631345090560 - __init__.py-__init__:1236 - WARNING: SDK is disabled. | |
2024-08-15 11:13:12,812 - 140631345090560 - sql_alchemy.py-sql_alchemy:67 - WARNING: SQLAlchemyDataLayer storage client is not initialized and elements will not be persisted! | |
2024-08-15 11:13:26,897 - 140631345090560 - markdown.py-markdown:42 - WARNING: Translated markdown file for en not found. Defaulting to chainlit.md. | |
2024-08-15 11:13:27,656 - 140631345090560 - config.py-config:351 - WARNING: Translation file for en not found. Using default translation en-US. | |
2024-08-15 11:13:27,912 - 140631345090560 - config.py-config:351 - WARNING: Translation file for en not found. Using default translation en-US. | |
Processed 770/770 files2024-08-15 11:13:30,006 - context - ERROR - Error reading ./hcdc_v2/Migrations/Configuration.cs: 'utf-8' codec can't decode byte 0xfa in position 22884: invalid start byte | |
2024-08-15 11:13:30,006 - 140631345090560 - context.py-context:173 - ERROR: Error reading ./hcdc_v2/Migrations/Configuration.cs: 'utf-8' codec can't decode byte 0xfa in position 22884: invalid start byte | |
Processed 823/830 files2024-08-15 11:13:30,035 - context - ERROR - Error reading ./hcdc_v2/Content/assets/js/PowerBI-ADRES.js: 'utf-8' codec can't decode byte 0xf3 in position 96: invalid continuation byte | |
2024-08-15 11:13:30,035 - 140631345090560 - context.py-context:173 - ERROR: Error reading ./hcdc_v2/Content/assets/js/PowerBI-ADRES.js: 'utf-8' codec can't decode byte 0xf3 in position 96: invalid continuation byte | |
Processed 1283/1283 files | |
Context gathered successfully. | |
Total number of tokens (estimated): 825141 | |
2024-08-15 11:16:33,918 - 140631345090560 - config.py-config:351 - WARNING: Translation file for en not found. Using default translation en-US. | |
Processed 770/770 files2024-08-15 11:16:49,607 - context - ERROR - Error reading ./hcdc_v2/Migrations/Configuration.cs: 'utf-8' codec can't decode byte 0xfa in position 22884: invalid start byte | |
2024-08-15 11:16:49,607 - 140631345090560 - context.py-context:173 - ERROR: Error reading ./hcdc_v2/Migrations/Configuration.cs: 'utf-8' codec can't decode byte 0xfa in position 22884: invalid start byte | |
Processed 823/830 files2024-08-15 11:16:49,618 - context - ERROR - Error reading ./hcdc_v2/Content/assets/js/PowerBI-ADRES.js: 'utf-8' codec can't decode byte 0xf3 in position 96: invalid continuation byte | |
2024-08-15 11:16:49,618 - 140631345090560 - context.py-context:173 - ERROR: Error reading ./hcdc_v2/Content/assets/js/PowerBI-ADRES.js: 'utf-8' codec can't decode byte 0xf3 in position 96: invalid continuation byte | |
Processed 1283/1283 files | |
Context gathered successfully. | |
Total number of tokens (estimated): 825141 | |
11:16:50 - LiteLLM:WARNING: vertex_httpx.py:1071 - Unable to identify if system message supported. Defaulting to 'False'. Received error message - Model not in model_prices_and_context_window.json. You passed model=gemini-1.5-flash-exp-0801, custom_llm_provider=gemini. | |
Add it here - https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json | |
2024-08-15 11:16:50,812 - 140629585679936 - vertex_httpx.py-vertex_httpx:1071 - WARNING: Unable to identify if system message supported. Defaulting to 'False'. Received error message - Model not in model_prices_and_context_window.json. You passed model=gemini-1.5-flash-exp-0801, custom_llm_provider=gemini. | |
Add it here - https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json | |
2024-08-15 11:16:51,850 - 140631345090560 - sql_alchemy.py-sql_alchemy:92 - WARNING: An error occurred: (sqlite3.IntegrityError) NOT NULL constraint failed: steps.disableFeedback | |
[SQL: | |
INSERT INTO steps ("id", "threadId", "parentId", "createdAt", "start", "end", "output", "name", "type", "streaming", "isError", "waitForAnswer", "metadata", "generation") | |
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) | |
ON CONFLICT (id) DO UPDATE | |
SET "threadId" = ?, "parentId" = ?, "createdAt" = ?, "start" = ?, "end" = ?, "output" = ?, "name" = ?, "type" = ?, "streaming" = ?, "isError" = ?, "waitForAnswer" = ?, "metadata" = ?, "generation" = ?; | |
] | |
[parameters: ('f66807cc-7cad-4c04-8e39-af8183caddb9', '76982d9c-736c-4a0d-84d6-0ba89ac739ed', '165a6231-bca5-48c5-95c0-507428aee4e5', '2024-08-15T11:16:50.249940Z', '2024-08-15T11:16:50.249940Z', '2024-08-15T11:16:50.249940Z', '', 'Assistant', 'assistant_message', False, False, False, '{}', '{}', '76982d9c-736c-4a0d-84d6-0ba89ac739ed', '165a6231-bca5-48c5-95c0-507428aee4e5', '2024-08-15T11:16:50.249940Z', '2024-08-15T11:16:50.249940Z', '2024-08-15T11:16:50.249940Z', '', 'Assistant', 'assistant_message', False, False, False, '{}', '{}')] | |
(Background on this error at: https://sqlalche.me/e/20/gkpj) | |
2024-08-15 11:16:51,852 - 140631345090560 - sql_alchemy.py-sql_alchemy:92 - WARNING: An error occurred: (sqlite3.IntegrityError) NOT NULL constraint failed: steps.disableFeedback | |
[SQL: | |
INSERT INTO steps ("id", "threadId", "createdAt", "start", "end", "output", "name", "type", "streaming", "isError", "waitForAnswer", "metadata", "generation") | |
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) | |
ON CONFLICT (id) DO UPDATE | |
SET "threadId" = ?, "createdAt" = ?, "start" = ?, "end" = ?, "output" = ?, "name" = ?, "type" = ?, "streaming" = ?, "isError" = ?, "waitForAnswer" = ?, "metadata" = ?, "generation" = ?; | |
] | |
[parameters: ('8da4f6d1-4c92-4644-99bf-13f371875c2c', '76982d9c-736c-4a0d-84d6-0ba89ac739ed', '2024-08-15T11:16:49.431592Z', '2024-08-15T11:16:49.431592Z', '2024-08-15T11:16:49.431592Z', 'cuantos archivos hay?', 'admin', 'user_message', False, False, False, '{}', '{}', '76982d9c-736c-4a0d-84d6-0ba89ac739ed', '2024-08-15T11:16:49.431592Z', '2024-08-15T11:16:49.431592Z', '2024-08-15T11:16:49.431592Z', 'cuantos archivos hay?', 'admin', 'user_message', False, False, False, '{}', '{}')] | |
(Background on this error at: https://sqlalche.me/e/20/gkpj) | |
2024-08-15 11:16:51,854 - 140631345090560 - sql_alchemy.py-sql_alchemy:92 - WARNING: An error occurred: (sqlite3.IntegrityError) NOT NULL constraint failed: steps.disableFeedback | |
[SQL: | |
INSERT INTO steps ("name", "type", "id", "threadId", "streaming", "input", "isError", "output", "createdAt", "start", "showInput", "metadata", "generation") | |
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) | |
ON CONFLICT (id) DO UPDATE | |
SET "name" = ?, "type" = ?, "threadId" = ?, "streaming" = ?, "input" = ?, "isError" = ?, "output" = ?, "createdAt" = ?, "start" = ?, "showInput" = ?, "metadata" = ?, "generation" = ?; | |
] | |
[parameters: ('on_chat_start', 'run', 'e054559a-4f9c-4672-989e-9d40aca8d426', '76982d9c-736c-4a0d-84d6-0ba89ac739ed', False, '', False, '', '2024-08-15T11:13:29.704931Z', '2024-08-15T11:13:29.704965Z', 'json', '{}', 'null', 'on_chat_start', 'run', '76982d9c-736c-4a0d-84d6-0ba89ac739ed', False, '', False, '', '2024-08-15T11:13:29.704931Z', '2024-08-15T11:13:29.704965Z', 'json', '{}', 'null')] | |
(Background on this error at: https://sqlalche.me/e/20/gkpj) | |
2024-08-15 11:16:51,857 - 140631345090560 - sql_alchemy.py-sql_alchemy:92 - WARNING: An error occurred: (sqlite3.IntegrityError) NOT NULL constraint failed: steps.disableFeedback | |
[SQL: | |
INSERT INTO steps ("id", "threadId", "parentId", "createdAt", "start", "end", "output", "name", "type", "streaming", "isError", "waitForAnswer", "metadata", "generation") | |
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) | |
ON CONFLICT (id) DO UPDATE | |
SET "threadId" = ?, "parentId" = ?, "createdAt" = ?, "start" = ?, "end" = ?, "output" = ?, "name" = ?, "type" = ?, "streaming" = ?, "isError" = ?, "waitForAnswer" = ?, "metadata" = ?, "generation" = ?; | |
] | |
[parameters: ('7dd90aab-951e-4cc9-85b4-79c2f393368a', '76982d9c-736c-4a0d-84d6-0ba89ac739ed', 'e054559a-4f9c-4672-989e-9d40aca8d426', '2024-08-15T11:13:31.026302Z', '2024-08-15T11:13:31.026302Z', '2024-08-15T11:13:31.026302Z', 'Token Count: 825141,\n Files include: \n```bash\n│ │ ├── hcdc_v2/App_Start/BundleConfig.cs\n│ │ ├── hcdc_v2/A ... (26908 characters truncated) ... n.js\n│ │ └── template/metoxi-bootstrap-5/main-files/matoxi/vertical-menu/assets/plugins/vectormap/jvectormap.custom.js\n', 'Assistant', 'assistant_message', False, False, False, '{}', '{}', '76982d9c-736c-4a0d-84d6-0ba89ac739ed', 'e054559a-4f9c-4672-989e-9d40aca8d426', '2024-08-15T11:13:31.026302Z', '2024-08-15T11:13:31.026302Z', '2024-08-15T11:13:31.026302Z', 'Token Count: 825141,\n Files include: \n```bash\n│ │ ├── hcdc_v2/App_Start/BundleConfig.cs\n│ │ ├── hcdc_v2/A ... (26908 characters truncated) ... n.js\n│ │ └── template/metoxi-bootstrap-5/main-files/matoxi/vertical-menu/assets/plugins/vectormap/jvectormap.custom.js\n', 'Assistant', 'assistant_message', False, False, False, '{}', '{}')] | |
(Background on this error at: https://sqlalche.me/e/20/gkpj) | |
2024-08-15 11:16:51,861 - 140631345090560 - sql_alchemy.py-sql_alchemy:92 - WARNING: An error occurred: (sqlite3.IntegrityError) NOT NULL constraint failed: steps.disableFeedback | |
[SQL: | |
INSERT INTO steps ("name", "type", "id", "threadId", "streaming", "input", "isError", "output", "createdAt", "start", "end", "showInput", "metadata", "generation") | |
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) | |
ON CONFLICT (id) DO UPDATE | |
SET "name" = ?, "type" = ?, "threadId" = ?, "streaming" = ?, "input" = ?, "isError" = ?, "output" = ?, "createdAt" = ?, "start" = ?, "end" = ?, "showInput" = ?, "metadata" = ?, "generation" = ?; | |
] | |
[parameters: ('on_chat_start', 'run', 'e054559a-4f9c-4672-989e-9d40aca8d426', '76982d9c-736c-4a0d-84d6-0ba89ac739ed', False, '', False, '', '2024-08-15T11:13:29.704931Z', '2024-08-15T11:13:29.704965Z', '2024-08-15T11:13:31.040228Z', 'json', '{}', 'null', 'on_chat_start', 'run', '76982d9c-736c-4a0d-84d6-0ba89ac739ed', False, '', False, '', '2024-08-15T11:13:29.704931Z', '2024-08-15T11:13:29.704965Z', '2024-08-15T11:13:31.040228Z', 'json', '{}', 'null')] | |
(Background on this error at: https://sqlalche.me/e/20/gkpj) | |
2024-08-15 11:16:51,862 - 140631345090560 - sql_alchemy.py-sql_alchemy:92 - WARNING: An error occurred: (sqlite3.IntegrityError) NOT NULL constraint failed: steps.disableFeedback | |
[SQL: | |
INSERT INTO steps ("name", "type", "id", "threadId", "parentId", "streaming", "input", "isError", "output", "createdAt", "start", "showInput", "metadata", "generation") | |
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) | |
ON CONFLICT (id) DO UPDATE | |
SET "name" = ?, "type" = ?, "threadId" = ?, "parentId" = ?, "streaming" = ?, "input" = ?, "isError" = ?, "output" = ?, "createdAt" = ?, "start" = ?, "showInput" = ?, "metadata" = ?, "generation" = ?; | |
] | |
[parameters: ('on_message', 'run', '165a6231-bca5-48c5-95c0-507428aee4e5', '76982d9c-736c-4a0d-84d6-0ba89ac739ed', '8da4f6d1-4c92-4644-99bf-13f371875c2c', False, '', False, '', '2024-08-15T11:16:49.434673Z', '2024-08-15T11:16:49.434699Z', 'json', '{}', 'null', 'on_message', 'run', '76982d9c-736c-4a0d-84d6-0ba89ac739ed', '8da4f6d1-4c92-4644-99bf-13f371875c2c', False, '', False, '', '2024-08-15T11:16:49.434673Z', '2024-08-15T11:16:49.434699Z', 'json', '{}', 'null')] | |
(Background on this error at: https://sqlalche.me/e/20/gkpj) | |
Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new | |
LiteLLM.Info: If you need to debug this error, use `litellm.set_verbose=True'. | |
Provider List: https://docs.litellm.ai/docs/providers | |
2024-08-15 11:16:57,245 - 140631345090560 - utils.py-utils:50 - ERROR: litellm.NotFoundError: VertexAIException - b'{\n "error": {\n "code": 404,\n "message": "models/gemini-1.5-flash-exp-0801 is not found for API version v1beta, or is not supported for generateContent. Call ListModels to see the list of available models and their supported methods.",\n "status": "NOT_FOUND"\n }\n}\n' | |
Traceback (most recent call last): | |
File "/home/felipe/.local/lib/python3.10/site-packages/litellm/utils.py", line 10252, in __anext__ | |
await self.fetch_stream() | |
File "/home/felipe/.local/lib/python3.10/site-packages/litellm/utils.py", line 10236, in fetch_stream | |
self.completion_stream = await self.make_call( | |
File "/home/felipe/.local/lib/python3.10/site-packages/litellm/llms/vertex_httpx.py", line 499, in make_call | |
response = await client.post(api_base, headers=headers, data=data, stream=True) | |
File "/home/felipe/.local/lib/python3.10/site-packages/litellm/llms/custom_httpx/http_handler.py", line 128, in post | |
raise e | |
File "/home/felipe/.local/lib/python3.10/site-packages/litellm/llms/custom_httpx/http_handler.py", line 93, in post | |
response.raise_for_status() | |
File "/home/felipe/.local/lib/python3.10/site-packages/httpx/_models.py", line 761, in raise_for_status | |
raise HTTPStatusError(message, request=request, response=self) | |
httpx.HTTPStatusError: Client error '404 Not Found' for url 'https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash-exp-0801:streamGenerateContent?key=AIzaSyDYFaaHbNChIGEaSJVslX4ibzjKWLa-5JA&alt=sse' | |
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404 | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/home/felipe/.local/lib/python3.10/site-packages/chainlit/utils.py", line 44, in wrapper | |
return await user_function(**params_values) | |
File "/home/felipe/.local/lib/python3.10/site-packages/chainlit/__init__.py", line 164, in with_parent_id | |
await func(message) | |
File "/home/felipe/.local/lib/python3.10/site-packages/praisonai/ui/code.py", line 256, in main | |
async for part in response: | |
File "/home/felipe/.local/lib/python3.10/site-packages/litellm/utils.py", line 10483, in __anext__ | |
raise exception_type( | |
File "/home/felipe/.local/lib/python3.10/site-packages/litellm/utils.py", line 8168, in exception_type | |
raise e | |
File "/home/felipe/.local/lib/python3.10/site-packages/litellm/utils.py", line 7210, in exception_type | |
raise NotFoundError( | |
litellm.exceptions.NotFoundError: litellm.NotFoundError: VertexAIException - b'{\n "error": {\n "code": 404,\n "message": "models/gemini-1.5-flash-exp-0801 is not found for API version v1beta, or is not supported for generateContent. Call ListModels to see the list of available models and their supported methods.",\n "status": "NOT_FOUND"\n }\n}\n' | |
2024-08-15 11:16:57,261 - 140631345090560 - sql_alchemy.py-sql_alchemy:92 - WARNING: An error occurred: (sqlite3.IntegrityError) NOT NULL constraint failed: steps.disableFeedback | |
[SQL: | |
INSERT INTO steps ("name", "type", "id", "threadId", "parentId", "streaming", "input", "isError", "output", "createdAt", "start", "end", "showInput", "metadata", "generation") | |
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) | |
ON CONFLICT (id) DO UPDATE | |
SET "name" = ?, "type" = ?, "threadId" = ?, "parentId" = ?, "streaming" = ?, "input" = ?, "isError" = ?, "output" = ?, "createdAt" = ?, "start" = ?, "end" = ?, "showInput" = ?, "metadata" = ?, "generation" = ?; | |
] | |
[parameters: ('on_message', 'run', '165a6231-bca5-48c5-95c0-507428aee4e5', '76982d9c-736c-4a0d-84d6-0ba89ac739ed', '8da4f6d1-4c92-4644-99bf-13f371875c2c', False, 'cuantos archivos hay?', True, 'litellm.NotFoundError: VertexAIException - b\'{\\n "error": {\\n "code": 404,\\n "message": "models/gemini-1.5-flash-exp-0801 is not found for ... (38 characters truncated) ... ed for generateContent. Call ListModels to see the list of available models and their supported methods.",\\n "status": "NOT_FOUND"\\n }\\n}\\n\'', '2024-08-15T11:16:49.434673Z', '2024-08-15T11:16:49.434699Z', '2024-08-15T11:16:57.241951Z', 'json', '{}', 'null', 'on_message', 'run', '76982d9c-736c-4a0d-84d6-0ba89ac739ed', '8da4f6d1-4c92-4644-99bf-13f371875c2c', False, 'cuantos archivos hay?', True, 'litellm.NotFoundError: VertexAIException - b\'{\\n "error": {\\n "code": 404,\\n "message": "models/gemini-1.5-flash-exp-0801 is not found for ... (38 characters truncated) ... ed for generateContent. Call ListModels to see the list of available models and their supported methods.",\\n "status": "NOT_FOUND"\\n }\\n}\\n\'', '2024-08-15T11:16:49.434673Z', '2024-08-15T11:16:49.434699Z', '2024-08-15T11:16:57.241951Z', 'json', '{}', 'null')] | |
(Background on this error at: https://sqlalche.me/e/20/gkpj) | |
2024-08-15 11:21:06,673 - 140631345090560 - config.py-config:351 - WARNING: Translation file for en not found. Using default translation en-US. | |
Processed 770/770 files2024-08-15 11:21:34,866 - context - ERROR - Error reading ./hcdc_v2/Migrations/Configuration.cs: 'utf-8' codec can't decode byte 0xfa in position 22884: invalid start byte | |
2024-08-15 11:21:34,866 - 140631345090560 - context.py-context:173 - ERROR: Error reading ./hcdc_v2/Migrations/Configuration.cs: 'utf-8' codec can't decode byte 0xfa in position 22884: invalid start byte | |
Processed 823/830 files2024-08-15 11:21:34,878 - context - ERROR - Error reading ./hcdc_v2/Content/assets/js/PowerBI-ADRES.js: 'utf-8' codec can't decode byte 0xf3 in position 96: invalid continuation byte | |
2024-08-15 11:21:34,878 - 140631345090560 - context.py-context:173 - ERROR: Error reading ./hcdc_v2/Content/assets/js/PowerBI-ADRES.js: 'utf-8' codec can't decode byte 0xf3 in position 96: invalid continuation byte | |
Processed 1283/1283 files | |
Context gathered successfully. | |
Total number of tokens (estimated): 825141 | |
2024-08-15 11:21:36,945 - 140631345090560 - sql_alchemy.py-sql_alchemy:92 - WARNING: An error occurred: (sqlite3.IntegrityError) NOT NULL constraint failed: steps.disableFeedback | |
[SQL: | |
INSERT INTO steps ("id", "threadId", "createdAt", "start", "end", "output", "name", "type", "streaming", "isError", "waitForAnswer", "metadata", "generation") | |
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) | |
ON CONFLICT (id) DO UPDATE | |
SET "threadId" = ?, "createdAt" = ?, "start" = ?, "end" = ?, "output" = ?, "name" = ?, "type" = ?, "streaming" = ?, "isError" = ?, "waitForAnswer" = ?, "metadata" = ?, "generation" = ?; | |
] | |
[parameters: ('13258f90-5c85-46b9-9615-f3ad73355c18', '76982d9c-736c-4a0d-84d6-0ba89ac739ed', '2024-08-15T11:21:34.676030Z', '2024-08-15T11:21:34.676030Z', '2024-08-15T11:21:34.676030Z', 'cuantas lineas de codigo tiene el software?', 'admin', 'user_message', False, False, False, '{}', '{}', '76982d9c-736c-4a0d-84d6-0ba89ac739ed', '2024-08-15T11:21:34.676030Z', '2024-08-15T11:21:34.676030Z', '2024-08-15T11:21:34.676030Z', 'cuantas lineas de codigo tiene el software?', 'admin', 'user_message', False, False, False, '{}', '{}')] | |
(Background on this error at: https://sqlalche.me/e/20/gkpj) | |
2024-08-15 11:21:36,947 - 140631345090560 - sql_alchemy.py-sql_alchemy:92 - WARNING: An error occurred: (sqlite3.IntegrityError) NOT NULL constraint failed: steps.disableFeedback | |
[SQL: | |
INSERT INTO steps ("name", "type", "id", "threadId", "parentId", "streaming", "input", "isError", "output", "createdAt", "start", "showInput", "metadata", "generation") | |
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) | |
ON CONFLICT (id) DO UPDATE | |
SET "name" = ?, "type" = ?, "threadId" = ?, "parentId" = ?, "streaming" = ?, "input" = ?, "isError" = ?, "output" = ?, "createdAt" = ?, "start" = ?, "showInput" = ?, "metadata" = ?, "generation" = ?; | |
] | |
[parameters: ('on_message', 'run', 'feda94ac-78c4-47dc-a010-3e0ce9aaef0b', '76982d9c-736c-4a0d-84d6-0ba89ac739ed', '13258f90-5c85-46b9-9615-f3ad73355c18', False, '', False, '', '2024-08-15T11:21:34.679069Z', '2024-08-15T11:21:34.679096Z', 'json', '{}', 'null', 'on_message', 'run', '76982d9c-736c-4a0d-84d6-0ba89ac739ed', '13258f90-5c85-46b9-9615-f3ad73355c18', False, '', False, '', '2024-08-15T11:21:34.679069Z', '2024-08-15T11:21:34.679096Z', 'json', '{}', 'null')] | |
(Background on this error at: https://sqlalche.me/e/20/gkpj) | |
2024-08-15 11:21:36,950 - 140631345090560 - sql_alchemy.py-sql_alchemy:92 - WARNING: An error occurred: (sqlite3.IntegrityError) NOT NULL constraint failed: steps.disableFeedback | |
[SQL: | |
INSERT INTO steps ("id", "threadId", "parentId", "createdAt", "start", "end", "output", "name", "type", "streaming", "isError", "waitForAnswer", "metadata", "generation") | |
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) | |
ON CONFLICT (id) DO UPDATE | |
SET "threadId" = ?, "parentId" = ?, "createdAt" = ?, "start" = ?, "end" = ?, "output" = ?, "name" = ?, "type" = ?, "streaming" = ?, "isError" = ?, "waitForAnswer" = ?, "metadata" = ?, "generation" = ?; | |
] | |
[parameters: ('2af5d9c6-514d-4e51-a3ea-3dd08f6e3c48', '76982d9c-736c-4a0d-84d6-0ba89ac739ed', 'feda94ac-78c4-47dc-a010-3e0ce9aaef0b', '2024-08-15T11:21:35.763927Z', '2024-08-15T11:21:35.763927Z', '2024-08-15T11:21:35.763927Z', '', 'Assistant', 'assistant_message', False, False, False, '{}', '{}', '76982d9c-736c-4a0d-84d6-0ba89ac739ed', 'feda94ac-78c4-47dc-a010-3e0ce9aaef0b', '2024-08-15T11:21:35.763927Z', '2024-08-15T11:21:35.763927Z', '2024-08-15T11:21:35.763927Z', '', 'Assistant', 'assistant_message', False, False, False, '{}', '{}')] | |
(Background on this error at: https://sqlalche.me/e/20/gkpj) | |
Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new | |
LiteLLM.Info: If you need to debug this error, use `litellm.set_verbose=True'. | |
2024-08-15 11:21:41,580 - 140631345090560 - utils.py-utils:50 - ERROR: litellm.RateLimitError: litellm.RateLimitError: VertexAIException - b'{\n "error": {\n "code": 429,\n "message": "Resource has been exhausted (e.g. check quota).",\n "status": "RESOURCE_EXHAUSTED"\n }\n}\n' | |
Traceback (most recent call last): | |
File "/home/felipe/.local/lib/python3.10/site-packages/litellm/utils.py", line 10252, in __anext__ | |
await self.fetch_stream() | |
File "/home/felipe/.local/lib/python3.10/site-packages/litellm/utils.py", line 10236, in fetch_stream | |
self.completion_stream = await self.make_call( | |
File "/home/felipe/.local/lib/python3.10/site-packages/litellm/llms/vertex_httpx.py", line 499, in make_call | |
response = await client.post(api_base, headers=headers, data=data, stream=True) | |
File "/home/felipe/.local/lib/python3.10/site-packages/litellm/llms/custom_httpx/http_handler.py", line 128, in post | |
raise e | |
File "/home/felipe/.local/lib/python3.10/site-packages/litellm/llms/custom_httpx/http_handler.py", line 93, in post | |
response.raise_for_status() | |
File "/home/felipe/.local/lib/python3.10/site-packages/httpx/_models.py", line 761, in raise_for_status | |
raise HTTPStatusError(message, request=request, response=self) | |
httpx.HTTPStatusError: Client error '429 Too Many Requests' for url 'https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:streamGenerateContent?key=AIzaSyDYFaaHbNChIGEaSJVslX4ibzjKWLa-5JA&alt=sse' | |
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429 | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/home/felipe/.local/lib/python3.10/site-packages/chainlit/utils.py", line 44, in wrapper | |
return await user_function(**params_values) | |
File "/home/felipe/.local/lib/python3.10/site-packages/chainlit/__init__.py", line 164, in with_parent_id | |
await func(message) | |
File "/home/felipe/.local/lib/python3.10/site-packages/praisonai/ui/code.py", line 256, in main | |
async for part in response: | |
File "/home/felipe/.local/lib/python3.10/site-packages/litellm/utils.py", line 10483, in __anext__ | |
raise exception_type( | |
File "/home/felipe/.local/lib/python3.10/site-packages/litellm/utils.py", line 8168, in exception_type | |
raise e | |
File "/home/felipe/.local/lib/python3.10/site-packages/litellm/utils.py", line 7225, in exception_type | |
raise RateLimitError( | |
litellm.exceptions.RateLimitError: litellm.RateLimitError: litellm.RateLimitError: VertexAIException - b'{\n "error": {\n "code": 429,\n "message": "Resource has been exhausted (e.g. check quota).",\n "status": "RESOURCE_EXHAUSTED"\n }\n}\n' | |
2024-08-15 11:21:41,590 - 140631345090560 - sql_alchemy.py-sql_alchemy:92 - WARNING: An error occurred: (sqlite3.IntegrityError) NOT NULL constraint failed: steps.disableFeedback | |
[SQL: | |
INSERT INTO steps ("name", "type", "id", "threadId", "parentId", "streaming", "input", "isError", "output", "createdAt", "start", "end", "showInput", "metadata", "generation") | |
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) | |
ON CONFLICT (id) DO UPDATE | |
SET "name" = ?, "type" = ?, "threadId" = ?, "parentId" = ?, "streaming" = ?, "input" = ?, "isError" = ?, "output" = ?, "createdAt" = ?, "start" = ?, "end" = ?, "showInput" = ?, "metadata" = ?, "generation" = ?; | |
] | |
[parameters: ('on_message', 'run', 'feda94ac-78c4-47dc-a010-3e0ce9aaef0b', '76982d9c-736c-4a0d-84d6-0ba89ac739ed', '13258f90-5c85-46b9-9615-f3ad73355c18', False, 'cuantas lineas de codigo tiene el software?', True, 'litellm.RateLimitError: litellm.RateLimitError: VertexAIException - b\'{\\n "error": {\\n "code": 429,\\n "message": "Resource has been exhausted (e.g. check quota).",\\n "status": "RESOURCE_EXHAUSTED"\\n }\\n}\\n\'', '2024-08-15T11:21:34.679069Z', '2024-08-15T11:21:34.679096Z', '2024-08-15T11:21:41.577271Z', 'json', '{}', 'null', 'on_message', 'run', '76982d9c-736c-4a0d-84d6-0ba89ac739ed', '13258f90-5c85-46b9-9615-f3ad73355c18', False, 'cuantas lineas de codigo tiene el software?', True, 'litellm.RateLimitError: litellm.RateLimitError: VertexAIException - b\'{\\n "error": {\\n "code": 429,\\n "message": "Resource has been exhausted (e.g. check quota).",\\n "status": "RESOURCE_EXHAUSTED"\\n }\\n}\\n\'', '2024-08-15T11:21:34.679069Z', '2024-08-15T11:21:34.679096Z', '2024-08-15T11:21:41.577271Z', 'json', '{}', 'null')] | |
(Background on this error at: https://sqlalche.me/e/20/gkpj) | |
2024-08-15 11:22:56,297 - 140631345090560 - config.py-config:351 - WARNING: Translation file for en not found. Using default translation en-US. | |
2024-08-15 11:24:21,072 - 140631345090560 - config.py-config:351 - WARNING: Trandefault translation en-US. | |
2024-08-15 11:24:26,955 - 140631345090560 - config.py-config:351 - WARNING: Trandefault translation en-US. | |
Processed 770/770 files2024-08-15 11:24:36,436 - context - ERROR - Error readings: 'utf-8' codec can't decode byte 0xfa in position 22884: invalid start byte | |
2024-08-15 11:24:36,436 - 140631345090560 - context.py-context:173 - ERROR: Errouration.cs: 'utf-8' codec can't decode byte 0xfa in position 22884: invalid star | |
Processed 823/830 files2024-08-15 11:24:36,449 - context - ERROR - Error readingADRES.js: 'utf-8' codec can't decode byte 0xf3 in position 96: invalid continuat | |
2024-08-15 11:24:36,449 - 140631345090560 - context.py-context:173 - ERROR: Erro/PowerBI-ADRES.js: 'utf-8' codec can't decode byte 0xf3 in position 96: invalid | |
Processed 1283/1283 files | |
Context gathered successfully. | |
Total number of tokens (estimated): 825141 | |
2024-08-15 11:24:38,484 - 140631345090560 - sql_alchemy.py-sql_alchemy:92 - WARNgrityError) NOT NULL constraint failed: steps.disableFeedback | |
[SQL: | |
INSERT INTO steps ("id", "threadId", "createdAt", "start", "end", "o"isError", "waitForAnswer", "metadata", "generation") | |
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) | |
ON CONFLICT (id) DO UPDATE | |
SET "threadId" = ?, "createdAt" = ?, "start" = ?, "end" = ?, "outputming" = ?, "isError" = ?, "waitForAnswer" = ?, "metadata" = ?, "generation" = ?; | |
] | |
[parameters: ('76bb82b6-3000-41f4-9823-b79874f14d15', '76982d9c-736c-4a0d-84d6-07990Z', '2024-08-15T11:24:36.247990Z', '2024-08-15T11:24:36.247990Z', 'how many 'user_message', False, False, False, '{}', '{}', '76982d9c-736c-4a0d-84d6-0ba89Z', '2024-08-15T11:24:36.247990Z', '2024-08-15T11:24:36.247990Z', 'how many lineer_message', False, False, False, '{}', '{}')] | |
(Background on this error at: https://sqlalche.me/e/20/gkpj) | |
2024-08-15 11:24:38,486 - 140631345090560 - sql_alchemy.py-sql_alchemy:92 - WARNgrityError) NOT NULL constraint failed: steps.disableFeedback | |
[SQL: | |
INSERT INTO steps ("name", "type", "id", "threadId", "parentId", "st", "createdAt", "start", "showInput", "metadata", "generation") | |
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) | |
ON CONFLICT (id) DO UPDATE | |
SET "name" = ?, "type" = ?, "threadId" = ?, "parentId" = ?, "streami"output" = ?, "createdAt" = ?, "start" = ?, "showInput" = ?, "metadata" = ?, "ge | |
] | |
[parameters: ('on_message', 'run', '47c42938-bf8e-4961-ba52-538b0efbc13d', '76986bb82b6-3000-41f4-9823-b79874f14d15', False, '', False, '', '2024-08-15T11:24:366Z', 'json', '{}', 'null', 'on_message', 'run', '76982d9c-736c-4a0d-84d6-0ba89ac74f14d15', False, '', False, '', '2024-08-15T11:24:36.251029Z', '2024-08-15T11:2 | |
(Background on this error at: https://sqlalche.me/e/20/gkpj) | |
2024-08-15 11:24:38,491 - 140631345090560 - sql_alchemy.py-sql_alchemy:92 - WARNgrityError) NOT NULL constraint failed: steps.disableFeedback | |
[SQL: | |
INSERT INTO steps ("id", "threadId", "parentId", "createdAt", "startstreaming", "isError", "waitForAnswer", "metadata", "generation") | |
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) | |
ON CONFLICT (id) DO UPDATE | |
SET "threadId" = ?, "parentId" = ?, "createdAt" = ?, "start" = ?, "eype" = ?, "streaming" = ?, "isError" = ?, "waitForAnswer" = ?, "metadata" = ?, " | |
] | |
[parameters: ('e52e033c-9032-4ab8-a8ef-80c909e59df4', '76982d9c-736c-4a0d-84d6-02-538b0efbc13d', '2024-08-15T11:24:37.129110Z', '2024-08-15T11:24:37.129110Z', 'sistant', 'assistant_message', False, False, False, '{}', '{}', '76982d9c-736c-4e-4961-ba52-538b0efbc13d', '2024-08-15T11:24:37.129110Z', '2024-08-15T11:24:37.1', '', 'Assistant', 'assistant_message', False, False, False, '{}', '{}')] | |
(Background on this error at: https://sqlalche.me/e/20/gkpj) | |
Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new | |
LiteLLM.Info: If you need to debug this error, use `litellm.set_verbose=True'. | |
2024-08-15 11:24:43,400 - 140631345090560 - utils.py-utils:50 - ERROR: litellm.R: VertexAIException - b'{\n "error": {\n "code": 429,\n "message": "Resouota).",\n "status": "RESOURCE_EXHAUSTED"\n }\n}\n' | |
Traceback (most recent call last): | |
File "/home/felipe/.local/lib/python3.10/site-packages/litellm/utils.py", line | |
await self.fetch_stream() | |
File "/home/felipe/.local/lib/python3.10/site-packages/litellm/utils.py", line | |
self.completion_stream = await self.make_call( | |
File "/home/felipe/.local/lib/python3.10/site-packages/litellm/llms/vertex_htt | |
response = await client.post(api_base, headers=headers, data=data, stream=Tr | |
File "/home/felipe/.local/lib/python3.10/site-packages/litellm/llms/custom_httt | |
raise e | |
File "/home/felipe/.local/lib/python3.10/site-packages/litellm/llms/custom_htt | |
response.raise_for_status() | |
File "/home/felipe/.local/lib/python3.10/site-packages/httpx/_models.py", line | |
raise HTTPStatusError(message, request=request, response=self) | |
httpx.HTTPStatusError: Client error '429 Too Many Requests' for url 'https://gen/models/gemini-1.5-flash:streamGenerateContent?key=AIzaSyDYFaaHbNChIGEaSJVslX4ib | |
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/St | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/home/felipe/.local/lib/python3.10/site-packages/chainlit/utils.py", lin | |
return await user_function(**params_values) | |
File "/home/felipe/.local/lib/python3.10/site-packages/chainlit/__init__.py", | |
await func(message) | |
File "/home/felipe/.local/lib/python3.10/site-packages/praisonai/ui/code.py", | |
async for part in response: | |
File "/home/felipe/.local/lib/python3.10/site-packages/litellm/utils.py", line | |
raise exception_type( | |
File "/home/felipe/.local/lib/python3.10/site-packages/litellm/utils.py", line | |
raise e | |
File "/home/felipe/.local/lib/python3.10/site-packages/litellm/utils.py", line | |
raise RateLimitError( | |
litellm.exceptions.RateLimitError: litellm.RateLimitError: litellm.RateLimitErro: {\n "code": 429,\n "message": "Resource has been exhausted (e.g. check qAUSTED"\n }\n}\n' | |
2024-08-15 11:24:43,410 - 140631345090560 - sql_alchemy.py-sql_alchemy:92 - WARNgrityError) NOT NULL constraint failed: steps.disableFeedback | |
[SQL: | |
INSERT INTO steps ("name", "type", "id", "threadId", "parentId", "st", "createdAt", "start", "end", "showInput", "metadata", "generation") | |
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) | |
ON CONFLICT (id) DO UPDATE | |
SET "name" = ?, "type" = ?, "threadId" = ?, "parentId" = ?, "streami"output" = ?, "createdAt" = ?, "start" = ?, "end" = ?, "showInput" = ?, "metadat | |
] | |
[parameters: ('on_message', 'run', '47c42938-bf8e-4961-ba52-538b0efbc13d', '76986bb82b6-3000-41f4-9823-b79874f14d15', False, 'how many lines have in all folderstellm.RateLimitError: VertexAIException - b\'{\\n "error": {\\n "code": 429,exhausted (e.g. check quota).",\\n "status": "RESOURCE_EXHAUSTED"\\n }\\n}\\'2024-08-15T11:24:36.251056Z', '2024-08-15T11:24:43.397171Z', 'json', '{}', 'nul6c-4a0d-84d6-0ba89ac739ed', '76bb82b6-3000-41f4-9823-b79874f14d15', False, 'how e, 'litellm.RateLimitError: litellm.RateLimitError: VertexAIException - b\'{\\n "message": "Resource has been exhausted (e.g. check quota).",\\n "status": "R2024-08-15T11:24:36.251029Z', '2024-08-15T11:24:36.251056Z', '2024-08-15T11:24:4 | |
(Background on this error at: https://sqlalche.me/e/20/gkpj) | |
2024-08-15 11:25:59,704 - 140631345090560 - config.py-config:351 - WARNING: Translation file for en not found. Using default translation en-US. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment