Commit Graph

392 Commits

Author SHA1 Message Date
Mery-Sanz aa6ea56ca8 add test to ci 2025-04-22 16:58:07 +02:00
Mery-Sanz dae41dbba7 add test 2025-04-22 16:48:12 +02:00
Mery-Sanz 702a93b6c3 fix agent and add primary test 2025-04-22 16:32:26 +02:00
Mery-Sanz 49f5ccb235 fix tools 2025-04-22 13:35:42 +02:00
Víctor Mayoral Vilches e0ca89f3d1 Merge branch 'test_ci' into 'v0.4.0'
Bring unite tests from 0.3.x

See merge request aliasrobotics/alias_research/cai!141
2025-04-22 07:39:16 +00:00
Víctor Mayoral Vilches 76cdba8236 Merge branch 'v0.4.0_pricing' into 'v0.4.0'
Fix pricing for CAI_STREAM=true and CAI_STREAM=false

See merge request aliasrobotics/alias_research/cai!140
2025-04-22 07:38:48 +00:00
lidia9 0bced4cbf3 removing prints from pricing changes 2025-04-22 07:15:01 +00:00
Mery-Sanz de91212fe5 delete some test because of the fail of api key 2025-04-15 17:18:16 +02:00
Mery-Sanz ae62dd80a3 .gitignore 2025-04-11 13:51:45 +02:00
Mery-Sanz 11c6e4febb test 2025-04-11 13:49:06 +02:00
Mery-Sanz 83e8ca904d fix pipleines 2025-04-11 12:24:32 +02:00
Mery-Sanz e8c4734bab change gpt-4o and install in .yml 2025-04-11 11:38:21 +02:00
Lidia 2ba7c90693 remove prints 2025-04-11 11:18:07 +02:00
Lidia 0bcd3fff05 remove prints 2025-04-11 11:13:23 +02:00
Lidia d4909c5288 FIX show pricing for CAI_STREAM=true 2025-04-11 11:02:30 +02:00
Mery-Sanz 958102c42d add piplines for ci test 2025-04-11 10:50:25 +02:00
Mery-Sanz 17df0ae50f fix 2025-04-11 10:08:55 +02:00
Mery-Sanz 3c019ea7a7 try to add ci 2025-04-11 10:06:25 +02:00
Lidia 2cf6bc01c3 undo changes in openai_responses.py and leave it as it was originally in v0.4.0 2025-04-11 09:53:51 +02:00
Mery-Sanz 34d73ac2cf fix test 2025-04-11 09:34:06 +02:00
Mery-Sanz 58327f19e9 fix mcp test 2025-04-11 08:24:26 +02:00
Mery-Sanz 6a28aff0a0 fix function schema test 2025-04-11 08:11:26 +02:00
Mery-Sanz ccdbf5baf9 fix some test 2025-04-11 08:04:19 +02:00
Mery-Sanz 67ab08dce1 add coments and docstring 2025-04-10 09:57:35 +02:00
Mery-Sanz d7fff2a6c3 improve test 2025-04-10 09:42:16 +02:00
Mery-Sanz b75754fdf4 add more test 2025-04-10 09:27:56 +02:00
Mery-Sanz 93803ffa0d add new test and fix previous 2025-04-10 08:54:21 +02:00
Mery-Sanz 627ff5b1f0 modify gitingore 2025-04-10 07:59:39 +02:00
Mery-Sanz 59e8e444ca add test 2025-04-10 07:58:40 +02:00
Mery-Sanz 1bc4b8fd9e final fix 2025-04-09 16:17:06 +02:00
Mery-Sanz f5f43ff000 fix more test 2025-04-09 16:07:58 +02:00
Mery-Sanz dbac371f70 fix more test 2025-04-09 15:59:24 +02:00
Mery-Sanz 24e05fbf2b add 2 more test 2025-04-09 15:54:58 +02:00
Mery-Sanz be6a7ecadd fix test_agent_runner 2025-04-09 15:51:05 +02:00
Lidia 6cc4c4c501 FIX show pricing - calculate pricing 2025-04-09 15:48:59 +02:00
Mery-Sanz b8ee04a8de fix test_agent_hooks.py and reorganize imports 2025-04-09 15:46:53 +02:00
María Sanz Gómez 2084ec6409 fix tests/test_agent_config.py 2025-04-09 15:42:26 +02:00
Víctor Mayoral Vilches fa198de051 Fix streaming responses in CAI and examples
Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-04-03 10:53:33 +02:00
Víctor Mayoral Vilches 9f5073c3a5 CLI output operational
Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-04-03 08:19:42 +02:00
Víctor Mayoral Vilches 47bd38b4aa Fix docs
Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-04-02 16:48:23 +02:00
Víctor Mayoral Vilches 62212d04b5 Address issues with litellm and agents SDK
Squeezed in some additional features such as:
- updated get_version()
- various examples for streaming and non-streaming testing

Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-04-02 14:03:00 +02:00
Víctor Mayoral Vilches 10a6539d05 Fix issue with instructions
Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-04-02 07:28:27 +02:00
Víctor Mayoral Vilches 988c82823a OLLAMA models working
Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-03-31 21:13:15 +02:00
Víctor Mayoral Vilches d3b6f8a1ed Merge remote-tracking branch 'origin/main' into cai 2025-03-31 13:21:34 +02:00
Eric Peter 9c53abe8c1
Databricks MLflow tracing integration (#401) 2025-03-30 23:53:09 -04:00
Víctor Mayoral Vilches 28d98cd3cd Streaming now working for OLLAMA models, but not the rest. Figure it out
Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-03-30 09:21:25 +02:00
Víctor Mayoral Vilches c75c272f36 Made local models work by switching into litellm python APIs
Still some issues with stream versions which needs further
investigation

Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-03-29 20:17:42 +01:00
Víctor Mayoral Vilches 859799c9f4 CLI responding, but only to proprietary models
Need to investigate why self-hosted models via OLLAMA fail API-wise

Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-03-28 09:48:16 +01:00
Víctor Mayoral Vilches 27d5316a60 Fix paths in docs
Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-03-28 08:35:25 +01:00
Víctor Mayoral Vilches ba25c5234f Address error while streaming
[Error occurred during streaming: 1 validation error for ResponseUsage
input_tokens_details
  Input should be a valid dictionary or instance of InputTokensDetails [type=model_type, input_value=InputTokensDetails(prompt...ens=17, cached_tokens=0), input_type=InputTokensDetails]
    For further information visit https://errors.pydantic.dev/2.10/v/model_type]
Location: Traceback (most recent call last):
  File /Users/alias/Alias/research/openai-agents-python/src/cai/cli.py, line 209, in process_streamed_response
    async for event in result.stream_events():
  File /Users/alias/Alias/research/openai-agents-python/src/cai/sdk/agents/result.py, line 186, in stream_events
    raise self._stored_exception
  File /Users/alias/Alias/research/openai-agents-python/src/cai/sdk/agents/run.py, line 539, in _run_streamed_impl
    turn_result = await cls._run_single_turn_streamed(
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File /Users/alias/Alias/research/openai-agents-python/src/cai/sdk/agents/run.py, line 641, in _run_single_turn_streamed
    async for event in model.stream_response(
  File /Users/alias/Alias/research/openai-agents-python/src/cai/sdk/agents/models/openai_chatcompletions.py, line 421, in stream_response
    ResponseUsage(
  File /Users/alias/Alias/research/openai-agents-python/env/lib/python3.12/site-packages/pydantic/main.py, line 214, in __init__
    validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pydantic_core._pydantic_core.ValidationError: 1 validation error for ResponseUsage
input_tokens_details
  Input should be a valid dictionary or instance of InputTokensDetails [type=model_type, input_value=InputTokensDetails(prompt...ens=17, cached_tokens=0), input_type=InputTokensDetails]
    For further information visit https://errors.pydantic.dev/2.10/v/model_type

Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
2025-03-28 08:35:11 +01:00