This commit is contained in:
Nate Sesti 2023-06-16 15:17:36 -07:00
parent b740c5bf21
commit 472984ab63
4 changed files with 12 additions and 5 deletions

View file

@ -17,7 +17,7 @@ CHAT_MODELS = {
"gpt-3.5-turbo", "gpt-4"
}
# SERVER_URL = "http://127.0.0.1:8002"
# SERVER_URL = "http://127.0.0.1:8080"
SERVER_URL = "https://proxy-server-l6vsfbzhba-uc.a.run.app"
@ -87,4 +87,7 @@ class ProxyServer(LLM):
}) as resp:
async for line in resp.content:
if line:
yield line.decode("utf-8")
try:
yield line.decode("utf-8")
except json.JSONDecodeError:
raise Exception(str(line))

View file

@ -230,7 +230,7 @@ class IdeProtocolServer(AbstractIdeProtocolServer):
resp = await self._send_and_receive_json({}, UniqueIdResponse, "uniqueId")
return resp.uniqueId
@cached_property
@property
def workspace_directory(self) -> str:
return asyncio.run(self.getWorkspaceDirectory())

View file

@ -14,7 +14,11 @@ const HeaderButtonWithText = (props: HeaderButtonWithTextProps) => {
<HeaderButton
style={{ padding: "3px" }}
onMouseEnter={() => setHover(true)}
onMouseLeave={() => setHover(false)}
onMouseLeave={() => {
setTimeout(() => {
setHover(false);
}, 100);
}}
onClick={props.onClick}
>
<span hidden={!hover}>{props.text}</span>

View file

@ -48,7 +48,7 @@ export const Pre = styled.pre`
max-height: 150px;
overflow-y: scroll;
margin: 0;
background-color: ${secondaryDark};
background-color: ${vscBackground};
border: none;
/* text wrapping */