Skip to content

Conversation

@vladimirivic
Copy link
Contributor

@vladimirivic vladimirivic commented Jan 24, 2025

Summary:
This PR is adding the --api-key option for the llama-stack-client

Test Plan:
Config client:

llama-stack-client configure --endpoint=https://api.hostname.com --api-key='_API_KEY_'

Done! You can now use the Llama Stack Client CLI with endpoint https://api.hostname.com

Try listing the models

llama-stack-client models list

┏━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ identifier            ┃ provider_id ┃ provider_resource_id  ┃ metadata ┃ model_type ┃
┡━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━┩
│ llama3.1-8b-instruct  │ meta-llama  │ llama3.1-8b-instruct  │ {}       │ llm        │
│ llama3.3-70b-instruct │ meta-llama  │ llama3.3-70b-instruct │ {}       │ llm        │
│ llama3.4-17b-instruct │ meta-llama  │ llama3.4-17b-instruct │ {}       │ llm        │
└───────────────────────┴─────────────┴───────────────────────┴──────────┴────────────┘

Summary:

Test Plan:

Config client:
```
llama-stack-client configure --endpoint=https://api.hostname.com --api-key='_API_KEY_'

Done! You can now use the Llama Stack Client CLI with endpoint https://api.hostname.com
```

Try listing the models
```
llama-stack-client models list

┏━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ identifier            ┃ provider_id ┃ provider_resource_id  ┃ metadata ┃ model_type ┃
┡━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━┩
│ llama3.1-8b-instruct  │ meta-llama  │ llama3.1-8b-instruct  │ {}       │ llm        │
│ llama3.3-70b-instruct │ meta-llama  │ llama3.3-70b-instruct │ {}       │ llm        │
│ llama3.4-17b-instruct │ meta-llama  │ llama3.4-17b-instruct │ {}       │ llm        │
└───────────────────────┴─────────────┴───────────────────────┴──────────┴────────────┘
```
@vladimirivic vladimirivic merged commit f5d4cfe into main Jan 25, 2025
3 checks passed
@vladimirivic vladimirivic deleted the pr97 branch January 25, 2025 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants