Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
gptlang committed Feb 1, 2024
1 parent 55911ca commit 1c068cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rplugin/python3/copilot.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def _get_embeddings(self, inputs: list[typings.FileExtract]):
if i + 18 > len(inputs):
data = utilities.generate_embedding_request(inputs[i:])
else:
data = utilities.generate_embedding_request(inputs[i: i + 18])
data = utilities.generate_embedding_request(inputs[i : i + 18])
response = self.session.post(url, headers=self._headers(), json=data).json()
if "data" not in response:
raise Exception(f"Error fetching embeddings: {response}")
Expand Down
2 changes: 1 addition & 1 deletion rplugin/python3/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def copilotChat(self, args: list[str]):
buffer_lines = self.nvim.api.buf_get_lines(buf, 0, -1, 0)
last_line_row = len(buffer_lines) - 1
last_line = buffer_lines[-1]
last_line_col = len(last_line.encode('utf-8'))
last_line_col = len(last_line.encode("utf-8"))

self.nvim.api.buf_set_text(
buf,
Expand Down

0 comments on commit 1c068cc

Please sign in to comment.