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

AIDE智能粘贴问题,报错剪贴板为空 #63

Open
rexhang opened this issue Jul 26, 2024 · 12 comments
Open

AIDE智能粘贴问题,报错剪贴板为空 #63

rexhang opened this issue Jul 26, 2024 · 12 comments
Labels
question Further information is requested

Comments

@rexhang
Copy link

rexhang commented Jul 26, 2024

复制图片内容到剪贴板,然后去到编辑器使用智能粘贴,会提示报错“剪贴板”为空。
-- 代码注释,代码翻译都没问题,就智能粘贴报错。

Snipaste_2024-07-26_10-00-27

@rexhang
Copy link
Author

rexhang commented Jul 26, 2024

复制图片内容到剪贴板,然后去到编辑器使用智能粘贴,会提示报错“剪贴板”为空。 -- 代码注释,代码翻译都没问题,就智能粘贴报错。

Snipaste_2024-07-26_10-00-27

image

@2214962083
Copy link
Contributor

检查一下aide.readClipboardImage设置是否有打开

https://aide.nicepkg.cn/zh/guide/configuration/read-clipboard-image

@2214962083 2214962083 added the question Further information is requested label Jul 26, 2024
@rexhang
Copy link
Author

rexhang commented Jul 26, 2024

检查一下aide.readClipboardImage设置是否有打开

https://aide.nicepkg.cn/zh/guide/configuration/read-clipboard-image

默认没开启,我开启后会报错:
Failed to parse. Text: "{ "referenceFileRelativePaths": [ "template.html" ], "dependenceFileRelativePath": "" }". Error: [{"code":"too_small","minimum":3,"type":"array","inclusive":true,"exact":true,"message":"Array must contain exactly 3 element(s)","path":["referenceFileRelativePaths"]}]

@rexhang
Copy link
Author

rexhang commented Jul 26, 2024

检查一下aide.readClipboardImage设置是否有打开
https://aide.nicepkg.cn/zh/guide/configuration/read-clipboard-image

默认没开启,我开启后会报错: Failed to parse. Text: "{ "referenceFileRelativePaths": [ "template.html" ], "dependenceFileRelativePath": "" }". Error: [{"code":"too_small","minimum":3,"type":"array","inclusive":true,"exact":true,"message":"Array must contain exactly 3 element(s)","path":["referenceFileRelativePaths"]}]

422 Failed to deserialize the JSON body into the target type: messages[0]: invalid type: sequence, expected a string at line 24 column 3
各种类型的报错,有能用的模板嘛

@2214962083
Copy link
Contributor

你用的是openai模型吗

@rexhang
Copy link
Author

rexhang commented Jul 26, 2024

你用的是openai模型吗

deepseek模型,function_call不支持嘛?

@rexhang
Copy link
Author

rexhang commented Jul 26, 2024

你用的是openai模型吗

哪些模型可以支持呢。

@2214962083
Copy link
Contributor

检查一下aide.readClipboardImage设置是否有打开
https://aide.nicepkg.cn/zh/guide/configuration/read-clipboard-image

默认没开启,我开启后会报错: Failed to parse. Text: "{ "referenceFileRelativePaths": [ "template.html" ], "dependenceFileRelativePath": "" }". Error: [{"code":"too_small","minimum":3,"type":"array","inclusive":true,"exact":true,"message":"Array must contain exactly 3 element(s)","path":["referenceFileRelativePaths"]}]

422 Failed to deserialize the JSON body into the target type: messages[0]: invalid type: sequence, expected a string at line 24 column 3 各种类型的报错,有能用的模板嘛

你的项目文件是否小于3个

@2214962083
Copy link
Contributor

你用的是openai模型吗

哪些模型可以支持呢。

gpt-4o是可以的,不过不管你用什么模型,项目文件最好要超过4个,这是因为我会把关联最有用的三个方件给ai,后续可能会改为0-3个

@rexhang
Copy link
Author

rexhang commented Jul 26, 2024

你用的是openai模型吗

哪些模型可以支持呢。

gpt-4o是可以的,不过不管你用什么模型,项目文件最好要超过4个,这是因为我会把关联最有用的三个方件给ai,后续可能会改为0-3个

我重试过,起码有10个文件的项目,貌似也不行
422 Failed to deserialize the JSON body into the target type: messages[0]: invalid type: sequence, expected a string at line 24 column 3,可能我需要换成openai的模型来请求试试了。

@2214962083
Copy link
Contributor

你用的是openai模型吗

哪些模型可以支持呢。

gpt-4o是可以的,不过不管你用什么模型,项目文件最好要超过4个,这是因为我会把关联最有用的三个方件给ai,后续可能会改为0-3个

我重试过,起码有10个文件的项目,貌似也不行 422 Failed to deserialize the JSON body into the target type: messages[0]: invalid type: sequence, expected a string at line 24 column 3,可能我需要换成openai的模型来请求试试了。

看起来是deepseek不支持视觉,建议用gpt-4o

@rexhang
Copy link
Author

rexhang commented Jul 26, 2024

你用的是openai模型吗

哪些模型可以支持呢。

gpt-4o是可以的,不过不管你用什么模型,项目文件最好要超过4个,这是因为我会把关联最有用的三个方件给ai,后续可能会改为0-3个

我重试过,起码有10个文件的项目,貌似也不行 422 Failed to deserialize the JSON body into the target type: messages[0]: invalid type: sequence, expected a string at line 24 column 3,可能我需要换成openai的模型来请求试试了。

看起来是deepseek不支持视觉,建议用gpt-4o

好的,感谢回复。

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

No branches or pull requests

2 participants