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

我使用 openai时,报错 top_k is deprecated. #227

Open
songsh opened this issue Oct 25, 2024 · 2 comments
Open

我使用 openai时,报错 top_k is deprecated. #227

songsh opened this issue Oct 25, 2024 · 2 comments

Comments

@songsh
Copy link

songsh commented Oct 25, 2024

请问如何解决?

@Harold-lkk
Copy link
Collaborator

just warning

@songsh
Copy link
Author

songsh commented Nov 6, 2024

完整的报错如下:
C:\Users\wq\AppData\Roaming\Python\Python311\site-packages\lagent\llms\openai.py:403: DeprecationWarning: top_k parameter is deprecated in OpenAI APIs.
warnings.warn(
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>系统发生错误</title>
<meta name="robots" content="noindex,nofollow" />
<style>
/* Base */
body {
color: #333;
font: 16px Verdana, "Helvetica Neue", helvetica, Arial, 'Microsoft YaHei', sans-serif;
margin: 0;
padding: 0 20px 20px;
}
h1{
margin: 10px 0 0;
font-size: 28px;
font-weight: 500;
line-height: 32px

@Harold-lkk Harold-lkk reopened this Nov 6, 2024
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