mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 21:19:12 +00:00
Fix passing temp kwarg to non-streaming openai completion endpoint
It is already being passed in model_kwargs, so not required to be passed explicitly as well. This code path isn't being used currently, but better to fix for if/when it is used
This commit is contained in:
@@ -195,7 +195,6 @@ def completion_with_backoff(
|
|||||||
chunk = client.beta.chat.completions.parse(
|
chunk = client.beta.chat.completions.parse(
|
||||||
messages=formatted_messages, # type: ignore
|
messages=formatted_messages, # type: ignore
|
||||||
model=model_name,
|
model=model_name,
|
||||||
temperature=temperature,
|
|
||||||
timeout=httpx.Timeout(30, read=read_timeout),
|
timeout=httpx.Timeout(30, read=read_timeout),
|
||||||
**model_kwargs,
|
**model_kwargs,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user