Skip to content

Commit

Permalink
Sync with master
Browse files Browse the repository at this point in the history
  • Loading branch information
onuratakan committed May 24, 2024
1 parent 411626e commit fa6400b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion upsonic/remote/on_prem.py
Original file line number Diff line number Diff line change
Expand Up @@ -1124,8 +1124,15 @@ def extract_source(self, value):
result = dill.source.getsource(value)
return result


def auto_dump(self, value, ask=True, check_idea=True, print_prompts=False, model=None):


if model == None:
model = self.get_default_ai_model()

if model == "llama3-8b":
check_idea = False

if check_idea:
check = self.check_idea(value, print_prompts=print_prompts, model=model)
if check != True:
Expand All @@ -1150,6 +1157,9 @@ def auto_dump(self, value, ask=True, check_idea=True, print_prompts=False, model
{all_scopes}
```
Your answer should be just the suggested position. Dont say any other think.
Suggested Position:
"""
Expand Down Expand Up @@ -1188,6 +1198,8 @@ def auto_dump(self, value, ask=True, check_idea=True, print_prompts=False, model
print("\nDumped")




def get_code(self, scope):
data = {"scope": scope}
return self._send_request("POST", "/get_code_of_scope", data)
Expand Down

0 comments on commit fa6400b

Please sign in to comment.