Timothy Jaeryang Baek
efefff71d1
Merge pull request #10363 from ferret99gt/ollama-model-option-conversion-updates
...
feat: Update Payload's apply_model_params_to_body_ollama with full Ollama supported options
2025-02-19 12:32:46 -08:00
Simone
6f698073bb
Add support for tool message in openai to Ollama message conversion
2025-02-19 21:11:39 +01:00
ferret99gt
5701d6d333
Change the opt dictionary to a mappings dictionary with appropriate casts
...
This is to bring consistency with apply_model_params_to_body_openai. Both now use a mapping dictionary then call and return apply_model_params_to_body directly.
2025-02-19 09:30:16 -05:00
ferret99gt
fa885c3346
Update remapping logic
...
We copy the params from from the original key to the new key, then delete it. This is to ensure Ollama only gets valid options.
(Add a comment as well)
2025-02-19 09:25:47 -05:00
ferret99gt
a4249a6351
Remove remapping of frequency_penalty to repeat_penalty
...
1) Ollama natively supports frequency_penalty, so this is not necessary.
2) Repeat_penalty is being added to Open WebUI in PR #10016 , allowing Ollama users to pick which penalty methods they want.
2025-02-19 09:24:38 -05:00
ferret99gt
877d21a029
Move parameter remapping above the opt dictionary.
...
This is so that any remappings are handled before options are handled by apply_model_params_to_body
2025-02-19 09:23:33 -05:00
ferret99gt
6b2ba73701
Remove tfs_z
...
See https://github.com/ollama/ollama/blob/main/docs/api.md#request-8
tfs_z was removed from Llama.cpp and Ollama in January 2025.
2025-02-19 09:21:36 -05:00
ferret99gt
cee08e316d
Update Ollama request option list with full supported options
...
See https://github.com/ollama/ollama/blob/main/docs/api.md#request-8
This adds the full suite of supported Ollama options.
2025-02-19 09:21:05 -05:00
Timothy Jaeryang Baek
63a5ee3adb
refac
2025-02-10 11:25:38 -08:00
Timothy Jaeryang Baek
7ba717d171
refac: system prompt template
2025-02-05 14:35:18 -08:00
Timothy Jaeryang Baek
ff84c120f5
fix: api usage
2025-02-05 13:18:17 -08:00
Timothy Jaeryang Baek
8d520eeecd
fix: ollama native tool calling
2025-02-04 21:08:26 -08:00
Timothy Jaeryang Baek
cc99673906
refac: prompt variables
Deploy to HuggingFace Spaces / check-secret (push) Waiting to run
Deploy to HuggingFace Spaces / deploy (push) Blocked by required conditions
Create and publish Docker images with specific build args / build-main-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-main-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / build-cuda-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-cuda-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / build-ollama-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-ollama-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / merge-main-images (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge-cuda-images (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge-ollama-images (push) Blocked by required conditions
Python CI / Format Backend (3.11) (push) Waiting to run
Frontend Build / Format & Build Frontend (push) Waiting to run
Frontend Build / Frontend Unit Tests (push) Waiting to run
2025-01-29 21:56:51 -08:00
Timothy Jaeryang Baek
aaf97b85dc
enh: reasoning_effort param support for openai
2025-01-22 12:07:04 -08:00
Timothy Jaeryang Baek
79d7e67e51
fix: ollama options
2024-12-29 16:30:36 -08:00
envision3d
16d900247a
feat: pass structured output format through to ollama
2024-12-17 09:33:32 -06:00
Timothy J. Baek
9f285fb2fb
feat: arena models
2024-10-22 03:16:48 -07:00
Timothy J. Baek
b4e73c7f19
refac: convert_payload_openai_to_ollama
2024-10-21 04:10:28 -07:00
Timothy J. Baek
41926172d3
fix/refac: use ollama /api/chat endpoint for tasks
2024-09-21 00:30:13 +02:00
Michał Surmaczewski
8e6ea49e0e
fix: incorrect casting of top_p and frequency_penalty
2024-09-08 17:52:58 +02:00
Timothy J. Baek
ff46fe2b4a
refac
2024-09-07 03:09:57 +01:00