Skip to content

Commit

Permalink
remove autocommit
Browse files Browse the repository at this point in the history
  • Loading branch information
MadcowD committed Oct 12, 2024
1 parent af086ad commit af16584
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions tests/test_autocommit_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
from ell.configurator import config
import anthropic

ell.init(verbose=True, autocommit_model="gpt-4o-mini")
# ell.init(verbose=True, autocommit_model="claude-3-haiku-20240307")

test1_v1 = '''import ell
import numpy as np
Expand Down Expand Up @@ -57,17 +54,23 @@ def write_a_chord_progression_for_song(genre: Optional[str], key : Optional[str]
]"""

from ell.util.differ import write_commit_message_for_diff

# test 1
(response, *args) = write_commit_message_for_diff(test1_v1, test1_v2)
print(response)
import os

if os.environ.get("OPENAI_API_KEY"):
from ell.util.differ import write_commit_message_for_diff
ell.init(verbose=True, autocommit_model="gpt-4o-mini")
# ell.init(verbose=True, autocommit_model="claude-3-haiku-20240307")
def test_commit_message_1():
# test 1
(response, *args) = write_commit_message_for_diff(test1_v1, test1_v2)
print(response)

# test 2
(response, *args) = write_commit_message_for_diff(test2_v1, test2_v2)
print(response)
# test 2
(response, *args) = write_commit_message_for_diff(test2_v1, test2_v2)
print(response)

### --BEFORE PROMPT CHANGES-- ###
### --BEFORE PROMPT CHANGES-- ###

### CLAUDE 3 HAIKU ###
# Test 1:
Expand Down

0 comments on commit af16584

Please sign in to comment.