fixes
This commit is contained in:
parent
b740c5bf21
commit
472984ab63
4 changed files with 12 additions and 5 deletions
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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())
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue