# S exceeded its OpenAI usage limits, causing problems durin rasa pro training (eventhough im using gemini api)

**URL:** https://forum.rasa.com/t/s-exceeded-its-openai-usage-limits-causing-problems-durin-rasa-pro-training-eventhough-im-using-gemini-api/63489
**Category:** Rasa CALM
**Created:** [September 20, 2024, 4:04pm UTC](https://forum.rasa.com/t/s-exceeded-its-openai-usage-limits-causing-problems-durin-rasa-pro-training-eventhough-im-using-gemini-api/63489 "2024-09-20T16:04:36Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![sree1](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@sree1](https://forum.rasa.com/u/sree1)
#### Post date: [September 20, 2024, 4:04pm UTC](https://forum.rasa.com/t/s-exceeded-its-openai-usage-limits-causing-problems-durin-rasa-pro-training-eventhough-im-using-gemini-api/63489/1 "2024-09-20T16:04:36Z")

</div>

```auto

2024-09-20 21:19:46 ERROR rasa.dialogue_understanding.generator.flow_retrieval - [error] Failed to populate the FAISS store with the provided flows. error=ProviderClientAPIException("Failed to embed documents\nOriginal error: litellm.RateLimitError: RateLimitError: OpenAIException - Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}})") error_type=ProviderClientAPIException event_key=flow_retrieval.populate_vector_store.not_populated
2024-09-20 21:19:46 ERROR rasa.dialogue_understanding.generator.llm_based_command_generator - [error] Flow retrieval store isinaccessible. error=ProviderClientAPIException("Failed to embed documents\nOriginal error: litellm.RateLimitError: RateLimitError: OpenAIException - Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}})") event_key=llm_based_command_generator.train.failed
2024-09-20 21:19:46 ERROR rasa.engine.graph - [error] graph.node.error_running_component node_name=train_SingleStepLLMCommandGenerator0
ProviderClientAPIException: ProviderClientAPIException:
Failed to embed documents
Original error: litellm.RateLimitError: RateLimitError: OpenAIException - Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}}

```

Im using gemini API, `recipe: default.v1 language: en pipeline:

- name: SingleStepLLMCommandGenerator llm: provider: gemini model: gemini-1.5-flash

policies:

- name: FlowPolicy

# - name: EnterpriseSearchPolicy

# - name: RulePolicy

` this how my config.yml looks like, don’t know who to resolve it. Thanks in advance

---

_[View the full topic](https://forum.rasa.com/t/s-exceeded-its-openai-usage-limits-causing-problems-durin-rasa-pro-training-eventhough-im-using-gemini-api/63489)._
