Skip to content

Commit

Permalink
Fixed incorrect Str class location
Browse files Browse the repository at this point in the history
  • Loading branch information
ddebowczyk committed Aug 9, 2024
1 parent f07767e commit 9fcc135
Show file tree
Hide file tree
Showing 8 changed files with 6,980 additions and 13 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ Here's a simple CLI demo app using Instructor to extract structured data from te
- 'Structured-to-structured' processing - provide object or array as an input and get object with the results of inference back
- Demonstrate examples to improve the quality of inference

### Customizable outputs
### Customization

- Define response data model the way to need: type-hinted classes, JSON Schema arrays, or dynamically define your data shapes with Structures
- Define response data model the way you want: type-hinted classes, JSON Schema arrays, or dynamic data shapes with `Structure` class
- Customize prompts and retry prompts
- Use attributes or PHP DocBlocks to provide additional instructions for LLM
- Customize response model processing by providing your own implementation of schema, deserialization, validation and transformation interfaces

### Sync and streaming support

- Receive synchronous or streaming responses
- Supports both synchronous or streaming responses
- Get partial updates & stream completed sequence items

### Observability
Expand All @@ -49,7 +49,8 @@ Here's a simple CLI demo app using Instructor to extract structured data from te

### Support for multiple LLMs / API providers

- Use multiple LLM API providers (incl. OpenAI, Anthropic, Cohere, Azure, Groq, Mistral, Fireworks AI, Ollama, OpenRouter, Together AI)
- Use multiple LLM API providers (incl. OpenAI, Gemini, Anthropic, Cohere, Azure, Groq, Mistral, Fireworks AI, Together AI)
- OpenRouter support - access to 100+ language models
- Use local models with Ollama

### Documentation and examples
Expand Down
2 changes: 1 addition & 1 deletion examples/04_Troubleshooting/Debugging/run.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class User {
}

$instructor = (new Instructor)->withClient(new OpenAIClient(
apiKey: Env::get('OPENAI_API_KEY'),// . 'invalid', // intentionally invalid API key
apiKey: Env::get('OPENAI_API_KEY'),// . 'invalid', // intentionally invalid API key
baseUri: Env::get('OPENAI_BASE_URI'),
));

Expand Down
Loading

0 comments on commit 9fcc135

Please sign in to comment.