mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +00:00
hack for o1-mini: no system prompt, no temperature
This commit is contained in:
parent
d84a9d6df2
commit
291b456a45
3 changed files with 5 additions and 3 deletions
|
@ -967,7 +967,8 @@ class Coder:
|
||||||
chunks = ChatChunks()
|
chunks = ChatChunks()
|
||||||
|
|
||||||
chunks.system = [
|
chunks.system = [
|
||||||
dict(role="system", content=main_sys),
|
dict(role="user", content=main_sys),
|
||||||
|
dict(role="assistant", content="Ok."),
|
||||||
]
|
]
|
||||||
chunks.examples = example_messages
|
chunks.examples = example_messages
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@ def send_completion(
|
||||||
kwargs = dict(
|
kwargs = dict(
|
||||||
model=model_name,
|
model=model_name,
|
||||||
messages=messages,
|
messages=messages,
|
||||||
temperature=temperature,
|
# temperature=temperature,
|
||||||
stream=stream,
|
stream=stream,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -549,7 +549,8 @@ def run_test_real(
|
||||||
chat_history_file=history_fname,
|
chat_history_file=history_fname,
|
||||||
)
|
)
|
||||||
|
|
||||||
main_model = models.Model(model_name)
|
weak_model = "gpt-4o-mini"
|
||||||
|
main_model = models.Model(model_name, weak_model)
|
||||||
edit_format = edit_format or main_model.edit_format
|
edit_format = edit_format or main_model.edit_format
|
||||||
|
|
||||||
dump(main_model)
|
dump(main_model)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue