Skip to content

Commit

Permalink
feat(Update examples):
Browse files Browse the repository at this point in the history
  • Loading branch information
msoedov committed Sep 7, 2023
1 parent 172bbf4 commit 1103fd0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,25 @@ X-MODEL-NAME: gpt5
Content-Type: application/json
```


## Custom run function
See ex12.py
```python

chain = LLMChain(llm=llm, prompt=prompt, verbose=True)


# Run the chain only specifying the input variable.


def run(query: str) -> Joke:
output = chain.run(query)
return parser.parse(output)

app: FastAPI = create_service("examples.ex12:run")

```

## Documentation

For more detailed information on how to use LangCorn, including advanced features and customization options, please refer to the official documentation.
Expand Down

1 comment on commit 1103fd0

@vercel
Copy link

@vercel vercel bot commented on 1103fd0 Sep 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

langcorn – ./

langcorn.vercel.app
langcorn-git-main-msoedov.vercel.app
langcorn-msoedov.vercel.app

Please sign in to comment.