mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +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.system = [
|
||||
dict(role="system", content=main_sys),
|
||||
dict(role="user", content=main_sys),
|
||||
dict(role="assistant", content="Ok."),
|
||||
]
|
||||
chunks.examples = example_messages
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ def send_completion(
|
|||
kwargs = dict(
|
||||
model=model_name,
|
||||
messages=messages,
|
||||
temperature=temperature,
|
||||
# temperature=temperature,
|
||||
stream=stream,
|
||||
)
|
||||
|
||||
|
|
|
@ -549,7 +549,8 @@ def run_test_real(
|
|||
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
|
||||
|
||||
dump(main_model)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue