mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 10:05:14 +00:00
docs(ai): Remove 'now' language and fix model IDs in README
This commit is contained in:
parent
c960d36da1
commit
8cca5597e4
1 changed files with 3 additions and 3 deletions
|
|
@ -32,7 +32,7 @@ const response = await llm.complete({
|
|||
messages: [{ role: 'user', content: 'Hello!' }]
|
||||
});
|
||||
|
||||
// response.content is now an array of content blocks
|
||||
// response.content is an array of content blocks
|
||||
for (const block of response.content) {
|
||||
if (block.type === 'text') {
|
||||
console.log(block.text);
|
||||
|
|
@ -315,10 +315,10 @@ OPENROUTER_API_KEY=sk-or-...
|
|||
When set, you can omit the API key parameter:
|
||||
```typescript
|
||||
// Uses OPENAI_API_KEY from environment
|
||||
const llm = createLLM('openai', 'gpt-5-mini');
|
||||
const llm = createLLM('openai', 'gpt-4o-mini');
|
||||
|
||||
// Or pass explicitly
|
||||
const llm = createLLM('openai', 'gpt-5-mini', 'sk-...');
|
||||
const llm = createLLM('openai', 'gpt-4o-mini', 'sk-...');
|
||||
```
|
||||
|
||||
## License
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue