Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Lmdeploy
Commits
414bc34c
Unverified
Commit
414bc34c
authored
Dec 18, 2023
by
maxchiron
Committed by
GitHub
Dec 18, 2023
Browse files
[Docs] Fix typo in `restful_api ` user guide (#858)
fix ".generate" to ".chat_interactive_v1"
parent
c9700db4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
docs/zh_cn/restful_api.md
docs/zh_cn/restful_api.md
+1
-1
No files found.
docs/zh_cn/restful_api.md
View file @
414bc34c
...
@@ -56,7 +56,7 @@ LMDeploy 的 `/v1/chat/interactive` api 支持将对话内容管理在服务端
...
@@ -56,7 +56,7 @@ LMDeploy 的 `/v1/chat/interactive` api 支持将对话内容管理在服务端
```
python
```
python
from
lmdeploy.serve.openai.api_client
import
APIClient
from
lmdeploy.serve.openai.api_client
import
APIClient
api_client
=
APIClient
(
'http://{server_ip}:{server_port}'
)
api_client
=
APIClient
(
'http://{server_ip}:{server_port}'
)
for
item
in
api_client
.
generate
(
prompt
=
'hi'
):
for
item
in
api_client
.
chat_interactive_v1
(
prompt
=
'hi'
):
print
(
item
)
print
(
item
)
```
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment