diff --git a/README.md b/README.md index 5a300cb..de43124 100644 --- a/README.md +++ b/README.md @@ -41,8 +41,8 @@ Replace `http://localhost:11434/` with the URL and port of the first server. The ### Authorized users (authorized_users.txt) Create a file named `authorized_users.txt` in the same directory as your script, containing a list of user:key pairs, separated by commas and each on a new line: ```text -user1,key1 -user2,key2 +user1:key1 +user2:key2 ``` Replace `user1`, `key1`, `user2`, and `key2` with the desired username and API key for each user. You can also use the `ollama_proxy_add_user` utility to add user and generate a key automatically: @@ -67,7 +67,7 @@ Replace `` with the HTTP method (GET or POST), `` with a valid For example: ```bash -curl -X POST -H "Authorization: Bearer user1:key1" http://localhost:8080/api/generate --data '{"data": "Hello, World!"}' +curl -X POST -H "Authorization: Bearer user1:key1" http://localhost:8080/api/generate --data '{'model':'mixtral:latest,'prompt': "Once apon a time,","stream":false,"temperature": 0.3,"max_tokens": 1024}' ``` ### Starting the server using the created Container-Image To start the proxy in background with the above created image, you can use either