GithubHelp home page GithubHelp logo

Comments (7)

Virtual1257 avatar Virtual1257 commented on August 29, 2024 1

把插件的请求参数换一下就可以了,然后去除prompt的前缀,除了代码补全以外的功能都可以正常使用

image

from codeshell-vscode.

xieqk avatar xieqk commented on August 29, 2024

我试了一下,貌似返回结果不对,后台看到有请求,也正常回复了,但是插件不显示内容
image
对返回结果修改了解码后,前后都会出现undefined的字符,请问你知道是怎么回事吗
image

from codeshell-vscode.

Virtual1257 avatar Virtual1257 commented on August 29, 2024

我试了一下,貌似返回结果不对,后台看到有请求,也正常回复了,但是插件不显示内容 image 对返回结果修改了解码后,前后都会出现undefined的字符,请问你知道是怎么回事吗 image

因为请求的接口变了,返回的参数格式也变了,要将返回参数的json解析改一改,参照下面修改:
image

from codeshell-vscode.

su-zelong avatar su-zelong commented on August 29, 2024

我试了一下,貌似返回结果不对,后台看到有请求,也正常回复了,但是插件不显示内容 image 对返回结果修改了解码后,前后都会出现undefined的字符,请问你知道是怎么回事吗 image

因为请求的接口变了,返回的参数格式也变了,要将返回参数的json解析改一改,参照下面修改: image

请问解码文件是哪个啊,没有看到historyPrompt

from codeshell-vscode.

carusyte avatar carusyte commented on August 29, 2024

我fork了一个支持 Azure OpenAI 集成的版本,供参考
https://github.com/carusyte/codeshell-vscode

from codeshell-vscode.

su-zelong avatar su-zelong commented on August 29, 2024

我fork了一个支持 Azure OpenAI 集成的版本,供参考 https://github.com/carusyte/codeshell-vscode

感谢您提供的codeshell
但是我想发送类似:
curl http://localhost:8000/v1/completions
-H "Content-Type: application/json"
-d '{
"model": "facebook/opt-125m",
"prompt": "San Francisco is a",
"max_tokens": 7,
"temperature": 0
}'
(vllm部署本地模型)
类似这种格式的请求,而我观察到 OpenAI中的uri与我想访问的地址不同,我尝试将uri更改成上述格式,但是插件似乎无法正常加载。

from codeshell-vscode.

heurainbow avatar heurainbow commented on August 29, 2024

建议官方支持一个最新版openai api格式的模式

from codeshell-vscode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.