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

Chat completion: messages, stop, temperature, top_p, model, max_completion_tokens #13

Merged
merged 7 commits into from
Dec 13, 2024

Conversation

vidas
Copy link
Member

@vidas vidas commented Dec 13, 2024

Implement several "low hanging fruit" to align /v1/chat/completions arguments with OpenAI API.

Most were already available, just needed verification, minor tweaking and testing.

Breaking change - model is now mandatory.

Closes #1, #2, #3.

Vidas added 7 commits December 13, 2024 07:44
- Update license in the pyproject

- Add TODOs about whitelisting params

- Mypy server.app

- TODO to set flash attention to true
@vidas vidas self-assigned this Dec 13, 2024
Copy link
Collaborator

@akxcv akxcv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be perfect if you could add a couple of tests covering the use of these parameters.

@vidas
Copy link
Member Author

vidas commented Dec 13, 2024

@akxcv I had some test, but decided to intentionally omit them (have some in another branch) to later add once #5 is done, so that everything is consistent.

@akxcv
Copy link
Collaborator

akxcv commented Dec 13, 2024

Sounds good! Could you create an issue for covering these parameters with tests, so we won't forget?

@vidas vidas merged commit 8e8b450 into main Dec 13, 2024
1 check passed
@vidas vidas deleted the chat-args-easy branch December 13, 2024 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

messages
2 participants