aider-ce 0.87.10.dev0__py3-none-any.whl → 0.87.11.dev0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of aider-ce might be problematic. Click here for more details.

aider/__init__.py CHANGED
@@ -1,6 +1,6 @@
1
1
  from packaging import version
2
2
 
3
- __version__ = "0.87.10.dev"
3
+ __version__ = "0.87.11.dev"
4
4
  safe_version = __version__
5
5
 
6
6
  try:
aider/_version.py CHANGED
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
28
28
  commit_id: COMMIT_ID
29
29
  __commit_id__: COMMIT_ID
30
30
 
31
- __version__ = version = '0.87.10.dev0'
32
- __version_tuple__ = version_tuple = (0, 87, 10, 'dev0')
31
+ __version__ = version = '0.87.11.dev0'
32
+ __version_tuple__ = version_tuple = (0, 87, 11, 'dev0')
33
33
 
34
34
  __commit_id__ = commit_id = None
aider/models.py CHANGED
@@ -8,7 +8,6 @@ import platform
8
8
  import sys
9
9
  import time
10
10
  from dataclasses import dataclass, fields
11
- from datetime import datetime
12
11
  from pathlib import Path
13
12
  from typing import Optional, Union
14
13
 
@@ -903,57 +902,6 @@ class Model(ModelSettings):
903
902
  def is_ollama(self):
904
903
  return self.name.startswith("ollama/") or self.name.startswith("ollama_chat/")
905
904
 
906
- def github_copilot_token_to_open_ai_key(self, extra_headers):
907
- # check to see if there's an openai api key
908
- # If so, check to see if it's expire
909
- openai_api_key = "OPENAI_API_KEY"
910
-
911
- if openai_api_key not in os.environ or (
912
- int(dict(x.split("=") for x in os.environ[openai_api_key].split(";"))["exp"])
913
- < int(datetime.now().timestamp())
914
- ):
915
- import requests
916
-
917
- class GitHubCopilotTokenError(Exception):
918
- """Custom exception for GitHub Copilot token-related errors."""
919
-
920
- pass
921
-
922
- # Validate GitHub Copilot token exists
923
- if "GITHUB_COPILOT_TOKEN" not in os.environ:
924
- raise KeyError("GITHUB_COPILOT_TOKEN environment variable not found")
925
-
926
- github_token = os.environ["GITHUB_COPILOT_TOKEN"]
927
- if not github_token.strip():
928
- raise KeyError("GITHUB_COPILOT_TOKEN environment variable is empty")
929
-
930
- headers = {
931
- "Authorization": f"Bearer {os.environ['GITHUB_COPILOT_TOKEN']}",
932
- "Editor-Version": extra_headers["Editor-Version"],
933
- "Copilot-Integration-Id": extra_headers["Copilot-Integration-Id"],
934
- "Content-Type": "application/json",
935
- }
936
-
937
- url = "https://api.github.com/copilot_internal/v2/token"
938
- res = requests.get(url, headers=headers)
939
- if res.status_code != 200:
940
- safe_headers = {k: v for k, v in headers.items() if k != "Authorization"}
941
- token_preview = github_token[:5] + "..." if len(github_token) >= 5 else github_token
942
- safe_headers["Authorization"] = f"Bearer {token_preview}"
943
- raise GitHubCopilotTokenError(
944
- f"GitHub Copilot API request failed (Status: {res.status_code})\n"
945
- f"URL: {url}\n"
946
- f"Headers: {json.dumps(safe_headers, indent=2)}\n"
947
- f"JSON: {res.text}"
948
- )
949
-
950
- response_data = res.json()
951
- token = response_data.get("token")
952
- if not token:
953
- raise GitHubCopilotTokenError("Response missing 'token' field")
954
-
955
- os.environ[openai_api_key] = token
956
-
957
905
  def send_completion(
958
906
  self, messages, functions, stream, temperature=None, tools=None, max_tokens=None
959
907
  ):
@@ -1029,8 +977,6 @@ class Model(ModelSettings):
1029
977
  "Copilot-Integration-Id": "vscode-chat",
