File tree Expand file tree Collapse file tree 7 files changed +10
-10
lines changed Expand file tree Collapse file tree 7 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 7
7
from marvin .beta .applications import Application
8
8
9
9
# marvin.settings.log_level = "DEBUG"
10
- marvin .settings .openai .chat .completions .model = "gpt-4-1106-preview "
10
+ marvin .settings .openai .chat .completions .model = "gpt-4o "
11
11
12
12
13
13
ROOT_DIR = Path (marvin .__file__ ).parents [2 ]
Original file line number Diff line number Diff line change 9
9
from pydantic import BaseModel , Field
10
10
11
11
marvin .settings .log_level = "DEBUG"
12
- marvin .settings .llm_model = "gpt-4 "
12
+ marvin .settings .llm_model = "gpt-4o "
13
13
14
14
15
15
class TestWriterState (BaseModel ):
Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ async def daily_github_digest(
164
164
contributors_activity = await data_future .result (),
165
165
)
166
166
167
- marvin .settings .openai .chat .completions .model = "gpt-4 "
167
+ marvin .settings .openai .chat .completions .model = "gpt-4o "
168
168
169
169
epic_story = write_a_tasteful_epic (markdown_digest )
170
170
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ Please set Marvin specific settings in `~/.marvin/.env`. One exception being `OP
11
11
For example, in your ` ~/.marvin/.env ` file you could have:
12
12
```shell
13
13
MARVIN_LOG_LEVEL=INFO
14
- MARVIN_CHAT_COMPLETIONS_MODEL=gpt-4
14
+ MARVIN_CHAT_COMPLETIONS_MODEL=gpt-4o
15
15
MARVIN_OPENAI_API_KEY='sk-my-api-key'
16
16
```
17
17
Settings these values will let you avoid setting an API key every time.
@@ -24,7 +24,7 @@ A runtime settings object is accessible via `marvin.settings` and can be used to
24
24
```python
25
25
import marvin
26
26
27
- marvin.settings.openai.chat.completions.model = 'gpt-4 '
27
+ marvin.settings.openai.chat.completions.model = 'gpt-4o '
28
28
```
29
29
30
30
## Settings for using Azure OpenAI models
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ class ChatCompletionSettings(MarvinSettings):
36
36
model_config = SettingsConfigDict (
37
37
env_prefix = "marvin_chat_completions_" , extra = "ignore"
38
38
)
39
- model : str = Field (description = "The default chat model to use." , default = "gpt-4 " )
39
+ model : str = Field (description = "The default chat model to use." , default = "gpt-4o " )
40
40
41
41
temperature : float = Field (description = "The default temperature to use." , default = 1 )
42
42
@@ -117,13 +117,13 @@ class AssistantSettings(MarvinSettings):
117
117
"""Settings for the assistant API.
118
118
119
119
Attributes:
120
- model: The default assistant model to use, defaults to `gpt-4-1106-preview`.
120
+ model: The default assistant model to use
121
121
"""
122
122
123
123
model_config = SettingsConfigDict (env_prefix = "marvin_assistant_" )
124
124
125
125
model : str = Field (
126
- default = "gpt-4-1106-preview " ,
126
+ default = "gpt-4o " ,
127
127
description = "The default assistant model to use." ,
128
128
)
129
129
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ def assert_equal(
57
57
assert result .is_equal , assert_msg
58
58
59
59
60
- @marvin .fn (model_kwargs = dict (model = "gpt-4-1106-preview " ))
60
+ @marvin .fn (model_kwargs = dict (model = "gpt-4o " ))
61
61
def _assert_equal (
62
62
llm_output : Any , expected : Any , instructions : str = None
63
63
) -> Assertion :
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ def test_speech_settings_default(self):
44
44
class TestAssistantSettings :
45
45
def test_assistant_settings_default (self ):
46
46
settings = AssistantSettings ()
47
- assert settings .model == "gpt-4-1106-preview "
47
+ assert settings .model == "gpt-4o "
48
48
49
49
50
50
class TestTemporarySettings :
You can’t perform that action at this time.
0 commit comments