File tree 2 files changed +8
-9
lines changed
osbot_llms/llms/prompt_to_json
tests/integration/llms/providers/open_router 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 1
- from typing import List , Dict
2
- from pydantic ._internal ._model_construction import ModelMetaclass
3
-
4
- from osbot_llms .llms .API_Open_AI import API_Open_AI
5
- from osbot_utils .base_classes .Type_Safe import Type_Safe
6
- from osbot_utils .context_managers .capture_duration import capture_duration
7
- from osbot_utils .helpers .Timestamp_Now import Timestamp_Now
8
- from osbot_utils .utils .Json import str_to_json
1
+ from typing import List , Dict
2
+ from pydantic ._internal ._model_construction import ModelMetaclass
3
+ from osbot_llms .llms .API_Open_AI import API_Open_AI
4
+ from osbot_utils .base_classes .Type_Safe import Type_Safe
5
+ from osbot_utils .context_managers .capture_duration import capture_duration
6
+ from osbot_utils .helpers .Timestamp_Now import Timestamp_Now
7
+ from osbot_utils .utils .Json import str_to_json
9
8
10
9
11
10
class Prompt_To_Json__Open_AI (Type_Safe ):
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ def test__init__(self):
28
28
29
29
def test_send_user_prompt (self ):
30
30
user_prompt = "2+2"
31
- self .llm_open_router .add_message__system ('reply in one word only' )
31
+ self .llm_open_router .add_message__system ('reply in one number only' )
32
32
response = self .llm_open_router .send_user_prompt (user_prompt = user_prompt )
33
33
if response .get ('status' ) == 'error' :
34
34
raise Exception (f"Error: { pformat (response )} " )
You can’t perform that action at this time.
0 commit comments