mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-19 03:03:13 +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!' }]
|
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) {
|
for (const block of response.content) {
|
||||||
if (block.type === 'text') {
|
if (block.type === 'text') {
|
||||||
console.log(block.text);
|
console.log(block.text);
|
||||||
|
|
@ -315,10 +315,10 @@ OPENROUTER_API_KEY=sk-or-...
|
||||||
When set, you can omit the API key parameter:
|
When set, you can omit the API key parameter:
|
||||||
```typescript
|
```typescript
|
||||||
// Uses OPENAI_API_KEY from environment
|
// Uses OPENAI_API_KEY from environment
|
||||||
const llm = createLLM('openai', 'gpt-5-mini');
|
const llm = createLLM('openai', 'gpt-4o-mini');
|
||||||
|
|
||||||
// Or pass explicitly
|
// Or pass explicitly
|
||||||
const llm = createLLM('openai', 'gpt-5-mini', 'sk-...');
|
const llm = createLLM('openai', 'gpt-4o-mini', 'sk-...');
|
||||||
```
|
```
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue