Commit graph

2045 commits

Author SHA1 Message Date
Krrish Dholakia
152ffca815 docs(model-price-json): add bedrock models 2023-10-10 07:35:03 -07:00
Krish Dholakia
7a0dc6487b
Update README.md 2023-10-10 07:15:10 -07:00
Krrish Dholakia
ed832a8111 bump: version 0.6.4 → 0.6.5 2023-10-09 20:44:15 -07:00
Krrish Dholakia
db20cb84d4 fix(main.py): return n>1 response for openai text completion 2023-10-09 20:44:07 -07:00
Krrish Dholakia
41bebaa1e3 test(test_bad_params): fix cohere bad params test 2023-10-09 20:37:58 -07:00
Krrish Dholakia
689371949c fix(main.py): read openai org from env 2023-10-09 16:49:22 -07:00
Krrish Dholakia
b9c582184b bump: version 0.6.3 → 0.6.4 2023-10-09 16:46:33 -07:00
Krrish Dholakia
253e8d27db fix: bug fix when n>1 passed in 2023-10-09 16:46:33 -07:00
ishaan-jaff
2004b449e8 (docs) Proxy add tutorial on using multiple llms 2023-10-09 16:21:40 -07:00
Krrish Dholakia
b14bda6e1a bump: version 0.6.2 → 0.6.3 2023-10-09 15:28:37 -07:00
Krrish Dholakia
079122fbf1 style(utils.py): return better exceptions
https://github.com/BerriAI/litellm/issues/563
2023-10-09 15:28:33 -07:00
Krrish Dholakia
a6968d06e6 fix(anthropic.py): fix anthropic prompt 2023-10-09 15:22:58 -07:00
ishaan-jaff
ba754a07a3 (feat) add --cost as a flag to the proxy server cli 2023-10-09 15:05:17 -07:00
Krrish Dholakia
70720c255e bump: version 0.6.1 → 0.6.2 2023-10-09 15:03:44 -07:00
Krrish Dholakia
42e0d7cf68 fix(proxy_server): returns better error messages for invalid api errors 2023-10-09 15:03:44 -07:00
ishaan-jaff
262f874621 (feat) add cost tracking to proxy server 2023-10-09 14:51:37 -07:00
Krrish Dholakia
a9f7a80e3d feat(proxy_cli.py): add max budget to proxy 2023-10-09 14:11:30 -07:00
ishaan-jaff
4e64f123ef (fix) api_base, api_version and api_key 2023-10-09 14:11:05 -07:00
ishaan-jaff
7587e8ce06 (fix) Bedrock test fix, stop tryin to read aws session token 2023-10-09 13:49:22 -07:00
ishaan-jaff
8d4c109171 (test) add async + non stream test for ollama 2023-10-09 13:47:08 -07:00
ishaan-jaff
bf4ce08640 (fix) acompletion for ollama non streaing 2023-10-09 13:47:08 -07:00
Krish Dholakia
74c5e6f415 Updated config.yml 2023-10-09 13:40:20 -07:00
Krish Dholakia
4900f11570 Updated config.yml 2023-10-09 13:30:51 -07:00
Krrish Dholakia
c74e4a3920 bump: version 0.6.0 → 0.6.1 2023-10-09 13:10:14 -07:00
Krrish Dholakia
4059f408d0 fix(proxy_cli): accept drop params and add_function_to_prompt 2023-10-09 13:10:07 -07:00
Krrish Dholakia
46bfeddfc7 docs(stream.md): fix async streaming tutorial 2023-10-09 11:47:49 -07:00
Krrish Dholakia
c3e4c3e3f0 fix(proxy_server.py): add link to docs 2023-10-09 11:35:42 -07:00
Krrish Dholakia
3d809707c0 fix(proxy_cli.py): add drop params and add function to prompt in cli (complete issue)
https://github.com/BerriAI/litellm/issues/557
2023-10-09 11:33:45 -07:00
Krrish Dholakia
72ac4fe781 bump: version 0.5.6 → 0.6.0 2023-10-09 09:53:53 -07:00
Krrish Dholakia
704be9dcd1 feat(factory.py): option to add function details to prompt, if model doesn't support functions param 2023-10-09 09:53:53 -07:00
ishaan-jaff
f6f7c0b891 (feat) add api_key, api_base, api_version to completion 2023-10-09 08:13:12 -07:00
Ishaan Jaff
14b6261f47
Merge pull request #560 from kylehh/add_custom_openai
Add custom_openai type in provider list
2023-10-09 07:15:19 -07:00
Ishaan Jaff
017d9367ca
Merge pull request #562 from zhooda/main
Add support for passing external bedrock clients to completion
2023-10-09 07:12:56 -07:00
Zeeshan Hooda
112df4a19d
(test) add bedrock existing client auth test 2023-10-09 03:39:40 -06:00
Zeeshan Hooda
f735ca7e46
(docs) bedrock pass existing client to completion 2023-10-09 01:14:53 -06:00
Zeeshan Hooda
5f55b4a1ab
(feat) bedrock pass client to completion 2023-10-09 00:51:58 -06:00
Kyle
22525d9333 Add custom_openai type in provider list 2023-10-08 21:20:10 -07:00
Ishaan Jaff
7add88a8b0
Merge pull request #558 from Sir-Photch/patch-1
Add `host` option to `run_server()`
2023-10-08 13:30:27 -07:00
Sir-Photch
708d61b207 make --test respect host and port 2023-10-08 20:42:49 +02:00
Christoph
64c9795871
Add host cli parameter 2023-10-08 17:59:47 +00:00
Krrish Dholakia
f7473638ce docs(set_keys.md): doc updates 2023-10-08 10:01:19 -07:00
Krrish Dholakia
c48c6e9358 docs(set_keys.md): adds validate_environment function to docs 2023-10-08 10:00:56 -07:00
Krrish Dholakia
a833e3f929 docs(proxy_server.md): adding /ollama_logs endpoint to docs 2023-10-07 20:38:19 -07:00
Krrish Dholakia
a8c3871b02 ci(test_logging): need to rewrite test_logging to work in parallel testing 2023-10-07 19:18:09 -07:00
Krrish Dholakia
9ac3ff584c ci(test_logging): have a change to make circle ci run our testing 2023-10-07 18:33:24 -07:00
Krrish Dholakia
0fb95faa50 ci(config.yml): run all tests on circle ci 2023-10-07 18:28:25 -07:00
Krrish Dholakia
28a2e31ede ci(test_logging): running just this test on circle ci 2023-10-07 18:23:54 -07:00
Krrish Dholakia
9f118bb5db ci(test_logging): debugging circle ci 2023-10-07 18:19:55 -07:00
Krrish Dholakia
4b35f1b6bd ci(test_logging): testing why circle ci keeps failing this test 2023-10-07 18:16:32 -07:00
Krrish Dholakia
713d998680 aider: Added print working directory command before running pytest in CircleCI config.
# Aider chat conversation:

