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

对齐组件报错,使用了deepseek-chat #472

Closed
deific opened this issue Jan 14, 2025 · 1 comment
Closed

对齐组件报错,使用了deepseek-chat #472

deific opened this issue Jan 14, 2025 · 1 comment

Comments

@deific
Copy link

deific commented Jan 14, 2025

RROR:kag.interface.common.llm_client:Error RetryError[<Future at 0x7fca89c904c0 state=finished raised BadRequestError>] during invocation: Traceback (most recent call last):
File "/openspg_venv/lib/python3.8/site-packages/tenacity/init.py", line 478, in call
result = fn(*args, **kwargs)
File "/openspg_venv/lib/python3.8/site-packages/kag/common/llm/openai_client.py", line 120, in call_with_json_parse
rsp = self(prompt)
File "/openspg_venv/lib/python3.8/site-packages/kag/common/llm/openai_client.py", line 99, in call
response = self.client.chat.completions.create(
File "/openspg_venv/lib/python3.8/site-packages/openai/_utils/_utils.py", line 279, in wrapper
return func(*args, **kwargs)
File "/openspg_venv/lib/python3.8/site-packages/openai/resources/chat/completions.py", line 859, in create
return self._post(
File "/openspg_venv/lib/python3.8/site-packages/openai/_base_client.py", line 1280, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
File "/openspg_venv/lib/python3.8/site-packages/openai/_base_client.py", line 957, in request
return self._request(
File "/openspg_venv/lib/python3.8/site-packages/openai/_base_client.py", line 1061, in _request
raise self._make_status_error_from_response(err.response) from None
openai.BadRequestError: Error code: 400 - {'error': {'message': "This model's maximum context length is 65536 tokens. However, you requested 507288 tokens (507288 in the messages, 0 in the completion). Please reduce the length of the messages or completion.", 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_request_error'}}

@andylau-55
Copy link
Collaborator

This problem has been fixed. Please pull the latest openspg-server image to experience it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants