Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ai): missing export in function calling tutorial #3910

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions tutorials/building-ai-application-function-calling/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -232,14 +232,19 @@ if __name__ == "__main__":
export SCALEWAY_API_KEY="your-api-key-here"
```

2. Run the application:
2. Set your Base URL for OpenAI client:
```
export SCALEWAY_INFERENCE_ENDPOINT_URL="your-inference-endpoint-here"
```

3. Run the application:
```
python main.py
```

3. Try some example queries:
- "What flights are available from CDG to LHR tomorrow?"
- "Show me morning flights from Paris to London on November 1st"
4. Try some example queries:
- "What flights are available from CDG to LHR on November 1st?"
- "Show me morning flights from CDG to LHR on November 1st"
- "Are there any afternoon flights from CDG to LHR on 2024-11-01?"

## How it works
Expand Down