USER: what directory is pytest in?

ASSISTANT: The `pytest` command is typically installed in the `bin` directory of your Python environment. If you're using a virtual environment, it would be in the `bin` directory of that environment.

However, the location of the `pytest` command doesn't affect how
^C KeyboardInterrupt

USER: i mean the pytest command in the config.yml

ASSISTANT: The pytest command in the `.circleci/config.yml` file is being run in the `~/project` directory. This is specified by the `working_directory` key in the `local_testing` job.

When the `python -m pytest -vv test_logging.py --junitxml=test-results/junit.xml` command is run, it's being run in the `~/project` directory.

If `test_logging.py` is not in the `~/project` directory, you would need to provide the relative path to it from `~/project`. For example, if it's in a `tests` directory under `~/project`, you would use `tests/test_logging.py`.

USER: can you print the pwd before running the pytest?  # Run pytest and generate JUnit XML report
      - run:
          name: Run tests
          command: |
            python -m pytest -vv tests/test_logging.py --junitxml=test-results/junit.xml
          no_output_timeout: 30m

ASSISTANT: Sure, you can add a command to print the current working directory (pwd) before running the pytest command. Here's how you can do it:

```yaml
.circleci/config.yml
<<<<<<< HEAD
      # Run pytest and generate JUnit XML report
      - run:
          name: Run tests
          command: |
            python -m pytest -vv tests/test_logging.py --junitxml=test-results/junit.xml
          no_output_timeout: 30m
=======
      # Run pytest and generate JUnit XML report
      - run:
          name: Run tests
          command: |
            pwd
            python -m pytest -vv tests/test_logging.py --junitxml=test-results/junit.xml
          no_output_timeout: 30m
>>>>>>> updated
```

This change will print the current working directory before running the pytest command.
2023-10-07 18:14:35 -07:00