diff options
| -rw-r--r-- | continuedev/src/continuedev/libs/llm/openai.py | 7 | ||||
| -rw-r--r-- | continuedev/src/continuedev/libs/llm/proxy_server.py | 3 | ||||
| -rw-r--r-- | extension/package-lock.json | 4 | ||||
| -rw-r--r-- | extension/package.json | 2 | 
4 files changed, 11 insertions, 5 deletions
| diff --git a/continuedev/src/continuedev/libs/llm/openai.py b/continuedev/src/continuedev/libs/llm/openai.py index 8fec2046..2b4c3fad 100644 --- a/continuedev/src/continuedev/libs/llm/openai.py +++ b/continuedev/src/continuedev/libs/llm/openai.py @@ -22,7 +22,12 @@ CHAT_MODELS = {  class OpenAI(LLM):      api_key: str      completion_count: int = 0 -    default_model: str = "gpt-3.5-turbo" +    default_model: str + +    def __init__(self, api_key: str, default_model: str = "gpt-3.5-turbo", system_message: str = None): +        self.api_key = api_key +        self.default_model = default_model +        self.system_message = system_message      @validator("api_key", pre=True, always=True)      def validate_api_key(cls, v): diff --git a/continuedev/src/continuedev/libs/llm/proxy_server.py b/continuedev/src/continuedev/libs/llm/proxy_server.py index f75788d2..4ff57101 100644 --- a/continuedev/src/continuedev/libs/llm/proxy_server.py +++ b/continuedev/src/continuedev/libs/llm/proxy_server.py @@ -16,7 +16,8 @@ CHAT_MODELS = {      "gpt-3.5-turbo", "gpt-4"  } -SERVER_URL = "http://127.0.0.1:8002" +# SERVER_URL = "http://127.0.0.1:8002" +SERVER_URL = "https://proxy-server-l6vsfbzhba-uc.a.run.app"  class ProxyServer(LLM): diff --git a/extension/package-lock.json b/extension/package-lock.json index 5a62f6ad..e41cd2c2 100644 --- a/extension/package-lock.json +++ b/extension/package-lock.json @@ -1,12 +1,12 @@  {    "name": "continue", -  "version": "0.0.39", +  "version": "0.0.40",    "lockfileVersion": 2,    "requires": true,    "packages": {      "": {        "name": "continue", -      "version": "0.0.39", +      "version": "0.0.40",        "license": "Apache-2.0",        "dependencies": {          "@electron/rebuild": "^3.2.10", diff --git a/extension/package.json b/extension/package.json index 4a0d9881..4b199420 100644 --- a/extension/package.json +++ b/extension/package.json @@ -14,7 +14,7 @@    "displayName": "Continue",    "pricing": "Free",    "description": "Refine code 10x faster", -  "version": "0.0.39", +  "version": "0.0.40",    "publisher": "Continue",    "engines": {      "vscode": "^1.74.0" | 
