File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
custom_components/llmvision Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -442,7 +442,7 @@ async def vision_request(self, call: dict) -> str:
442442 return await self ._make_request (data )
443443
444444 async def title_request (self , call : dict ) -> str :
445- # call.max_tokens = 1000
445+ call .max_tokens = 4096
446446 data = self ._prepare_text_data (call )
447447 return await self ._make_request (data )
448448
@@ -587,9 +587,7 @@ async def validate(self) -> None | ServiceValidationError:
587587 "model" : self .model ,
588588 "messages" : [
589589 {"role" : "user" , "content" : [{"type" : "text" , "text" : "Hi" }]}
590- ],
591- "max_completion_tokens" : 1 ,
592- "temperature" : 0.5 ,
590+ ]
593591 }
594592 await self ._post (
595593 url = self .endpoint .get ("base_url" ), headers = headers , data = data
You can’t perform that action at this time.
0 commit comments