mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-05 19:41:15 +03:00
fix: fix chat request params miss runtime_options
This commit is contained in:
parent
43d97acd21
commit
e6b1136f5e
@ -203,6 +203,7 @@ class OpenAIClient(GenAIClient):
|
|||||||
"model": self.genai_config.model,
|
"model": self.genai_config.model,
|
||||||
"messages": messages,
|
"messages": messages,
|
||||||
"timeout": self.timeout,
|
"timeout": self.timeout,
|
||||||
|
**self.genai_config.runtime_options,
|
||||||
}
|
}
|
||||||
|
|
||||||
if tools:
|
if tools:
|
||||||
@ -315,6 +316,7 @@ class OpenAIClient(GenAIClient):
|
|||||||
"timeout": self.timeout,
|
"timeout": self.timeout,
|
||||||
"stream": True,
|
"stream": True,
|
||||||
"stream_options": {"include_usage": True},
|
"stream_options": {"include_usage": True},
|
||||||
|
**self.genai_config.runtime_options,
|
||||||
}
|
}
|
||||||
|
|
||||||
if tools:
|
if tools:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user