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

如何在使用api對話時指定default llm model #5030

Open
Glen-Chen-Blue opened this issue Oct 26, 2024 · 0 comments
Open

如何在使用api對話時指定default llm model #5030

Glen-Chen-Blue opened this issue Oct 26, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Glen-Chen-Blue
Copy link

curl -X 'POST'
'http://localhost:4000/chat/chat/completions'
-H 'accept: application/json'
-H 'Content-Type: application/json'
-d '{
"messages": [
{
"content": "你是誰",
"role": "user"
}
],
"model": "llama3.2:1b",
"stream": false,
"temperature": 0.9
}
'

如果沒有model參數則會network error,如何讓他直接使用default model

@Glen-Chen-Blue Glen-Chen-Blue added the enhancement New feature or request label Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant