🐛 fix ollama raw API call
This commit is contained in:
parent
9c16f8e85c
commit
9c754d1862
2 changed files with 4 additions and 2 deletions
|
|
@ -449,6 +449,9 @@ class ContinueConfig(BaseModel):
|
|||
def modifiers_from_filepath(
|
||||
filepath: str,
|
||||
) -> Tuple[Optional[Callable], Optional[Callable]]:
|
||||
if not os.path.exists(filepath):
|
||||
return None, None
|
||||
|
||||
try:
|
||||
if spec := importlib.util.spec_from_file_location("config", filepath):
|
||||
config = importlib.util.module_from_spec(spec)
|
||||
|
|
|
|||
|
|
@ -91,10 +91,9 @@ class Ollama(LLM):
|
|||
async with session.post(
|
||||
f"{self.api_base}/api/generate",
|
||||
json={
|
||||
"template": prompt,
|
||||
"prompt": prompt,
|
||||
"raw": True,
|
||||
"model": self.get_model_name(),
|
||||
"system": self.system_message,
|
||||
"options": self.collect_args(options),
|
||||
},
|
||||
proxy=self.request_options.proxy,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue