claude-3-haiku=>claude-3-5-haiku,claude-3.5-haiku-8080=>claude-3-5-sonnet
:Worker & Pages
=> Overveiw
=> Create
to create a new WorkerDeploy
to save and update the deployment
Worker & Pages
=> D1
=> Create
button to create a new database
DB
here for the variable name. For the database, select the one just initialized. Click Deploy to deploy.API_LOGGING
enabled
API_SEC_KEY
API_MODEL_REWRITE
model1=>model2,model3=>model4
wandering-poetry-3106.hash070.workers.dev
https://wandering-poetry-3106.hash070.workers.dev/v1/chat/completions
. If you want to access the Messages API interface, you can make a request to https://wandering-poetry-3106.hash070.workers.dev/v1/messages
.https://[your Worker address]/logs?key=[your API_SEC_KEY]&format=[export data format]
For example:
https://wandering-poetry-3106.hash070.workers.dev/logs?key=your-secret-key&format=csv
json
or csv
table.https://[your Worker address]/clear-logs?key=[your API_SEC_KEY]
{"success":true,"message":{"en":"Logs cleared successfully","zh":"Logs cleared successfully"}}
Address:/logs
Method: GET
parameter:
key: API_SEC_KEY (required)
format: export format (optional, default csv)
csv: CSV format
json: JSON format
/logs?key=your-api-key
/logs?key=your-api-key&format=json
Address:/clear-logs
Method: GET
parameter:
key: API_SEC_KEY (required)
/clear-logs?key=your-api-key