We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
api返回内容的格式描述似乎有误:
官方文档的描述是
data: {"id":"cmpl-1305b94c570f447fbde3180560736287","object":"chat.completion.chunk","created":1698999575,"model":"moonshot-v1-8k","choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null}]} data: {"id":"cmpl-1305b94c570f447fbde3180560736287","object":"chat.completion.chunk","created":1698999575,"model":"moonshot-v1-8k","choices":[{"index":0,"delta":{"content":"你好"},"finish_reason":null}]} ... data: {"id":"cmpl-1305b94c570f447fbde3180560736287","object":"chat.completion.chunk","created":1698999575,"model":"moonshot-v1-8k","choices":[{"index":0,"delta":{"content":"。"},"finish_reason":null}]} data: {"id":"cmpl-1305b94c570f447fbde3180560736287","object":"chat.completion.chunk","created":1698999575,"model":"moonshot-v1-8k","choices":[{"index":0,"delta":{},"finish_reason":"stop","usage":{"prompt_tokens":19,"completion_tokens":13,"total_tokens":32}}]} data: [DONE]
实际输出的格式:
data: {"id":"chatcmpl-66efb6f2f4dc0b0e6ec210b3","object":"chat.completion.chunk","created":1726985970,"model":"moonshot-v1-8k","choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null}],"system_fingerprint":"fpv0_293876d1"} data: {"id":"chatcmpl-66efb6f2f4dc0b0e6ec210b3","object":"chat.completion.chunk","created":1726985970,"model":"moonshot-v1-8k","choices":[{"index":0,"delta":{"content":"Hello"},"finish_reason":null}],"system_fingerprint":"fpv0_293876d1"} data: {"id":"chatcmpl-66efb6f2f4dc0b0e6ec210b3","object":"chat.completion.chunk","created":1726985970,"model":"moonshot-v1-8k","choices":[{"index":0,"delta":{"content":"!"},"finish_reason":null}],"system_fingerprint":"fpv0_293876d1"} ... data: {"id":"chatcmpl-66efb6f2f4dc0b0e6ec210b3","object":"chat.completion.chunk","created":1726985970,"model":"moonshot-v1-8k","choices":[{"index":0,"delta":{"content":"?"},"finish_reason":null}],"system_fingerprint":"fpv0_293876d1"} data: {"id":"chatcmpl-66efb6f2f4dc0b0e6ec210b3","object":"chat.completion.chunk","created":1726985970,"model":"moonshot-v1-8k","choices":[{"index":0,"delta":{},"finish_reason":"stop","usage":{"prompt_tokens":156,"completion_tokens":30,"total_tokens":186}}],"system_fingerprint":"fpv0_293876d1"} data: [DONE]
多了一个system_fingerprint字段,在解析输出的时候会有影响
system_fingerprint
插件地址:https://github.com/Kurama622/llm.nvim 文档说明:https://github.com/Kurama622/llm.nvim/wiki/Modify-LLM#example
The text was updated successfully, but these errors were encountered:
No branches or pull requests
希望更新一下官网文档
api返回内容的格式描述似乎有误:
官方文档的描述是
实际输出的格式:
多了一个
system_fingerprint
字段,在解析输出的时候会有影响支持MoonshotAI的neovim插件
插件地址:https://github.com/Kurama622/llm.nvim
![image](https://private-user-images.githubusercontent.com/41457394/369668075-782ef254-4f5f-48bb-87e3-34034c51d44d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NzQ0ODMsIm5iZiI6MTczOTQ3NDE4MywicGF0aCI6Ii80MTQ1NzM5NC8zNjk2NjgwNzUtNzgyZWYyNTQtNGY1Zi00OGJiLTg3ZTMtMzQwMzRjNTFkNDRkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDE5MTYyM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVmYTNlYzU1ZmI2ZTNjMzkyMmViYmNlZjU0ZDAwZDVlOGFkMTY4MTFhODA5YTJmMTkxMzhkNTk5YTg3ZGU2OTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.NOKfT7ho2gwKlpYqz2PnKu7uY7mZajzijtQ_ZWogaSg)
文档说明:https://github.com/Kurama622/llm.nvim/wiki/Modify-LLM#example
The text was updated successfully, but these errors were encountered: