uni-api / main.py

Commit History

🐛 Bug: Fix the bug where FastAPI internally used different types of streaming responses.
7f50586

yym68686 commited on

🐛 Bug: Fix the bug where FastAPI internally used different types of streaming responses.
27b2cca

yym68686 commited on

🐛 Bug: Fix bug in total time calculation
09c584b

yym68686 commited on

Refactor: Add support for retrieving all models when the model name is "*"
3e27f73

dray commited on

fix: Generate a random API key using only alphanumeric characters
bead939

Benedict King commited on

🐛 Bug: Fix the bug where the request to generate images cannot be parsed.
c34a2a5

yym68686 commited on

🐛 Bug: Fix a bug that may occur in a concurrent environment when multiple requests attempt to use the same database session simultaneously.
9871835

yym68686 commited on

🐛 Bug: 1. Fix the bug that causes an error when Claude uploads a PNG image.
f156f8a

yym68686 commited on

✨ Feature: Add support for v1/moderations endpoint.
888a669

yym68686 commited on

✨ Feature: Add support for v1/audio/transcriptions endpoint
17409c4

yym68686 commited on

🐛 Bug: Fix the bug that prevents the host machine from synchronizing database files.
79bd233

yym68686 commited on

🐛 Bug: Fix the bug where the database cannot be automatically created when it does not exist
a37c1d1

yym68686 commited on

🐛 Bug: Fix the bug where the database cannot be automatically created when it does not exist
90a8f67

yym68686 commited on

✨ Feature: Add database, count the first character time.
1d1b0f1

yym68686 commited on

🤖 Models: Add support for the cohere series models
eb02b52

yym68686 commited on

✨ Feature: Add feature: Support automatic restart after detecting changes to api.yaml, no need to manually restart the container.
a0bdc85

yym68686 commited on

🐛 Bug: Fix the bug of middleware statistics for unknown models
ed95244

yym68686 commited on

✨ Feature: Add feature: Support for counting model usage in the stats endpoint
5eb10aa

yym68686 commited on

🐛 Bug: Fix the bug where the next channel cannot be automatically switched when an error occurs in non-streaming output for o1-mini and o1-preview.
bdfeca1

yym68686 commited on

💻 Code: Optimize log display: When the model does not exist, display it in the log.
061e8aa

yym68686 commited on

🐛 Bug: Fix the bug of connectivity check error at lobechat endpoint /v1/chat/completions
c09ef14

yym68686 commited on

💻 Code: Increase the default timeout to 100 seconds to improve the success rate of o1-preview responses.
ab734b8

yym68686 commited on

🐛 Bug: Fix the o1-mini timeout bug, increase the default timeout to 40 seconds.
78ff70d

yym68686 commited on

🤖 Models: Add support for o1-mini o1-preview model
1126d73

yym68686 commited on

🐛 Bug: Fix the bug where httpx.RemoteProtocolError was not caught
f4d6dda

yym68686 commited on

🐛 Bug: Fix the bug where the client uploads the image URL instead of converting it to base64 encoding during image recognition.
5c2c740

yym68686 commited on

🐛 Bug: Fix the bug where error codes are not accurately returned to the client.
3972d74

yym68686 commited on

✨ Feature: Add feature: Add support for using angle brackets to enclose strings to set the string before the slash to the channel name.
6038b37

yym68686 commited on

🐛 Bug: 1. Fix the bug where the API key is not found when rate limiting.
cfd3f47

yym68686 commited on

✨ Feature: Add feature: Support Cloudflare API model
95ca783

yym68686 commited on

✨ Feature: Add feature: Add support for rate limiting.
b812da1

yym68686 commited on

🐛 Bug: Fix the bug when the model list is empty.
7477ff7

yym68686 commited on

🐛 Bug: Fix the bug where tool use is still included in the request body when tools are closed.
f3ea9b1

yym68686 commited on

🐛 Bug: 1. Fix the bug of log errors being repeatedly displayed.
8eca72e

yym68686 commited on

🐛 Bug: Fix the bug where the channel status is not sorted by success rate.
dac9c70

yym68686 commited on

✨ Feature: Add feature: Add support for weighted load balancing.
3ec7a0b

yym68686 commited on

✨ Feature: Add features: Add API channel success rate statistics, channel status records.
73a667f

yym68686 commited on

Fix the bug that cannot adapt to the available model name.
163e912

yym68686 commited on

🐛 Bug: Fix the bug where the timeout was not converted to a float.
3fc76ba

yym68686 commited on

Add traffic middleware
819abc0

yym68686 commited on

Fix the bug that does not adapt to the new API for obtaining the model list.
2a7fbb2

yym68686 commited on

Add feature: support OpenAI dall-e-3 image generation
2ec0842

yym68686 commited on

Fix the bug where the provider lookup is inaccurate.
58a694d

yym68686 commited on

revert: try_all_providers method in ModelRequestHandler
47c28b9

zeta commited on

refactor: revise round-robin and auto-retry logic in API request handling
bdd215f

zeta commited on

fix: Improve round-robin provider selection and add Claude max_tokens auto-fill
9b5984b

zeta commited on

Add feature: support vertex claude API using tool use functionality.
7d44776

yym68686 commited on

✨ Feature: Add feature: Support vertex ai API and vertex tool use invocation.
edb14b7

yym68686 commited on

Fix the bug related to asyncio.CancelledError error
0f410b4

yym68686 commited on

fix bug
2a42096

yym68686 commited on