File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
libs/partners/ollama/langchain_ollama Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 42
42
convert_to_openai_tool ,
43
43
)
44
44
from langchain_core .utils .pydantic import TypeBaseModel , is_basemodel_subclass
45
- from ollama import AsyncClient , Client , Message , Options
45
+ from ollama import AsyncClient , Client , Message
46
46
from pydantic import BaseModel , PrivateAttr , model_validator
47
47
from pydantic .json_schema import JsonSchemaValue
48
48
from pydantic .v1 import BaseModel as BaseModelV1
@@ -675,7 +675,7 @@ def _chat_params(
675
675
"model" : kwargs .pop ("model" , self .model ),
676
676
"think" : kwargs .pop ("reasoning" , self .reasoning ),
677
677
"format" : kwargs .pop ("format" , self .format ),
678
- "options" : Options ( ** options_dict ) ,
678
+ "options" : options_dict ,
679
679
"keep_alive" : kwargs .pop ("keep_alive" , self .keep_alive ),
680
680
** kwargs ,
681
681
}
You can’t perform that action at this time.
0 commit comments