1030
978
  }
1031
979
 
1032
- self.github_copilot_token_to_open_ai_key(kwargs["extra_headers"])
1033
-
1034
980
  try:
1035
981
  res = litellm.completion(**kwargs)
1036
982
  except Exception as err:
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "deepseek/deepseek-reasoner": {
3
- "max_tokens": 64000,
3
+ "max_tokens": 128000,
4
4
  "max_input_tokens": 128000,
5
5
  "max_output_tokens": 64000,
6
6
  "input_cost_per_token": 0.00000028,
@@ -15,9 +15,9 @@
15
15
  "supports_prompt_caching": true
16
16
  },
17
17
  "deepseek/deepseek-chat": {
18
- "max_tokens": 8192,
18
+ "max_tokens": 128000,
19
19
  "max_input_tokens": 128000,
20
- "max_output_tokens": 8192,
20
+ "max_output_tokens": 8000,
21
21
  "input_cost_per_token": 0.00000028,
22
22
  "input_cost_per_token_cache_hit": 0.000000028,
23
23
  "cache_read_input_token_cost": 0.000000028,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aider-ce
3
- Version: 0.87.10.dev0
3
+ Version: 0.87.11.dev0
4
4
  Summary: Aider is AI pair programming in your terminal
5
5
  Project-URL: Homepage, https://github.com/dwash96/aider-ce
6
6
  Classifier: Development Status :: 4 - Beta
@@ -1,6 +1,6 @@
1
- aider/__init__.py,sha256=HENhzg4ENWKaDxDt8vhCPoPwKXvjl_QTOXrIRRg7gNo,497
1
+ aider/__init__.py,sha256=2c2lIaVnFyCMrCFC_P4eUQrvHqN-Q5fy6euNDJ41kjA,497
2
2
  aider/__main__.py,sha256=Vdhw8YA1K3wPMlbJQYL5WqvRzAKVeZ16mZQFO9VRmCo,62
3
- aider/_version.py,sha256=kPQ1q1vyv8fSMbN8UkWAp2aa8OW3iqXQ3zSAuwvlOqQ,721
3
+ aider/_version.py,sha256=Tm_2aSIT6-9mTVrkXHKyB-YIrPxTEHeQQV0Ac63NGhc,721
4
4
  aider/analytics.py,sha256=c5ujaCcMc3yG-9rz_0oSsqBwmVQRxJnui6iE_yDyY_M,7507
5
5
  aider/args.py,sha256=yjfHJm-eKBEXJ7MlqoGQEjkFhBlCvGtwp44AajAtROs,32491
6
6
  aider/args_formatter.py,sha256=CBRnzHyZk-fFCK0ekAzb6C4PPJOU-VTpWIIsJe3qUhk,6369
@@ -22,7 +22,7 @@ aider/linter.py,sha256=t5jwWZ1dvIzRtig1kTSjzl6u1LRfw0e19qwNIen2jAg,7998
22
22
  aider/llm.py,sha256=fGCemP1X9MBwrDfsTKGJ_1sx-yKz3DyoOvxZYOkvGak,1103
23
23
  aider/main.py,sha256=LyHwjkxz3_7tH_jerneLpDVzMY7svkkLW2NGXmfEzY8,45034
24
24
  aider/mdstream.py,sha256=fS9iQUQmIJPEMo7o1psPGE2yYj31MI3m3msdN-jEzUw,7594
25
- aider/models.py,sha256=kpLabh_qwvbi6uja71qaTJjgU3Sjn-oJotcNS4TSzkM,47189
25
+ aider/models.py,sha256=mZnDnk6HLNyZULd1IZ93uTK_IUyQToYvzj9U8InD7kM,44819
26
26
  aider/onboarding.py,sha256=XdCPsi6idsRvV0TsnaBOk0QoH-g3KgctafSMxoxvx6k,16105
27
27
  aider/openrouter.py,sha256=FAdv7L8xgILXgmC_b1gnuYJStmpaPyiZMp-7nSdInlQ,4642
28
28
  aider/prompts.py,sha256=Qv-JS8BzGjusEPmR3-qmjjvN3S9mb7W4KpWiGui-Jk0,1954
@@ -141,7 +141,7 @@ aider/queries/tree-sitter-languages/rust-tags.scm,sha256=9ljM1nzhfPs_ZTRw7cr2P9T
141
141
  aider/queries/tree-sitter-languages/scala-tags.scm,sha256=UxQjz80JIrrJ7Pm56uUnQyThfmQNvwk7aQzPNypB-Ao,1761
142
142
  aider/queries/tree-sitter-languages/typescript-tags.scm,sha256=OMdCeedPiA24ky82DpgTMKXK_l2ySTuF2zrQ2fJAi9E,1253
143
143
  aider/resources/__init__.py,sha256=09npmZFptj6XR6ZeEuekpcK2stecKEjI59zR0Vz2JU8,142
144
- aider/resources/model-metadata.json,sha256=9166MLdaNLayLdi4r0PRw3v6fEnAbYWRIxfLOUKwo5c,28700
144
+ aider/resources/model-metadata.json,sha256=z4fOl3fiRWQtVIULtjIs9FfhAExN88ybDeJdWb0_4OE,28703
145
145
  aider/resources/model-settings.yml,sha256=bqpgKJRNZUcSlXyuZgTKFybf61kW5NRuoIVyOMZztwc,58325
146
146
  aider/tools/__init__.py,sha256=LVV7Cp4C74O5BCKWzES4L1I2K0RSf25WnKb683mOHi8,1198
147
147
  aider/tools/command.py,sha256=TxUByCebyNVpob3Or9pLmSuR9Q0XLvsE4wb9aH1-sk4,2604
@@ -258,9 +258,9 @@ aider/website/docs/usage/tutorials.md,sha256=ZKBztbUtucHOiv9h8gvWiWTP6MTSsFyz4mA
258
258
  aider/website/docs/usage/voice.md,sha256=BtX7pHRgHRWUmrNbS4JssC-SO8RrJ_OetBCtIYpO0pU,3452
259
259
  aider/website/docs/usage/watch.md,sha256=OVF14lGtv1vhSXRE8PpxQ3YW-uXSifarUbmLBjmLRyA,7940
260
260
  aider/website/share/index.md,sha256=P51aDw9AT8AVbsU7v6g1tWuMjly7y_plM_ZI1ScaT8Y,3172
261
- aider_ce-0.87.10.dev0.dist-info/licenses/LICENSE.txt,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
262
- aider_ce-0.87.10.dev0.dist-info/METADATA,sha256=U6PLP3lxrnZd3ioO0RnjCjw1dCrlG7mD3lG03apbFW4,18429
263
- aider_ce-0.87.10.dev0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
264
- aider_ce-0.87.10.dev0.dist-info/entry_points.txt,sha256=OxI0JxfyJrc24nTmsdvpaWUx8Flz2huOij_-ifp-48w,69
265
- aider_ce-0.87.10.dev0.dist-info/top_level.txt,sha256=uwOA6ycgSiRLrBsaRBcIeN_eBKAX78U01_KDEHR8mBk,6
266
- aider_ce-0.87.10.dev0.dist-info/RECORD,,
261
+ aider_ce-0.87.11.dev0.dist-info/licenses/LICENSE.txt,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
262
+ aider_ce-0.87.11.dev0.dist-info/METADATA,sha256=40kjI2l1lUPRzx7OUFTW9lN32ie3BbZxBA71AIjdL4s,18429
263
+ aider_ce-0.87.11.dev0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
264
+ aider_ce-0.87.11.dev0.dist-info/entry_points.txt,sha256=OxI0JxfyJrc24nTmsdvpaWUx8Flz2huOij_-ifp-48w,69
265
+ aider_ce-0.87.11.dev0.dist-info/top_level.txt,sha256=uwOA6ycgSiRLrBsaRBcIeN_eBKAX78U01_KDEHR8mBk,6
266
+ aider_ce-0.87.11.dev0.dist-info/RECORD,,