mirror of
https://github.com/ollama/ollama.git
synced 2025-05-10 18:06:33 +02:00
openai: return usage as final chunk for streams (#6784)
* openai: return usage as final chunk for streams --------- Co-authored-by: ParthSareen <parth.sareen@ollama.com>
This commit is contained in:
parent
c216850523
commit
e28f2d4900
3 changed files with 176 additions and 33 deletions
|
@ -233,6 +233,8 @@ curl http://localhost:11434/v1/embeddings \
|
|||
- [x] `seed`
|
||||
- [x] `stop`
|
||||
- [x] `stream`
|
||||
- [x] `stream_options`
|
||||
- [x] `include_usage`
|
||||
- [x] `temperature`
|
||||
- [x] `top_p`
|
||||
- [x] `max_tokens`
|
||||
|
@ -261,6 +263,8 @@ curl http://localhost:11434/v1/embeddings \
|
|||
- [x] `seed`
|
||||
- [x] `stop`
|
||||
- [x] `stream`
|
||||
- [x] `stream_options`
|
||||
- [x] `include_usage`
|
||||
- [x] `temperature`
|
||||
- [x] `top_p`
|
||||
- [x] `max_tokens`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue