diff --git a/.gitignore b/.gitignore index ea8272f..6a7d1b0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ +.continue/* +.ropeproject/* +random_* + # Python-generated files __pycache__/ *.py[oc] @@ -8,5 +12,3 @@ wheels/ # Virtual environments .venv -.continue/* -.ropeproject/* \ No newline at end of file diff --git a/main.py b/main.py index 4c129e3..6b980f4 100644 --- a/main.py +++ b/main.py @@ -13,7 +13,7 @@ from tools import ToolExecutor import random import time -LM_STUDIO_URL = "http://127.0.0.1:1234/v1/chat/completions" # default LM Studio endpoint +LM_STUDIO_URL = "http://127.0.0.1:1234/v1/chat/completions" EXIT_STRINGS = ['exit','goodbye','go away','fuck off'] console = Console() @@ -34,13 +34,7 @@ please reply with only the tool call if you need to } ] }''' -# "parameters": { -# "type": "object", -# "properties": { -# "city": {"type": "string", "description": "City name"}, -# }, -# "required": ["city"] -# }, + def ask_model(prompt: str, url=LM_STUDIO_URL) -> str: payload = { "model": 'qwen/qwen3-coder-30b',